Add warning or hide Groups from Project members page when project sharing with a group is disabled
Problem
GitLab allows users to Share a project with a group of users. We also allow users to prevent a project from being shared with groups. When enabling the setting to prevent a project from being shared in the parent namespace, users can see the following warning:
Applied to all subgroups unless overridden by a group owner. Groups already added to the project lose access.
This warning points out that any groups already invited to a project will lose access upon enabling the setting. However if you visit the Project members page (Project Information > Members > Groups) when this setting is enabled, invited Groups are still displayed. Furthermore, there is no warning that invited groups no longer have access to the project.
Proposal
This can cause confusion when users of an invited Group are no longer able to access the project. I propose the following potential solutions:
- Add a warning to the Project members page that the listed groups no longer have access to the project while this setting is enabled.