Skip to content

Fix JS error and UI for manual vulnerabilities

What does this MR do and why?

It fixes two issues that currently happen for manually submitted vulnerabilities:

description screenshot
console errors Screen_Shot_2022-08-10_at_4.19.19_pm
UI Screen_Shot_2022-08-10_at_4.19.50_pm

How to set up and validate locally

  1. On master:
  2. Go to a project's "Security & Compliance" -> "Vulnerability Report"
  3. Click on the "+ Submit vulnerability" button
  4. Fill out details and submit
  5. After being redirected to the newly submitted vulnerability's details page open your browser's developer tools
  6. Check for console errors (see screenshot below)
  7. Check for the broken UI (see screenshot below)
  8. Check out this branch and make sure that there are no errors and the UI is rendering as expected

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

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 #370369 (closed)

Edited by David Pisek

Merge request reports