Update policy-editor-layout to include rule mode
What does this MR do and why?
- the rule mode for policies should look exactly the same except for the rules and actions
- incorporate the name, description, and enabled radio into the default policy-editor-layout rule-mode configuration so that it does not need to be reimplemented every time
- add new feature flag for scan execution rule mode
Screenshots or screen recordings
Page | After - FF on |
---|---|
Scan Execution | |
Scan Result |
How to set up and validate locally
- Ensure your GDK has a GitLab Ultimate license uploaded
- Enable the
:scan_execution_rule_mode
feature flag - Navigate to a project =>
Security and Compliance
=>Policies
=>New policy
- Select
Scan Execution Policy
- Verify the
Rule
mode exists and is selected first - Verify changes made on
Rule
/YAML
mode are translated over to the other mode - Navigate back to the beginning and select
Scan Result Policy
- Verify everything works as expected
- Navigate to a project =>
Security and Compliance
=>Policies
- Select an existing
Scan Result Policy
and selectEdit Policy
- Cause a parsing error and ensure the alert appears
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 #359884 (closed)
Edited by Alexander Turinske