Change API endpoint used when inviting a group to a project
What does this MR do and why?
Related to #391591 (closed)
This MR switches the API endpoint used when inviting a group to a project. We are now using the GET /projects/:id/share_locations
API endpoint.
Before this MR, when inviting a group to a project sometimes groups that were not allowed to be invited would be shown. When you tried to invite them you would just get an error message that said Not found
(see below screenshot). Now they are not shown in the dropdown at all.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Create a private group
- In that private group, create a project
- Navigate to
/admin/users
and choose a user - Navigate to the project from step 2 ->
Manage
->Members
- Invite the user from step 3
- Navigate to the user you just invited in
/admin/users
and clickImpersonate
- Click
New project
in upper right corner - Create a project in you namespace (should be the default)
- In that new project navigate to
Manage
->Members
- Click
Invite a group
- The private group you created in step 1 should not be listed as an option
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman