Skip to content

Close aggregated abuse reports

Hinam Mehra requested to merge anti-abuse/180-close-aggregated-reports into master

What does this MR do and why?

Screenshots or screen recordings

Before After
close-abuse-reports-before close-abuse-reports-after

How to set up and validate locally

  1. In rails console
> Feature.enable(:abuse_reports_list)

# create 2 abuse reports for the same user and category
> User.limit(2).order_id_asc.pluck("id").each { |i| AbuseReport.create(reporter_id: i, user_id: User.last.id, status: "open", category: "spam", message: "test") }
  1. Log-in as admin and navigate to /admin/abuse_reports. You should see text saying User X reported for spam by 2 users.
  2. Open the abuse report and close it from the Actions button.
  3. Navigate back to /admin/abuse_reports. Both the reports would have been closed.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Hinam Mehra

Merge request reports