Add policy group scope to a drawer
What does this MR do and why?
- Policy scope has a new feature that allows selecting groups to apply policies to, in addition to projects.
- It is reflected now in policy list in policy scope
- It is reflected in policy details 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 |
|---|---|
| Drawer details and table details for groups scope | groups.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)" | rails c -
Go to a group
-
Secure -> Policies
-
New policy => any type
-
Make sure there is an option
all projects in linked groups -
Select it, select groups exception projects -> save policy
-
Go back to list
-
Make sure you have saved policy in list and it has groups scope in scope column
-
Click on a policy row, make sure changes are reflected in policy scope section of a drawer
Related to #478426 (closed)
Edited by Artur Fedorov