reviewer tools listing content approval and rejection#24386
reviewer tools listing content approval and rejection#24386eviljeff merged 5 commits intomozilla:masterfrom
Conversation
45a19af to
326731b
Compare
43f6085 to
a561ce7
Compare
|
Mmm, pretty sure Listing rejection won't clear the add-on from the content review queue.... mozilla/addons#15989 is going to have to change how reviews are requested so it can be addressed with that (unless you think it needs to be in this PR) |
diox
left a comment
There was a problem hiding this comment.
As it stands, when you use the ContentActionApproveListingContent action (and reject too in this PR with the waffle switch enabled) the resulting activity is not attached to a version, and therefore not displayed anywhere in reviewer tools. It used to be, so that would be a regression.
We should either attach that to the current_version like it used to happen when not using the ContentAction stuff, or put those activity logs in addon_important_changes_actions.
src/olympia/constants/activity.py
Outdated
|
|
||
| class APPROVE_REJECTED_LISTING_CONTENT(_LOG): | ||
| id = 211 | ||
| format = _('{addon} rejected listing content approved.') |
There was a problem hiding this comment.
I wonder if the string we expose to developers should be that verbose. Maybe they don't need that level of detail and we could just use {addon} listing content approved ? (and have a reviewer_format for more-specific internal info for reviewers with the full string)
There was a problem hiding this comment.
7f9fa49 - short still has the longer string because I couldn't remember (nor establish conclusively with a cursory search) if we exposed it to reviewers too. I also tinkered with the wording of the other two classes so the copy was consistent.
src/olympia/reviewers/migrations/0048_add_content_rejection_enabled_waffle.py
Outdated
Show resolved
Hide resolved
#24396 adds this |
7f9fa49 to
d260c5a
Compare
|
rebased after #24396 |
Fixes: mozilla/addons#15988
Description
Updates the existing Approve Content reviewer action to use the relevant ContentAction, with an alternative action that sends and email if the listing is currently Rejected. Also adds a new Reject Listing (behind a waffle) to replace the existing reject versions action that is used.
Context
The new Reject Listing Content action is behind a waffle as there is currently no way to developers to request a new listing review (mozilla/addons#15989), and if they missed the email, no explanation in devhub (mozilla/addons#16025). The Approve Listing Content action is backwards compatible (as is the Approve Rejected Listing Content action, and would be available if the waffle switch was enabled and then disabled again).
The change to show the content review link everywhere was because this tool is the only way for a listing to be rejected, or approved after a rejection. (If the plan to only carry out content review in Cinder goes ahead then we'd likely drop the content review tool in the reviewer tools and move the specific actions into the main review tool for listed channel.)
Re: activity classes. In #24308 I added
APPROVE_LISTING_CONTENTbut I've since concluded it was redundant - it was the same as the existingAPPROVE_CONTENTclass, really. So I've taken overAPPROVE_CONTENTactivity for initial content review, and repurposedAPPROVE_LISTING_CONTENTasAPPROVE_REJECTED_LISTING_CONTENTto differentiate when a listing is restored after a rejection (so we can expose it in the reviewer tools, etc).REJECT_CONTENTwill be obsolete once the waffle switch is permanently on, and we remove support from the reject functions for content review rejection (but is kind of different toREJECT_LISTING_CONTENT, as the former is necessarily associated to which versions were rejected for the content review.)Testing
Approve Listing Content
cinder_policy_review_reasons_enabledwaffle is on (which it is on dev/stage, but isn't on prod) there should be an Approve policy to select (only one)Reject Listing Content
content_rejection_enabledwaffle switch to show this instead of Reject Multiple Versionscinder_policy_review_reasons_enabledwaffle is on there should be the same list of policies to choose from as Reject and Force DisableApprove Rejected Listing Content
Checklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.