Use correct query for project filter
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 |
---|---|
How to set up and validate locally
- Enable feature flag:
echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
- Go to
/-/security/vulnerabilities
- Verify that projects token is working as expected
Related to #456236 (closed)
Edited by Savas Vedova