Skip to content

Productize `trial_discover_page` experiment

Roy Liu requested to merge 458783-productize-trial_discover_page-experiment into master

What does this MR do and why?

Related to #458783

The <code data-sourcepos="5:7-5:25">trial_discover_page</code> experiment has been running for about 2 months now. We want to productize the experiment.

That means:

  • removing the feature flag
  • removing the references to the FF, including tracking references
  • polishing the UX
  • corresponding spec changes

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 UX changes to the trial discover page itself, local screenshot attached for reference:

Click to expand localhost_3000_groups_post-trial-group_-_discover
Changed area Before After
Active trial widget and popover before_active after_active
Expired trial widget and popover before_expired after_expired

How to set up and validate locally

  1. Simulate saas and restart gdk

  2. Login and create a group

  3. In rails console, change the trial start and end date for the group

    Group.find_by(name: your_group_name).gitlab_subscription.update_columns(trial_starts_on: 31.days.ago, trial_ends_on: 1.days.ago)
  4. Go to group overview page and check super sidebar, you should see the trial-end widget.

  5. In rails console, run this to change the group to be in an active trial:

    Group.find_by(name: your_group_name).gitlab_subscription.update_columns(trial: true, hosted_plan_id: 7, trial_starts_on: 10.days.ago, trial_ends_on: 20.days.from_now)
  6. Refresh the group overview page, you should see the active trial widget in the sidebar.

Edited by Roy Liu

Merge request reports