fix: osfmetrics data lost in migration#11774
Draft
aaxelb wants to merge 1 commit into
Draft
Conversation
make sure all items get a recent monthly usage report with cumulative
counts up to this point -- previous data migration incorrectly assumed
monthly usage reports were either complete or completely missing
- restore some previously-removed elastic6 config and dsl types in
osf.metrics.es6_metrics
- change django-elasticsearch-metrics dependency to a version with
elastic6 support added back in
- add migrate_osfmetrics_fix_6to8 management command
- shows diagnostic counts from es6 and es8 (unless --no-counts)
- starts a task for each item with any past usage to add a usage
report for 2026-05 with accurate cumulative view/download counts
- allow running via osf-admin web ui
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.
make sure all items get a recent monthly usage report with cumulative counts up to this point -- previous data migration incorrectly assumed monthly usage reports were either complete or completely missing
Ticket
Purpose
Changes
Side Effects
QE Notes
CE Notes
Documentation