Skip to content

Allow filtering abuse reports by category

Eugie Limpin requested to merge el-abuse-reports-list-filter-by-category into master

What does this MR do and why?

This MR implements Implement filter by category as part of https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/157+.

It updates the abuse reports list to allow filtering displayed reports by category.

Screenshots or screen recordings

Screen_Recording_2023-03-13_at_3.56.40_PM

How to set up and validate locally

  1. Enable the feature flag

    $ rails console
    > Feature.enable(:abuse_reports_list)
  2. Update an existing abuse report to have a specific category that we can use for validation

    $ rails console
    
    > report = AbuseReport.last
    > report.category = 4 # crypto
    > report.save
  3. Login with an admin account

  4. Go to the Abuse Reports page (http://localhost:3000/admin/abuse_reports)

  5. Validate that the list can be filtered by category

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 Eugie Limpin

Merge request reports

Loading