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-02-12 00:09:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-12 00:09:00 +0300
commitbf217da41b429d80da49287b84dadcbf499ac22c (patch)
treeb3499733d7e1abb88a3f0975333c85d00a80fd96 /lib/gitlab/tracking.rb
parent559d99e40299e67969023a1afd23d084fbf23ed1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking.rb')
-rw-r--r--lib/gitlab/tracking.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/tracking.rb b/lib/gitlab/tracking.rb
index ca4afb4c19c..09697705361 100644
--- a/lib/gitlab/tracking.rb
+++ b/lib/gitlab/tracking.rb
@@ -24,8 +24,8 @@ module Gitlab
Gitlab::CurrentSettings.snowplow_enabled?
end
- def event(category, action, label: nil, property: nil, value: nil, context: [], standard_context: nil)
- context.push(standard_context.to_context) if standard_context
+ def event(category, action, label: nil, property: nil, value: nil, context: [], project: nil, user: nil, namespace: nil) # rubocop:disable Metrics/ParameterLists
+ context += [Tracking::StandardContext.new(project: project, user: user, namespace: namespace).to_context]
snowplow.event(category, action, label: label, property: property, value: value, context: context)
product_analytics.event(category, action, label: label, property: property, value: value, context: context)