Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-6704] [ENG-6705] Reference PR #10857

Merged
merged 27 commits into from
Dec 18, 2024
Merged

Conversation

cslzchen
Copy link
Collaborator

@cslzchen cslzchen commented Dec 17, 2024

Reference PR for ENG-6704 and ENG-6705

Johnetordoff and others added 27 commits November 15, 2024 13:35
* add management command to migrate preprint affiliations

* make sure migrations uses primary instead of replica, improve tests

* remove redundant permission

---------

Co-authored-by: John Tordoff <>
* Add OOPSpam and Akismet metrics to spam report

* Add spam/ham metrics for OOPSpam and Akismet with FK join fix, test cleanup

* Add private spam metrics report with preprint inclusion

* Validate category; add PrivateSpamMetricsReporter to monthly reports

---------

Co-authored-by: Uditi Mehta <[email protected]>
prevent counted-usages with different `action_labels` from overwriting
each other -- deduplicate only when `action_labels` match exactly
B&I Release

- Migrate Preprint Affilations
- Add OOPSpam and Akismet metrics to spam report
- Add PrivateSpamMetricsReport
- Update PrivateSpamMetricsReporter to work with refactored MonthlyReporter
- Fix duplicate reports when run for past years
- Fix counted-usage clobbers
Co-authored-by: abram axel booth <[email protected]>
@cslzchen cslzchen changed the title Reference PR [ENG-6704] [ENG-6705] Reference PR Dec 17, 2024
if category not in ['node', 'preprint']:
raise ValueError(f"Invalid category '{category}'. Expected 'node' or 'preprint'.")

log_model = NodeLog if category == 'node' else PreprintLog
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: we may have not covered PreprintLog fixes/updates in DOI, need to take a look.



@pytest.mark.django_db
class TestAssignAffiliationsToPreprints:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: take a look at these tests, may be broken by DOI

@cslzchen cslzchen merged commit 2706450 into feature/preprints-doi-versioning Dec 18, 2024
13 of 17 checks passed
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.

5 participants