Skip to content

fix: osfmetrics data lost in migration#11774

Draft
aaxelb wants to merge 1 commit into
CenterForOpenScience:developfrom
aaxelb:fix/lost-metrics
Draft

fix: osfmetrics data lost in migration#11774
aaxelb wants to merge 1 commit into
CenterForOpenScience:developfrom
aaxelb:fix/lost-metrics

Conversation

@aaxelb

@aaxelb aaxelb commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

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

Ticket

Purpose

Changes

Side Effects

QE Notes

CE Notes

Documentation

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant