Rework the feature flag logic
What does this MR do and why?
Rework the feature flag logic
Apply the groupLevelVulnerabilityReportGrouping feature flag logic to instance level vulnerability reports as well. It is redundant to maintain another feature flag for that level, therefore refactoring the code to reuse the same feature flag is a more favorable approach.
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
How to set up and validate locally
- Enable following feature flags:
echo 'Feature.enable(:group_level_vulnerability_report_grouping)' | rails c
echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
- Visit
/-/security/vulnerabilities
Related to #432778 (closed)