Cannot create a subgroup in a private or internal group
Summary
Can not create a subgroup on a Private or internal Group.
When trying to create a subgroup on a internal/private group the folowing error happens:
The form contains the following error:
Visibility level public is not allowed since the parent group has a private visibility.
Steps to reproduce
1 - Create a private group
2 - Try to Create a subgroup
Example Project
What is the expected correct behavior?
I should be able to create subgroups in private/internal group
Results of GitLab environment info
Gitlab version: gitlab-ce-15.3.3-ce.0.el7.x86_64
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.6 Bundler Version:2.3.15 Rake Version: 13.0.6 Redis Version: 6.2.7 Sidekiq Version:6.4.0 Go Version: unknown GitLab information Version: 15.3.3 Revision: c629a47f87f Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.10 URL: https://exemple.com.br HTTP Clone URL: https://exemple.com.br/some-group/some-project.git SSH Clone URL: git@exemple.com.br:some-group/some-project.git Using LDAP: yes Using Omniauth: no GitLab Shell Version: 14.10.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.10.0 ? ... OK (14.10.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... . . . . 15291/10517 ... yes 15291/10518 ... yes 15291/10519 ... yes 15291/10520 ... yes 5741/10521 ... yes 5741/10522 ... yes 3211/10523 ... yes 2884/10524 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.5) Git user has default SSH configuration? ... yes Active users: ... 4879 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished


