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-01-22 09:08:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-22 09:08:52 +0300
commit16e3c34cac856092627cc41a8a9d9c69f3b26c03 (patch)
treebec908ebe8db37dc7b3a08221cd9524963558d54 /lib/gitlab/tracking
parent6ef43e2aa1cad78daaed93eff1aebd6a4e7e18a6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking')
-rw-r--r--lib/gitlab/tracking/standard_context.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/gitlab/tracking/standard_context.rb b/lib/gitlab/tracking/standard_context.rb
index 71dfe27dd5a..8662b4ade37 100644
--- a/lib/gitlab/tracking/standard_context.rb
+++ b/lib/gitlab/tracking/standard_context.rb
@@ -11,24 +11,12 @@ module Gitlab
@data = data
end
- def namespace_id
- namespace&.id
- end
-
- def project_id
- @project&.id
- end
-
def to_context
SnowplowTracker::SelfDescribingJson.new(GITLAB_STANDARD_SCHEMA_URL, to_h)
end
private
- def namespace
- @namespace || @project&.namespace
- end
-
def to_h
public_methods(false).each_with_object({}) do |method, hash|
next if method == :to_context