Display up to 2 values in the placeholder
What does this MR do and why?
Display up to 2 values in the placeholder
Instead of displaying +x after the second option, we now display up to two options, and then rely on +X in the Enhanced Filtering.
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
- Fork https://gitlab.com/gitlab-examples/security/security-reports/
- Create vulnerabilities by running a pipeline against the default branch
- Go the Secure > Vulnerability Report inside the project
- Make sure to enable the feature flag:
echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
- Select more than 2 filters for the same token and double check the behaviour. It should display +1 on the third option.
Related to #452342 (closed)