FE: Add merge request option selector in rules of scan result policy
Why are we doing this work
We are adding any merge request
option for rules section in scan result policy
Now we only have 2 options security scan and license scan.
This issue adds third option
Relevant links
- See epic for more information
Design
Current design doesn't include branch exceptions. It will be right after any branches dropdown
Non-functional requirements
-
Documentation: -
Testing:
Implementation plan
-
frontend Create new component similar to security_scan_rule_builder.vue
and license_scan_rule_builder.vue
-
frontend Update scan_result_policy/base_layout/scan_type_select.vue
to have third new optionAny merge request
-
frontend Add new rule type in policy_editor/scan_result_policy/lib/rules.js
and updategetDefaultRule
Verification steps
- Upload a GitLab Ultimate license
- Navigate to a project => Security & Compliance => Policies => New policy => Scan result Policy
- Select
Any merge request
option in rules section - Make sure
yaml
is updated correctly - Switch between modes, make sure selected rule option stays selected
- Verify same flow for editing existing
scan result policy
- Scan result Policy
Edited by Artur Fedorov