Update tags criteria to show by default
What does this MR do and why?
Update tags criteria to show by default
- show runner tags by default
- update default policy to not include empty array for tags
- make runner tag filter permanent
- remove "tags" property when no tags are selected
- remove unnecessary label
- update tests
Changelog: changed
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
tags_-_before | tags_-_after |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate licence
- Navigate to a project/group => Secure => Policies => New policy => Scan execution
- Runner tags criteria UI should be visible by default and permanent and set to "selected automatically"
- Select "specific" and select some tags
- Verify the
tags
property appears in the yaml - Remove all the tags
- The
tags
property should not be in the yaml - Navigate to yaml mode and add some variables
- Navigate back to rule mode, the tags should be selected
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 #419681 (closed)
Edited by Alexander Turinske