Skip to content

Auto select namespace for trial when trial

What does this MR do and why?

note I've added a dependency on !118382 (merged) just so I don't step on myself.

We want to help the user out a bit more and autoselect a particular namespace in the trial process when(see #402888 (closed) for details):

  1. There is more than 1 trial eligible namespace
  2. The trial initiation is started within an existing namespace

Screenshots or screen recordings

before after
Screen_Recording_2023-05-02_at_10.02.07_AM Screen_Recording_2023-05-02_at_10.01.05_AM

How to set up and validate locally

📓 ee/spec/features/trials/saas/creation_with_multiple_existing_namespace_flow_spec.rb new test proves out this change.

  1. Setup to simulate SaaS and restart GDK
  2. Create 2 new groups.
  3. Under one of the group's settings go to billing page like http://gdk.test:3000/groups/trial-select-example-group/-/billings
  4. Click Start a free Ultimate trial.
  5. Fill out the form...
  6. The rest would be really hard to emulate here w/o a fully setup local customersDot and is why we have the feature specs that haven't needed to change with this MR.

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 #402888 (closed)

Edited by Doug Stull

Merge request reports

Loading