Add warning to imports when project creation protection is "No one"
requested to merge 431566-warn-user-that-migrating-with-default-project-creation-protection-set-to-no-one-will-not into master
What does this MR do and why?
When Default project creation protection is enabled and set to No one at the group or instance level:
- Group level with the "Roles allowed to create projects" setting. Docs.
- Instance level with the "Default project creation protection". Docs.
Also disabled the option to "Import with projects" and changes the button + dropdown to only button with "Import without projects".
This is needed because importing projects will fail when project creation protection is "No one".
Changelog: changed
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
Before | After |
---|---|
How to set up and validate locally
Import groups by direct transfer
- On the left sidebar, at the top, select Create new... (+) and New group. Then select Import group.
- In GitLab source instance base URL, enter your GDK URL. For example,
http://127.0.0.1:3000
. - Enter Personal access token with a token from your GDK.
- Select Connect instance.
- You should be on the Import groups by direct transfer page.
Change Default project creation policy on the instance level
- Go to Admin Area > Settings > General. For example,
http://127.0.0.1:3000/admin/application_settings/general#js-visibility-settings
. - Expand the Visibility and access controls section.
- Change Default project creation protection to No one and select Save changes.
Change Default project creation policy on the instance level
- Go to Group > Settings > General. For example,
http://127.0.0.1:3000/groups/flightjs/-/edit#js-permissions-settings
. - Expand the Permissions and group features section.
- Change Roles allowed to create projects to No one and select Save changes.
Related to #431566 (closed)
Edited by Justin Ho Tuan Duong