Skip to content

Hide count and table header in empty state

What does this MR do and why?

Related #433032 (closed)

This MR hides the table header and item count dropdown on the vulnerability list component (shown on vulnerability report page e.g.) when there are no vulnerabilities found and the empty state is shown. This is also the case when the Group by feature is used.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-01-10_at_08.55.17 Screenshot_2024-01-10_at_08.54.11

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

  1. Go to the vulnerability report
  2. You can see vulnerabilities in the table
  3. Validate that the table header and item count dropdown are visible
  4. Select only "Acceptable risk" dismissed vulnerabilities from the status filter and select the "Info" severity. There should be no vulnerabilities showing and the empty state is visible.
  5. Validate that the item count dropdown and the table header (containing the column names) is not shown.
Edited by Lorenz van Herwaarden

Merge request reports