Open
Conversation
Groups can be defined in group_definition.csv. Users are then retrieved for this group definition. The dashboard then populates information about these users as usual. To do this, a duplicate data retrieval from dashboard.qmd was removed, group_definition.csv was added, an empty group_users.csv is written to the dashboard directory after creating the dashboard. This is to be populated automatically. data_retrieval.R was modified to ignore all stale users (those accounts deleted and usernames changed) and not throw errors on them when populating group_users.csv. README.md file has been updated to reflect these changes.
Elegant failure if no users are found for some group. If empty, the header is still written to the new groups_user.csv file.
5e7c59a to
4ee51ec
Compare
Now contains all the graphs when using db_overlay:true as it would without using the overlay. To run this code, you must make a python environment called .venv.
Worked on sampling from the APIs intelligently based on the percentage user contributions to the overall changesets of the groups and fixed some errors. This code only works with an appropriate python environment.
Requirements.in added Tidied up comments Debugged main files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this sub-branch of integrate_database, we design the dashboard to pull users and information directly from a group definition written in a .csv group_definition rather than from group_users. This allows groups to be defined directly within the dashboard files, and users loaded from the database automatically, instead of being sourced elsewhere.
The group can be defined by any combination of hashtags, comments, bounding box, start and end date, and a top filter. The top filter pertains only to users. For example, the top 10 most active users could be returned. When data_retrieval.R is run, the group_description populates a group_users.csv file, with all the users matching the description within the group. The rest of the data retrieval and dashboard rendering proceeds as normal within the integrate_database branch. This allows groups to be defined directly within the dashboard files, and users loaded from the database automatically, instead of being sourced elsewhere.