Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-15 18:09:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-15 18:09:07 +0300
commitf5c3f32975addd56fe8659f1c346d0e56f0b23d9 (patch)
tree9d6594793e656c52341a98d22d882d96d240433f /app/experiments/application_experiment.rb
parentc8b7a349bc50cff1e8ef18204042978476527b0b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/experiments/application_experiment.rb')
-rw-r--r--app/experiments/application_experiment.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/experiments/application_experiment.rb b/app/experiments/application_experiment.rb
index 8a3ced88c5a..ed0d146af8c 100644
--- a/app/experiments/application_experiment.rb
+++ b/app/experiments/application_experiment.rb
@@ -10,9 +10,10 @@ class ApplicationExperiment < Gitlab::Experiment # rubocop:disable Gitlab/Namesp
end
def publish(_result = nil)
+ return unless should_track? # don't track events for excluded contexts
+
track(:assignment) # track that we've assigned a variant for this context
- # push the experiment data to the client
begin
Gon.push({ experiment: { name => signature } }, true) # push the experiment data to the client
rescue NoMethodError