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
9e65911f
Commit
9e65911f
authored
Jun 15, 2021
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Move push_to_client logic out of publish method
parent
fc073b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
app/experiments/application_experiment.rb
app/experiments/application_experiment.rb
+8
-5
No files found.
app/experiments/application_experiment.rb
View file @
9e65911f
...
...
@@ -16,11 +16,14 @@ class ApplicationExperiment < Gitlab::Experiment # rubocop:disable Gitlab/Namesp
track
(
:assignment
)
# track that we've assigned a variant for this context
begin
Gon
.
push
({
experiment:
{
name
=>
signature
}
},
true
)
# push the experiment data to the client
rescue
NoMethodError
# means we're not in the request cycle, and can't add to Gon. Log a warning maybe?
end
push_to_client
end
# push the experiment data to the client
def
push_to_client
Gon
.
push
({
experiment:
{
name
=>
signature
}
},
true
)
rescue
NoMethodError
# means we're not in the request cycle, and can't add to Gon. Log a warning maybe?
end
def
track
(
action
,
**
event_args
)
...
...
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