Paid groups getting a banner warning "Your free group is now limited to 5 members" on Usage Quota page

Summary

Some paid groups (customers on Premium and Ultimate plans) are getting a banner warning "Your free group is now limited to 5 members" on Usage Quota page.

Steps to reproduce

Go to the following URL of the affected paid groups:

https://gitlab.com/groups/<replace_with_affected_group_namespace>/-/usage_quotas#seats-quota-tab

What is the current bug behavior?

Some paid groups are getting a banner warning "Your free group is now limited to 5 members" on Usage Quota page.

What is the expected correct behavior?

Only free groups, and not paid groups, should be getting the banner warning. Also this functionality is behind feature flag and should not be visible when the flag is disabled.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com.

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Kamil Niechajewicz