Fix vulnerability severity badge rendering

Fixes #519618 (closed)

What does this MR do and why?

This MR targets Create a GraphQL query to get severity override... (!180849 - merged).

Refactors the severity badge component to:

  1. Render severity overrides only when FF is enabled
  2. Accept only last severity override information

This was done to fix an issue for vulnerability details page where only latest severity override information is available: !180858 (merged)

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

Vulnerability Dashboard - No visual changes

Vulnerability Dashboard (Before) Vulnerability Dashboard (After)
image.png image.png

Vulnerability Details Page - Severity Information was missing

Vulnerability Details Page (Before) Vulnerability Details Page (After)
image.png image.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dheeraj Joshi

Merge request reports

Loading