Update when default checkbox shows
requested to merge 441520-add-policy-scope-for-projects-existing-with-scope into 441520-add-policy-scope-for-projects
What does this MR do and why?
Update when default default checkbox shows
- hide checkbox for spp policies that have policy_scope on them
- update tests
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Scenario | Screenshot |
---|---|
existing policy - no scope | |
existing policy - scope |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable Feature Flags
echo "Feature.enable(:security_policies_policy_scope) && Feature.enable(:security_policies_policy_scope_project)" | gdk rails c
- Navigate to a group => Settings --> General --> Permissions and group features section
- Enable Security policy scope
- Go to project in the group --> Secure --> Policies --> New Policy --> Result or Execution policy
- Verify the policy scope section appears without the checkbox
- Save the policy without the
policy_scope
property - Navigate back to the project in the group --> Secure --> Policies
- Select the policy you just created and click "Edit policy"
- Verify the policy scope section has the check box for the default policy scope
- Add a policy scope to it
- Save the policy without the
policy_scope
property - Navigate back to the project in the group --> Secure --> Policies
- Select the policy you just created and click "Edit policy"
- Verify the policy scope section appears without the checkbox
Related to #441520 (closed)