Skip to content

Adapt status filtering to support new values

Martin Čavoj requested to merge 396985-fe-create-status-filtering into master

What does this MR do and why?

This MR adds support for new status values introduced in !117394 (merged). It also splits the status filters into two dropdowns.

In order to achieve that, it also implements part of #397107 (closed), so that there can be two status filters added at the same time.

Screenshots or screen recordings

status_filtering

How to set up and validate locally

  1. Ensure the GitLab Ultimate license is enabled
  2. Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
  3. Add/remove status filters
  4. Ensure the YAML preview gets updated
  5. Navigate to yaml mode, make changes to vulnerability_states, add values that do exist, navigate to rule mode and ensure the filter values have been updated
  6. Create the policy, edit it, verify the description is assigned the appropriate values

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #396985 (closed)

Edited by Martin Čavoj

Merge request reports

Loading