Add edition to usage ping

This commit is contained in:
Sean McGivern 2017-04-06 20:16:57 +01:00 committed by Rémy Coutable
parent 856dcd1832
commit 092258e924
2 changed files with 9 additions and 5 deletions

View file

@ -48,11 +48,14 @@ module Gitlab
end
def license_usage_data
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 }
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,
edition: 'CE'
}
usage_data
end

View file

@ -14,6 +14,7 @@ describe Gitlab::UsageData do
counts
recorded_at
mattermost_enabled
edition
version
uuid
))