Skip to content

Shared subgroups for group protected environment

What does this MR do and why?

This MR implements #437641 (closed) and adds a include_shared_groups parameter to the /-/autocomplete/group_subgroups.json endpoint

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-01-05_at_15.20.05 Screenshot_2024-01-10_at_16.07.29

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Create group main
  2. Assign the group to Ultimate plan (view the group in admin area, and select an Ultimate plan in Permissions and group features section.
    Click to expandScreenshot_2024-01-05_at_15.13.32
  3. Create sub-group users
  4. Create a group invited-group
  5. Invite this group to the main group (go to the main group page, navigate to Manage -> Members Screenshot_2024-01-10_at_16.01.59
  6. Navigate to group level CI/CD settings for `main group
  7. Create new protected environment
  8. Check that both groups are selectable in the protected environment (users and invited group)
Edited by Andrei Zubov

Merge request reports