Persist applied filters and group-by selections to Query parameters
Summary
On the Vulnerability Report, we store selected filters within the URL's query parameters.
This allows our users to share, bookmark, etc. a filter-selection. E.g.: https://gitlab.com/gitlab-org/gitlab/-/security/vulnerability_report/?scanner=brakeman,eslint
For the new security dashboard, we will have to support the URL-syncing of:
- Global-filters (filtered-search bar)
- Panel-level filters and group-by selections
While 1 is relatively straightforward and can be based on the existing implementation used by the Vulnerability Report, 2 will add complexity and will need some technical discovery on how to implement.
Implementation Plan
- Global filters: Handle initial value from and persisting to query string parameters in the security dashboard filtered search
- Panel filters: Handle initial value from and persisting to query string parameters in the panel itself where the panel filters are stored and the query is executed
Edited by Lorenz van Herwaarden
