Skip to content

Show dismissal reason descriptions in bulk actions

What does this MR do and why?

Related #432499 (closed)

Show dismissal reason descriptions in bulk actions.

When dismissing in bulk on the vulnerability report, you can see each dismissal reason description to guide you in making the right choice. This is similar to how it's done already on the vulnerability details page (status dropdown).

note: MR for passing the dismissal descriptions from backend: Add dismissal descriptions to vulnerability rep... (!137744 - merged) • Lorenz van Herwaarden • 16.7

Screenshots or screen recordings

Before After
Screenshot_2023-11-23_at_18.51.54 Screenshot_2023-11-23_at_18.50.17

How to set up and validate locally

Prerequisites

  1. You need an EE license
  2. You need to have runners enabled (See $2408961 for setting up a runner)
  3. Import https://gitlab.com/gitlab-examples/security/security-reports
  4. Run a pipeline on master

Validate

For following pages:

  1. instance vulnerability report page: http://gdk.test:3000/-/security/vulnerabilities (make sure the instance has vulnerabilities by selecting projects with vulnerabilities at http://gdk.test:3000/-/security/dashboard/settings)
  2. group vulnerability report page: http://gdk.test:3000/groups/<some-group>/-/security/vulnerabilities (make sure the group has vulnerabilities)
  3. project vulnerability report page: http://gdk.test:3000/root/security-reports/-/security/vulnerability_report

Validate that when selecting one or more vulnerabilities and choosing "Dismiss" as status, the dismissal reason dropdown now shows the correct description underneath each reason. Descriptions can be found at ee/app/enums/vulnerabilities/dismissal_reason_enum.rb.

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 Lorenz van Herwaarden

Merge request reports