Implement show and adding/removing labels to an abuse report
What does this MR do and why?
Partially resolves https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/167+
This MR implements:
- Showing labels added to an abuse report
- Searching labels that can be added/removed to/from an abuse report
- Adding and removing labels to an abuse report
Label creation is handled in Implement create abuse report labels (!129205 - merged).
Related MRs
- Add GraphQL endpoints to fetch abuse report and... (!128219 - merged)
- Rename AbuseReportUpdateService to AbuseReports... (!128085 - merged)
- Implement show abuse report labels and adding/removing labels to an abuse report
👈🏼 You are here - Implement create abuse report labels (!129205 - merged)
Screenshots or screen recordings
Screen_Recording_2023-08-09_at_11.55.06_AM
How to set up and validate locally
- In rails console, enable the feature flag and create some labels
> Feature.enable(:abuse_report_labels) > ['Uno', 'Dos', 'Tres'].each { |t| Admin::AbuseReportLabel.create(title: t) }
- Login with an admin user (
root
) - Go to abuse reports page (http://localhost:3000/admin/abuse_reports) and click on any abuse report
- Validate that searching, adding, and removing labels to the abuse report works
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