Update yaml file from policy scope
What does this MR do and why?
This MR partially resolves #428494 (closed)
Policy scope component updates yaml file and set UI state from parsed yaml
Changes in yaml
are also reflected in UI
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Description | UI |
---|---|
new policy frameworks | new frameworks.mov |
new policy projects | projects.mov |
Existing policy | existing.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Enable Feature Flag
Feature.enable(:security_policies_policy_scope)
-
Go to a Group ->
Secure
->Policies
->New policy
-> New scanresult/execution
policy -> check Policy scope section is there. -
Go to Project ->
Secure
->Policies
->New policy
-> New scanresult/execution policy
-> check Policy scope section isnot
there. -
Try to select different options in policy scope section and save policy
-
Try editing saved policy
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 #428494 (closed)