add support for Approve marking listing content as approved#24366
add support for Approve marking listing content as approved#24366eviljeff merged 1 commit intomozilla:masterfrom
Conversation
|
FYI:
For this scenario, I think you have to report the content first, then reject it, otherwise the add-on won't be public, so even if you were to directly go the report feedback page, you wouldn't be able to report it for its listing contents... That makes testing this via Cinder super confusing. |
You should be able to report it a non-public add-on from the feedback url directly |
|
Yeah I saw that but it won't allow you to select the listing as the place of the violation since there is no longer a public listing. I wasn't sure of where the report would end up so I swapped the ordering of the steps to be sure. |
Fixes: mozilla/addons#15984
Description
Expands the Approve action to do as the naming implies, to approve the listing content (for add-ons). If the add-on is STATUS_REJECTED, approving the content will restore the addon status too (and send an email to the developer informing them).
Context
Even though for content review there won't usually be any abuse reports resolved, the code (and tests) are written to support resolving an abuse report at the same time (which might be useful for mozilla/addons#15969)
Testing
Similar to #24308, this is mainly expected to be used with content review in Cinder, but that doesn't exist yet - though the Approve policy does exist already - so easiest way is to use the abuse report flow:
For content review where the add-on isn't rejected (normal case):
AddonApprovalsCounterinstance)Then for content review where the add-on is rejected (i.e. the developer requested another review):
AddonApprovalsCountersolast_content_review_pass = Falseand the status isSTATUS_REJECTEDChecklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.