-
Notifications
You must be signed in to change notification settings - Fork 551
Don't inherit due date and/or NeedsHumanReview for ABUSE_ADDON_VIOLATION/CINDER_ESCALATION #23343
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
Don't inherit due date and/or NeedsHumanReview for ABUSE_ADDON_VIOLATION/CINDER_ESCALATION #23343
Conversation
*Only* for those reasons: as soon as a version has more reasons for needing human review its due date can be inherited from again.
|
Scenario 3 should be the same due date yes (inheritance working just as it did before my patch in that case, since the initial reason is not abuse related). Scenario 1 works for me locally. If you check in a shell, are the |
|
The queue not showing the right due date in scenario 1 is interesting: that's because the query we made to find the due date just blindly looks for the earliest due date for each add-on, it doesn't care about filtering. Previously this behavior was hidden because we were inheriting from the due date, but now that we aren't this is more visible. Going to need to refactor the queryset that deals with the queue to fix that. |
This fixes due date display/sorting in the review queue when there are multiple different due dates set and some would be filtered out






Only for those reasons: as soon as a version has more reasons for needing human review its due date (and NHR itself) can be inherited from again.
Fixes mozilla/addons#15535
Testing
Scenario 1:
ABUSE_ADDON_VIOLATIONreason. You should see the add-on in the manual review queue with a due date.auto_approvecommand, and you should see that the version is not auto-approved (because the add-on is recommended).Reported for abuse within the add-onyou should still see the add-on, now that it has a new version. Its due date should not be the same as the one it had before.Scenario 2:
ABUSE_ADDON_VIOLATIONreason. You should see the add-on in the manual review queue with a due date.auto_approvecommand, and you should see that the version is auto-approved.Reported for abuse within the add-onyou should not see the add-on. If you check that filter you should see it.Scenario 3 (unchanged from before):
auto_approvecommand, and you should see that the version is auto-approved.Previous version in channel had needs human review set