Commit ec9a1f48 authored by Max Woolf's avatar Max Woolf

Merge branch '344050-prevent-double-run-of-experiment' into 'master'

Prevent double-run of  forcibly_show_trial_status_popover experiment

See merge request gitlab-org/gitlab!73224
parents fea1ae37 7898f552
......@@ -48,12 +48,18 @@ module TrialStatusWidgetHelper
end
def force_popover_to_be_shown?(group)
force_popover = false
experiment(:forcibly_show_trial_status_popover, group: group) do |e|
e.use { false }
e.try { !dismissed_feature_callout?(current_user_callout_feature_id(group.trial_days_remaining)) }
e.try do
force_popover = !dismissed_feature_callout?(
current_user_callout_feature_id(group.trial_days_remaining)
)
end
e.record!
e.run
end
force_popover
end
def current_user_callout_feature_id(days_remaining)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment