Set visibility level 'Private' for restricted Internal imported projects
What does this MR do?
Sets visibility level to Private
for projects that are being imported with Internal
visibility level, when that level is being restricted in admin settings. This is done to minimise the potential risk of gitlab-ee#12388 going live and breaking internal project imports.
Potential risk would be unintentional setting of visibility level to Private
when visibility setting is not Internal or it is not restricted in admin settings.
Steps to reproduce
- Go to admin settings, restrict
Internal
visibility level. - As admin, create new
Internal
project (restrictions above do not apply to admins) - Export created project
- Impersonate a user and import previously exported project
- Once export is complete, verify Project visibility level is set to
Internal
Does this MR meet the acceptance criteria?
Conformity
Edited by George Koltsov