Group count wrong on admin page
Summary
Running 11.0.2-ee (74d84554):
We have used the API to create around 28,000 users. When viewing the admin dashboard, (/admin) we see the correct number of users listed, however, the number of groups is also around 28,000. When you click on the groups, it only displays the 2 groups.
Steps to reproduce
- New gitlab install
- Create a single admin service account (the install has 2 users, the "root" user and the service account user)
- Create 2 groups
- Create a large number of users using the API
- View the /admin page and notice that the group total and the user total are near the same amount.
What is the current bug behavior?
The group total is near the user total, however, there are only 2 groups on the system.
What is the expected correct behavior?
The group total should be 2 (in our instance)
Relevant logs and/or screenshots
and

