Add freeUserCapEnforced field to Group type
What does this MR do and why?
This adds the field freeUserCapEnforced
to the Group type in GraphQl
which indicates if the group has limited free users when on a free
plan.
FE MR: !91248 (merged) Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/357257
Screenshots or screen recordings
How to set up and validate locally
export GITLAB_SIMULATE_SAAS=1
- Have customerDot running and set up correctly to work with your GitLab instance
gdk start
- Enable free_user_cap as feature flag globally, and set the gitlab instance to namespace plans
bin/rails c Feature.enable(:free_user_cap) ApplicationSetting.first.update(check_namespace_plan: true)
- Visit
http://localhost:3000/-/graphql-explorer
and run the queryquery { group(fullPath:"PATH_TO_FREE_GROUP") { id enforceFreeUserCap } }
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Nicolas Dular