Skip to content

Add filter bar to compliance report

Jiaan Louw requested to merge 299358-add-filter-to-compliance-report into master

What does this MR do and why?

This MR adds a filter bar to the compliance report to filter by projects and/or date range as described in #299358 (closed).

This MR does not update the apollo query, that will be done in a follow-up MR.

The following changes are made:

  • Adds project and date range filters to the compliance report that syncs with the URL parameters.
  • Updates VSA shared project dropdown to watch for default projects changes and adds a default projects loading state.

Screenshots or screen recordings

Recording
Screen_Recording_2022-01-07_at_15.27.01
Before After
image image

How to set up and validate locally

  1. Enable the new feature flag in your terminal: echo "Feature.enable(:compliance_violations_report)" | rails c
  2. View the compliance report and verify that the filter syncs with the URL query: [GDK_HOST]/groups/gitlab-org/-/security/compliance_dashboard

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #299358 (closed)

Edited by Jiaan Louw

Merge request reports