Add group scope to policy drawer
What does this MR do and why?
Add group scope to a policy drawer
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.
Description | UI |
---|---|
Policy list and drawer | Screen Recording 2024-09-13 at 00.21.27.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable feature flag:
echo "Feature.enable(:policy_group_scope_project)" | rails c
- Go to a project (Security Policy project)
- Make sure this project is linked to more then 1 group or project as SPP.
- If not go to Secure -> Policies -> Edit policy Project -> Link project to groups/projects
- Go to project -> Secure -> Policies -> New policy -> any type -> Select all projects in linked groups
- Edit policy scope with new option save policy
- Go back to list make sure Policy scope in table and in drawer are displayed correctly
Related to #488378 (closed)