GitHub import should respect group limits when importing projects
What does this MR do and why?
GitHub import should respect group limits when importing projects
Changelog: changed EE: true
References
https://gitlab.com/gitlab-org/gitlab/-/issues/559224
How to set up and validate locally
- Create a project on GitHub.
- Create a group on GitLab.
- Import the project from GitHub.
- Go through the user mapping flow to assign contributions to a member.
- The imported project should have two direct members:
- You.
- The user you mapped the GitHub contributions to.
- Go to the group settings (
/groups/membership-demo-dest/-/edit#js-permissions-settings) and enable "Users cannot be added to projects in this group". - Import the project again.
- The new project should have no direct memberships, only your inherited membership from the parent group.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by James Nutt