Skip to content

Remove extract-stats command#398

Merged
StevenMaude merged 1 commit into
mainfrom
steve/remove-extract-stats
May 13, 2026
Merged

Remove extract-stats command#398
StevenMaude merged 1 commit into
mainfrom
steve/remove-extract-stats

Conversation

@StevenMaude
Copy link
Copy Markdown
Contributor

Fixes #394.

Reasoning:

  • It's already been deprecated a while.
  • It was only for use with cohort-extractor logs, and that has now been marked as unsupported since June 2025; reference: opensafely-core/cohort-extractor@bb89f63

@KatieB5 KatieB5 self-requested a review May 13, 2026 10:02
Copy link
Copy Markdown

@KatieB5 KatieB5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much Steve!

Comment thread opensafely/extract_stats.py Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the old script, I was wondering if the .log files in tests/fixtures/metadata/old_style_logs could also be removed as part of this PR?

Maybe I've missed something but as far as I can tell, they were only used by the tests in tests/test_extract_stats.py, which is being removed in this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; I'd missed that! Actually we can remove all of the tests/fixtures/metadata now as they're only used in the extract-stats tests 🧹 — so I'll rebase this with that in a single commit.

Fixes #394.

Reasoning:

* It's already been deprecated a while.
* It was only for use with `cohort-extractor` logs, and that has now
  been marked as unsupported since June 2025;
  reference: opensafely-core/cohort-extractor@bb89f63
@StevenMaude StevenMaude force-pushed the steve/remove-extract-stats branch from 8f90c8f to 1998ce3 Compare May 13, 2026 10:33
@StevenMaude StevenMaude merged commit 8b4aac2 into main May 13, 2026
15 checks passed
@StevenMaude StevenMaude deleted the steve/remove-extract-stats branch May 13, 2026 10:41
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.

Remove extract-stats command

2 participants