Skip to content

Add panel filters URL syncing to the new security dashboard

What does this MR do and why?

  1. This adds 3 utils to read and write panel specific filters to the query parameters
  2. Add panel filters URL syncing to the new security dashboard
  3. 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:

  1. Risk score
    1. Group by
  2. Vulnerabilities over time
    1. Time period
    2. Group by
    3. 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

Merge request reports

Loading