Skip to content

Display up to 2 values in the placeholder

Savas Vedova requested to merge 452342-display-more-values into master

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
image image

How to set up and validate locally

  1. Fork https://gitlab.com/gitlab-examples/security/security-reports/
  2. Create vulnerabilities by running a pipeline against the default branch
  3. Go the Secure > Vulnerability Report inside the project
  4. Make sure to enable the feature flag: echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
  5. 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)

Merge request reports