Skip to content

Show abuse report details

Eugie Limpin requested to merge el-abuse-reports-list-report-details into master

What does this MR do and why?

Resolves https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/157?work_item_id=125616361 as part of https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/157+

To maintain feature-parity between existing and updated abuse reports list page implementation before https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/158+ is completed this MR updates each abuse report row in the list page to display the following:

  1. The report's message
  2. The reported user's created_at
  3. The report's created_at (when the list is NOT sorted by updated_at) and updated_at (when the list is sorted by updated_at).
existing abuse reports list page for reference old_copy

Screenshots or screen recordings

Screen_Recording_2023-03-23_at_4.43.25_PM

How to set up and validate locally

  1. Enable the feature flag

    $ rails console
    > Feature.enable(:abuse_reports_list)
  2. Login with an admin account

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

  4. Validate that for each report row the following details are displayed (see demo above for reference):

    1. The report's message
    2. The reported user's created_at
    3. The report's created_at (when the list is NOT sorted by updated_at) and updated_at (when the list is sorted by updated_at).

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