Skip to content

Allow multiple users to report a user for abuse

Eugie Limpin requested to merge el-allow-multiple-user-abuse-report into master

Resolves Allow comment/MR/issue to be reported more than once for abuse

What does this MR do?

Allow multiple users to create an abuse report against a user.

Limit Max number of reports per user
Current behavior 1 report per user = 1
With this MR 1 report per user per reporter = number of reporters

Why?

To make it easier for instance admins (Trust & Safety team for GitLab.com) to identify repeat offenders or weigh the severity of an offense. See Allow comment/MR/issue to be reported more than once for abuse.

Screenshots or screen recordings

Before After
Screen_Recording_2022-12-07_at_3.59.32_PM Screen_Recording_2022-12-07_at_3.54.45_PM

How to set up and validate locally

Set up

To validate, you need three users:

  1. User 1: the abusive user to be reported
  2. User 2: first reporter
  3. User 3: second reporter

Validate

  1. Sign in with User 2
  2. Go to the profile page of User 1 and report the user for abuse
    📸 Screen_Shot_2022-12-06_at_11.02.16_AM Screen_Shot_2022-12-06_at_11.05.12_AM
  3. Validate that the report is created
    📸 Screen_Shot_2022-12-06_at_11.05.25_AM
  4. Sign out then sign in with User 3
  5. Go to the profile page of User 1 and, again, report the user for abuse
  6. Validate that the report is created

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