Skip to content

Now allowing expired trials to see Trial Discover Page

What does this MR do and why?

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/442050

Now allowing expired trials to see the Trial Discover Page.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No visible change

How to set up and validate locally

  1. Setup GDK to simulate SaaS
  2. Setup and run Customers Dot
  3. Enable feature flag by running echo "Feature.enable :trial_discover_page" | gdk rails c
  4. Register a new user for a trial
  5. Run gdk rails c
  6. Run the following commands to make user's trial expired:
sub = GitlabSubscription.last
sub.update_columns(hosted_plan_id: nil, trial_starts_on: 10.days.ago, trial_ends_on: 1.days.ago)
  1. Make sure user can navigate to http://gdk.test:3000/groups/<group_name>/-/discover

Related to #442050

Edited by Ross Byrne

Merge request reports