Exclude projects pending deletion from group visibility level validation
What does this MR do and why?
Fixes issue https://gitlab.com/gitlab-org/gitlab/-/issues/418870 where the visibility level of groups cannot be changed after a public project owned by the group is pending deletion.
How to set up and validate locally
- Create a new public group i.e.
publicgroup
- Under the public group, create an empty private project i.e.
publicgroup/privateproject
- Under the public group, create another empty project but with public visibility i.e.
publicgroup/publicprojecttodelete
- Verify in the group settings that the visibility level cannot be changed from public
- Delete the public group made in step 3 (
publicgroup/publicprojecttodelete
) - If delayed project retention is enabled, delete the group immediately by going back to the settings page and deleting it again (the group name will now have
-deleted-XXXXX
at the end of it) - Verify in the group settings that the option to make the group private is available again
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.