Skip to content

Use correct query for project filter

Savas Vedova requested to merge 456236-project-filter-search into master

What does this MR do and why?

Use correct query for project filter

Replace the dependency list projects query with the group and instance level projects filter. These queries are refined for the vulnerability reports page so it's more correct to use them. Also, this fixes a bug which prevented displaying projects for the instance level vulnerability report.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable feature flag: echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
  2. Go to /-/security/vulnerabilities
  3. Verify that projects token is working as expected

Related to #456236 (closed)

Edited by Savas Vedova

Merge request reports