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

Add command to delete erroneously added overgrowth NeedsHumanReview & reset due dates #22832

Merged

Conversation

diox
Copy link
Member

@diox diox commented Nov 7, 2024

Relates to mozilla/addons#15141

Context

We introduced a new way to determine if an add-on should be flagged for abnormal growth but the new algorithm has a bug that caused a bunch of add-ons to be flagged erroneously. Operations want to delete the NeedsHumanReview flag from them all (can't just make it inactive, that would skew data in our stats about reviews) and reset their due dates to remove them from the queue.

Note that the algorithm hasn't been fixed yet, because we still need to agree on what the solution is - but we want to clean up the queue quickly before reviewers get to it.

Testing

Unit test should be enough. We should only remove the NHR that were created for that specific reason, during the specific timeframe, that are still active.

@diox diox marked this pull request as ready for review November 7, 2024 13:26
@diox diox requested a review from eviljeff November 7, 2024 13:26
Comment on lines +585 to +587
reason=NeedsHumanReview.REASONS.HOTNESS_THRESHOLD,
created__range=ERRONEOUSLY_ADDED_OVERGROWTH_DATE_RANGE,
is_active=True,
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a fan of how we have to query on the same things in two places but I can't immediately think of a way around it 😒

Copy link
Member Author

Choose a reason for hiding this comment

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

Same. I could have generated some dictionaries of filters with an optional versions__ prefix but I figured this wasn't worth doing for a one-off.

@diox diox merged commit be5a368 into mozilla:master Nov 7, 2024
31 checks passed
eviljeff pushed a commit that referenced this pull request Nov 7, 2024
… reset due dates (#22832)

* Add command to delete erroneously added overgrowth NeedsHumanReview & reset due dates

* Add route
KevinMind pushed a commit that referenced this pull request Nov 8, 2024
… reset due dates (#22832)

* Add command to delete erroneously added overgrowth NeedsHumanReview & reset due dates

* Add route
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.

2 participants