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
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-05 15:49:22 +0300
committerRémy Coutable <remy@rymai.me>2017-04-14 16:20:55 +0300
commitc53afeda0c2ee0cda89c235c9e8799baa1cfdc1a (patch)
tree7efaef06c5ec20fc87fe6dadf1a794c8ef00f187 /lib
parentf5b42881c88678cd85ea7743fdffa400105b4b8d (diff)
Port 'Add uuid to usage ping' to CE
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1521
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/usage_data.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index ae1ae82ab4c..46875908fa3 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -1,5 +1,7 @@
module Gitlab
class UsageData
+ include Gitlab::CurrentSettings
+
class << self
def data
Rails.cache.fetch('usage_data', expires_in: 1.hour) { uncached_data }
@@ -45,7 +47,8 @@ module Gitlab
end
def license_usage_data
- usage_data = { version: Gitlab::VERSION,
+ usage_data = { uuid: current_application_settings.uuid,
+ version: Gitlab::VERSION,
active_user_count: User.active.count,
recorded_at: Time.now,
mattermost_enabled: Gitlab.config.mattermost.enabled }