Skip to content

merge develop into pbs 26.13#11796

Closed
sh-andriy wants to merge 11 commits into
CenterForOpenScience:feature/pbs-26-13from
sh-andriy:feature/merge-develop-into-pbs-26-13
Closed

merge develop into pbs 26.13#11796
sh-andriy wants to merge 11 commits into
CenterForOpenScience:feature/pbs-26-13from
sh-andriy:feature/merge-develop-into-pbs-26-13

Conversation

@sh-andriy

Copy link
Copy Markdown
Contributor

Ticket

Purpose

Changes

Side Effects

QE Notes

CE Notes

Documentation

adlius and others added 11 commits June 30, 2026 19:56
Improve management command
…nce#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
26.13.0

- add migrate_osfmetrics_fix_6to8 command to correct monthly usage reports
- temporarily re-add elasticsearch6 and some es6-based osf-metrics models
…ce/feature/pbs-26-9

[ENG-11560] PBS-26-9 Feature Release PR
@sh-andriy

Copy link
Copy Markdown
Contributor Author

Decided to use different approach with @cslzchen FYI

@sh-andriy sh-andriy closed this Jul 3, 2026
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.

4 participants