mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
127 stars 41 forks source link

[Task]: Review Queue Filtering for DSA Abuse Reports #14921

Closed chrstinalin closed 3 months ago

chrstinalin commented 3 months ago

Description

When the DSA abuse report queues are re-enabled, there will be a high number of new reports in the AMO review queues. Want to address those at a lower priority than new add-on reviews.

Possible solution: a simple filter button to show only one of those two “categories.”

Acceptance Criteria

  ### Milestones/checkpoints
  - [ ] Filtering option available for DSA abuse reports

Checks

┆Issue is synchronized with this Jira Task

chrstinalin commented 3 months ago

@wagnerand For context: this (and #14920) are mostly regurgitated from a one-on-one with Shane. Andrew recommended pinging you to confirm they looked right.

Would it be a single toggle for all DSA types under 'Needs human review'? Or individual toggles for each type of human review (appeals, abuse reports, escalations...)?

diox commented 3 months ago

As discussed on slack, this is not as trivial to implement as it may seem.

A key problem is that for this to work you'd need to be able to exclude add-ons that are exclusively in the queue because of abuse reports, and nothing else. The current database structure isn't meant to do this sort of query in a performant way: the queue was explicitly designed to be unified without caring about the reasons that led to something being added to the it.

https://github.com/mozilla/addons/issues/9520 added flags to distinguish add-ons flagged from abuse, but this wouldn't help here as there might be another reason for the add-on to be in the queue.

There are multiple approaches we could look at to fix this issue but it'd require careful planning and consideration to be performant while not compromising maintainability of the code.

diox commented 3 months ago

@eviljeff so submit a draft PR of an idea we need to investigate for this

ioanarusiczki commented 2 months ago

Definitely something not right because I don't see the changes from https://github.com/mozilla/addons-server/pull/22558 on AMO dev.

ioanarusiczki commented 2 months ago

It's working for me on AMO dev.

As I said https://github.com/mozilla/addons/issues/14946#issuecomment-2283803814 an appeal forwarded from Cinder is treated as abuse report having the same icon but I could file a followup.