Add reached limit warning for free namespaces
What does this MR do and why?
- we need to alert free namespaces they reached the limit after June 22 and this will do that.
- this should take precedence over the
preview
alert in the same partial - so we ensure that with anif/elsif
- this will ensure we don't care if the
preview_free_user_cap
feature flag is turned off whenfree_user_cap
is turned on.
- this will ensure we don't care if the
- see more details in #352642
Screenshots or screen recordings
How to set up and validate locally
- Create a new group.
- Setup gdk to simulate SaaS - https://docs.gitlab.com/ee/development/ee_features.html#act-as-saas and restart GDK
-
Feature.enable(:free_user_cap)
in console. -
ApplicationSetting.first.update(check_namespace_plan: true)
in console. - Set this method to return
true
with areturn true
just under the method definition.
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.
Related to #352642
Edited by Doug Stull