Groups scope dropdown loads only linked to SPP groups
What does this MR do and why?
- Extract common logic to
base_items_dropdown.vue
- Update
group_projects_dropdown.vue
to use new base dropdown - Create new
linked_items_dropdown.vue
for loading linked to SPP namespaces and projects - Created tests for new components
- Updated existing 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.
Description | UI |
---|---|
Select only linked to SPP groups | Screen Recording 2024-08-28 at 00.22.18.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
-
If dropdown is empty, link some groups to same SPP as selected policy
-
Make sure dropdown, contains linked groups
Related to #480637 (closed)
Edited by Artur Fedorov