It is possible to create a group without members

Summary

It is possible to create a group that has no members (Example here)

Steps to reproduce

  1. Create a group
  2. Create a subgroup (if you create it public, you'll be able to see the group when it will have no members) inside the previous group
  3. Move the subgroup (Transfer group) to "No Parent Group"
  4. You have now created an empty members group

Example Project

Example here

What is the current bug behavior?

When you move a group where you inheritate permissions, the permissions are not stored explictely inside that group

What is the expected correct behavior?

I should have the same permissions as before, but without inheritance. If I was an owner when I created the subgroup (step 2) I still should be an owner

Output of checks

This bug happens on GitLab.com

/label ~bug ~Manage backend ~groups subgroups security ~"user management"

I'm sorry but I have no idea why quick actions are not working for assigning labels :( (Maybe another bug?)

Edited by Lorenzo