diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-15 18:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-15 18:09:07 +0300 |
commit | f5c3f32975addd56fe8659f1c346d0e56f0b23d9 (patch) | |
tree | 9d6594793e656c52341a98d22d882d96d240433f /app/experiments/application_experiment.rb | |
parent | c8b7a349bc50cff1e8ef18204042978476527b0b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/experiments/application_experiment.rb')
-rw-r--r-- | app/experiments/application_experiment.rb | 3 |
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 |