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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
f5b42881
Commit
f5b42881
authored
Jan 18, 2017
by
Z.J. van de Weg
Committed by
Rémy Coutable
Apr 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track Mattermost usage
parent
a19dd9ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
doc/user/admin_area/settings/usage_statistics.md
doc/user/admin_area/settings/usage_statistics.md
+3
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+2
-1
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+1
-0
No files found.
doc/user/admin_area/settings/usage_statistics.md
View file @
f5b42881
...
@@ -75,6 +75,9 @@ The total number of the following is sent back to GitLab Inc.:
...
@@ -75,6 +75,9 @@ The total number of the following is sent back to GitLab Inc.:
-
Remote mirrors
-
Remote mirrors
-
Web hooks
-
Web hooks
Also, we track if you've installed Mattermost with GitLab.
For example:
`"mattermost_enabled":true"`
.
## Privacy policy
## Privacy policy
GitLab Inc. does
**not**
collect any sensitive information, like project names
GitLab Inc. does
**not**
collect any sensitive information, like project names
...
...
lib/gitlab/usage_data.rb
View file @
f5b42881
...
@@ -47,7 +47,8 @@ module Gitlab
...
@@ -47,7 +47,8 @@ module Gitlab
def
license_usage_data
def
license_usage_data
usage_data
=
{
version:
Gitlab
::
VERSION
,
usage_data
=
{
version:
Gitlab
::
VERSION
,
active_user_count:
User
.
active
.
count
,
active_user_count:
User
.
active
.
count
,
recorded_at:
Time
.
now
}
recorded_at:
Time
.
now
,
mattermost_enabled:
Gitlab
.
config
.
mattermost
.
enabled
}
usage_data
usage_data
end
end
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
f5b42881
...
@@ -14,6 +14,7 @@ describe Gitlab::UsageData do
...
@@ -14,6 +14,7 @@ describe Gitlab::UsageData do
counts
counts
version
version
recorded_at
recorded_at
mattermost_enabled
)
)
)
)
end
end
...
...
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