Skip to content

Add unlimited members alert

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
image image

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

!110301 (diffs)

      if !source.root_ancestor.trial_active?
        dataset[:active_trial_dataset] = ::Gitlab::Json.dump(active_trial_dataset(source))
      end

Additional steps:

  1. Simulate your GDK as SaaS
  2. bin/rails c
    
    ApplicationSetting.first.update(dashboard_limit_enabled: true)
  3. 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.

Related to #376227

Edited by Jay Montal

Merge request reports