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
010f4725
Commit
010f4725
authored
Nov 27, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make .enabled? in destinations public
parent
76c68be9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
lib/gitlab/tracking/destinations/snowplow.rb
lib/gitlab/tracking/destinations/snowplow.rb
+4
-4
lib/gitlab/tracking/destinations/snowplow_micro.rb
lib/gitlab/tracking/destinations/snowplow_micro.rb
+5
-5
No files found.
lib/gitlab/tracking/destinations/snowplow.rb
View file @
010f4725
...
...
@@ -30,16 +30,16 @@ module Gitlab
}.
transform_keys!
{
|
key
|
key
.
to_s
.
camelize
(
:lower
).
to_sym
}
end
def
enabled?
Gitlab
::
CurrentSettings
.
snowplow_enabled?
end
def
hostname
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
end
private
def
enabled?
Gitlab
::
CurrentSettings
.
snowplow_enabled?
end
def
app_id
Gitlab
::
CurrentSettings
.
snowplow_app_id
end
...
...
lib/gitlab/tracking/destinations/snowplow_micro.rb
View file @
010f4725
...
...
@@ -18,6 +18,11 @@ module Gitlab
).
transform_keys!
{
|
key
|
key
.
to_s
.
camelize
(
:lower
).
to_sym
}
end
override
:enabled?
def
enabled?
true
end
override
:hostname
def
hostname
"
#{
uri
.
host
}
:
#{
uri
.
port
}
"
...
...
@@ -33,11 +38,6 @@ 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