Create rule mode radio button for fallback property
Why are we doing this work
- users what to modify the
fallback_behavior
propert in rule mode
Relevant links
See epic for designs
Non-functional requirements
-
Documentation: Maybe -
Feature flag: No -
Performance: No -
Testing: Unit and Integration
Implementation plan
-
add a new slot section in editor_layout for fallback_behavior
-
use the new slot in editor_component -
verify the yaml for the fallback property and disable rule mode if it is invalid
Verification steps
- Upload a GitLab Ultimate license
- Navigate to a project => Secure => Policies => New policy => Merge request approval
- Verify the fallback radio buttons appear with
false
as default - Verify they can be toggled and update the yaml
- Navigate to yaml mode => Modify the property => Navigate to rule mode
- Verify that the rule mode is not disabled
- Verify that the radio buttons have been updated
- Navigate to a project => Secure => Policies => New policy => Scan execution
- Verify the fallback radio buttons do not appear
Edited by Alexander Turinske