Skip to content

Show number of counts next to tabs

Savas Vedova requested to merge 338239-add-counts-to-vuln-tabs into master

What does this MR do and why?

This commit shows the number of vulnerabilities in the tab title. These numbers are fetched using GraphQL and are updated whenever the filters change.

Since the operational vulnerabilities are still behind a feature flag, I did not include the Changelog.

Screenshots or screen recordings

tab-counts

How to set up and validate locally

  1. Enable gon.features?.operationalVulnerabilities
  2. Go to the Project Vulnerability Report by visiting Project > Security & Compliance > Vulnerability Report
  3. Check the number in the tab title (e.g. Operational Vulnerabilities 21). That number should equal the sum of the vulnerability counts right below the filters.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #338239 (closed)

Edited by Savas Vedova

Merge request reports