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
76c68be9
Commit
76c68be9
authored
Nov 26, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move .enabled? from Gitlab::Tracking to destination class
parent
666fa798
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
lib/gitlab/tracking.rb
lib/gitlab/tracking.rb
+1
-1
lib/gitlab/tracking/destinations/snowplow.rb
lib/gitlab/tracking/destinations/snowplow.rb
+1
-1
lib/gitlab/tracking/destinations/snowplow_micro.rb
lib/gitlab/tracking/destinations/snowplow_micro.rb
+5
-0
No files found.
lib/gitlab/tracking.rb
View file @
76c68be9
...
...
@@ -4,7 +4,7 @@ module Gitlab
module
Tracking
class
<<
self
def
enabled?
snowplow
_micro_enabled?
||
Gitlab
::
CurrentSettings
.
snowplow_
enabled?
snowplow
.
enabled?
end
def
event
(
category
,
action
,
label:
nil
,
property:
nil
,
value:
nil
,
context:
[],
project:
nil
,
user:
nil
,
namespace:
nil
,
**
extra
)
# rubocop:disable Metrics/ParameterLists
...
...
lib/gitlab/tracking/destinations/snowplow.rb
View file @
76c68be9
...
...
@@ -37,7 +37,7 @@ module Gitlab
private
def
enabled?
Gitlab
::
Tracking
.
enabled?
Gitlab
::
CurrentSettings
.
snowplow_
enabled?
end
def
app_id
...
...
lib/gitlab/tracking/destinations/snowplow_micro.rb
View file @
76c68be9
...
...
@@ -33,6 +33,11 @@ module Gitlab
private
override
:enabled?
def
enabled?
true
end
override
:cookie_domain
def
cookie_domain
'.gitlab.com'
...
...
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