You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENG-11458] fix: osfmetrics data lost in migration (#11774)
* fix: migrate_osfmetrics_fix_6to8
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
* add es6 back to github actions
* fix: orderable YearMonth
* more correct counts
* loggable error on non-existant osfid
* more accurate comparison count
* move usage report epoch to setting
* finding anomalies...
* further inspecting anomalies...
* fix up whoopsies
* better handle preprint osfids
* fix some older usage reports too
* use date_histogram to skip empty months
* remove debugging
0 commit comments