Add panel filters URL syncing to the new security dashboard
What does this MR do and why?
- This adds 3 utils to read and write panel specific filters to the query parameters
- Add panel filters URL syncing to the new security dashboard
- Update page level filters so they use existing utilities
References
Heavily inspired: Draft: WIP: add new component (!208309) • David Pisek
Related #561226
Screenshots or screen recordings
panel-filters-query-param-sync
How to set up and validate locally
Play around with the following panel filters:
- Risk score
- Group by
- Vulnerabilities over time
- Time period
- Group by
- Severity
Also verify that now we decode, so instead of for project id A and B we have projectId=A%2CB
, we now have projectId=A,B
or similar instead of reportType=API_FUZZING%2CSAST
we have reportType=API_FUZZING,SAST
.
Since the ids or other values shouldn't have special characters, I think it's nice to not have the query parameters encoded so a user can see the commas and make adjustments themselves.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Lorenz van Herwaarden