📊 Update Inactive Users Script + Visualization #1043
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.
ignore test.nrel-op.json for run_on_all_deployments
update script to identify inactive users; add notebook for viz
We are now storing several stats like 'last_call_ts' and 'last_loc_ts' in the profile, and we have run a migration script to fill in these stats for all users
Thus, this script does not need to make any timeseries queries; it just needs to retrieve the profiles.
To support more detailed visualization of user activity, inactive.py now creates a JSON dump of the profiles, which can be read by plot_active.ipynb to visualize the number of inactive users as well as the trend and distribution of user activity
Notebook outputs these charts: e-mission/e-mission-docs#1103 (comment)