Adds the experiment context for trial benefit modal to invite modal
What does this MR do and why?
Adds the experiment context for trial benefit modal to invite modal
- needed for control experiment analysis.
- only valid to add this on when it is celebration as that is when the experiment runs during onboarding.
- moves the tracking for render of the ultimate modal to be on shown instead of mount as
ee/app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab.vue
always mounts it, but only conditionally shows it and that is when we want to track.
Screenshots or screen recordings
no change
Control | Candidate |
---|---|
How to set up and validate locally
note: apply trial to group requires local customersDot setup, so to validate the experiment, please comment out the line to check active trial in learn_gitlab_helper.rb
def show_ultimate_trial_benefit_modal?(project)
# return unless project.root_ancestor.trial_active?
experiment(:ultimate_trial_benefit_modal, group: project.root_ancestor) do |e|
e.candidate { true }
end.run
end
- Setup to simulate SaaS and restart GDK.
- In rails console, run
Feature.enable(:ultimate_trial_benefit_modal)
- Register as a new user.
- On the welcome page, select any
role
andJust me
. - Chose
Create a new project
- Click
Continue
- Fill out fields to create a group and project on the next page.
- Click
Create project
- Verify you get to the onboarding and page refreshes to provide a
Ok, let's go
button. - Click the button and verify you are dropped into the learn gitlab page and the candidate modal pops up with confetti.
- (You can create a cookie manually in dev tool:
confetti_post_signup
with valuetrue
, and refresh the learn gitlab page to experience it again)
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 #429933
Edited by Doug Stull