Add unlimited members alert
requested to merge 376227-add-unlimited-members-during-trial-alert-to-invite-members-modal into master
What does this MR do and why?
What
Adds an alert to the invite members modal when a namespace is in an active trial
Why
Serves as a reminder to owners of a namespace with an active trial that they can have unlimited users during their trial period
Screenshots or screen recordings
Trial Not Active | Trial Active |
---|---|
How to set up and validate locally
Note: Since trials required a valid CustomersDot connection, trials can't be launched easily in a local development environment
For testing locally it's easiest to negate the logic which populates the dataset with the necessary key/json data if a trial is active which will show the alert
if !source.root_ancestor.trial_active?
dataset[:active_trial_dataset] = ::Gitlab::Json.dump(active_trial_dataset(source))
end
Additional steps:
- Simulate your GDK as SaaS
-
bin/rails c ApplicationSetting.first.update(dashboard_limit_enabled: true)
- Ensure your group is set to private
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 #376227
Edited by Jay Montal