Add age filter for scan result policies
What does this MR do and why?
This MR adds a new age filter for scan result policies. It's allowed to be set only together with previously existing status.
Screenshots or screen recordings
Previously existing
Status filter
Age filter dependent on
Severity filter removal
Before | After |
---|---|
severity_filter_removal_before | severity_filter_removal_after |
How to set up and validate locally
- Ensure the GitLab Ultimate license is enabled
- Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
- Choose
Security Scan
- Verify the age filter is disabled
- Add status filter, select
Previously existing
and any/all of the statuses. - Verify the age filter can be added now.
- Change the status filter to
New
and verify the age filter gets deleted - Add the filters again, delete status filter and verify the age filter gets deleted with it
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #397086 (closed)
Edited by Martin Čavoj