Allow filtering abuse reports by category
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
-
Enable the feature flag
$ rails console > Feature.enable(:abuse_reports_list)
-
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
-
Login with an admin account
-
Go to the Abuse Reports page (http://localhost:3000/admin/abuse_reports)
-
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eugie Limpin