Fix an issue with sorting Vulnerability Report
Related issue - #348416 (closed)
What does this MR do and why?
This fixes an issue with the Vulnerability Report where clicking on the non-sortable field leads to dashboard unavailability.
This was found to be due to a missing validation for empty field names, and thus emitting sort-changed
with incorrect value.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Visit vulnerability dashboard
- Click non-sortable column header, viz.
Identifier
orActivity
- The Dashboard disappears with an error message on
master
as well as on gitlab.com - After this change, the dashboard should load fine upon clicking the aforementioned column heads.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Dheeraj Joshi