Add warning to subgroup settings 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 this same warning is not displayed in the subgroup settings. Instead, users only see the following:
This setting is applied on 'PARENT_GROUP'. You can override the setting or remove the share with group lock from 'PARENT_GROUP'.
or when disabled:
This setting is applied on 'PARENT_GROUP' and has been overridden on this subgroup.
This can lead to confusion when a group of users previously invited to a project are no longer able to access the project. I propose that a warning that Groups already added to the project lose access
is added to the subgroup settings (Settings > General > Permissions, LFS, 2FA > Prevent sharing a project within <group_name> with other groups).
📹 Walk through video
Solution proposal
Invite group
button when the setting Prevent adding new members to projects within this group
is active.
1. Disable - Disable
Invite group
button inProject
/Members
screen. - Add a tool tip on hover for that button that states it has been disabled.
Group/Project owner has disabled adding members or groups.
2. Update helper text in settings:
This setting is applied on '<PARENT_GROUP>'. You can override the setting or remove the share with group lock from 'PARENT_GROUP'. Groups already added to the project lose access.
or when disabled:
This setting is applied on '<PARENT_GROUP>' and has been overridden on this subgroup. When enabling this setting, groups already added to the project lose access.