Skip to content

Add spam icon to issues that are hidden

Peter Hegman requested to merge 338751-hidden-issue-icon-in-issue-header into master

📖 What does this MR do?

Related to #338751 (closed)

In https://gitlab.com/gitlab-org/gitlab/-/issues/327353 we added the ability to ban a user. In #327355 (closed) we extended the ban functionality so issues created by banned users are hidden. This MR adds a spam icon to the header of the detail view of a hidden issue. Only Admins can see hidden issues, for all other users they will not show in the issue list.

📷 Screenshots

View Before After
Desktop Screen_Shot_2021-08-19_at_2.26.10_PM Screen_Shot_2021-08-19_at_2.23.21_PM
Desktop sticky header Screen_Shot_2021-08-19_at_2.26.39_PM Screen_Shot_2021-08-19_at_2.23.48_PM
Mobile Screen_Shot_2021-08-19_at_2.27.52_PM Screen_Shot_2021-08-19_at_2.24.32_PM
Mobile sticky header Screen_Shot_2021-08-19_at_2.28.17_PM Screen_Shot_2021-08-23_at_11.43.07_AM

💻 How to setup and validate locally

  1. Enable the ban_user_feature_flag feature flag
    • bin/rails console
    • Feature.enable(:ban_user_feature_flag)
  2. Login as an Admin
  3. Navigate to the issue list on a project and make note of the author of an issue
  4. Navigate to /admin/users and find the author of the issue
  5. From the User administration menu select Ban user
  6. Navigate back to the issue from step 3

🚦 Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Peter Hegman

Merge request reports

Loading