Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7898f552
Commit
7898f552
authored
Oct 27, 2021
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent double run of experiment
parent
11d85d13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
ee/app/helpers/trial_status_widget_helper.rb
ee/app/helpers/trial_status_widget_helper.rb
+9
-3
No files found.
ee/app/helpers/trial_status_widget_helper.rb
View file @
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment