[go: up one dir, main page]

Skip to content

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.

Screenshot_2025-08-13_at_11.28.10_am

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:

  1. Global-filters (filtered-search bar)
  2. 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

  1. Global filters: Handle initial value from and persisting to query string parameters in the security dashboard filtered search
  2. 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