Skip to content

Send less data to Vulnerabilites page

What does this MR do?

As per #212497 (closed) we ought to minimize the data sent to the frontend when displaying Vulnerability details.

Frontend

Update vulnerability page for new data structure

  • In an effort to cut down on the amount of data coming from the backend, the data sent up has been updated to be include more targeted information in a new format
  • update the frontend for the new data structure
  • update tests

Steps to Reproduce

  1. Navigate to a project that has had a pipeline ran and vulnerabilities were found (requires having the Runner configured and this project is recommended)
  2. Navigate to the security dashboard => any vulnerability's page
  • Expected: The page loads and all actions work the exact same as on the master branch

Screenshots

They should look the same

Before

before

After (NOTE: There is ONE known discrepancy; there is updated text in the solution card because there was a bug where the remediation was not being sent to the footer. That has been fixed and now the appropriate message is showing)

after

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Michał Zając

Merge request reports