Commit 924885e5 authored by Tiago Botelho's avatar Tiago Botelho

Resolves usage-data conflicts

parent 61a5537e
...@@ -25,7 +25,6 @@ module Gitlab ...@@ -25,7 +25,6 @@ module Gitlab
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, mattermost_enabled: Gitlab.config.mattermost.enabled,
<<<<<<< HEAD
edition: 'EE' edition: 'EE'
} }
...@@ -43,11 +42,6 @@ module Gitlab ...@@ -43,11 +42,6 @@ module Gitlab
usage_data[:license_add_ons] = license.add_ons usage_data[:license_add_ons] = license.add_ons
end end
=======
edition: 'CE'
}
>>>>>>> ce-com/master
usage_data usage_data
end end
...@@ -96,7 +90,6 @@ module Gitlab ...@@ -96,7 +90,6 @@ module Gitlab
} }
end end
<<<<<<< HEAD
def service_desk_counts def service_desk_counts
return {} unless ::License.feature_available?(:service_desk) return {} unless ::License.feature_available?(:service_desk)
...@@ -133,31 +126,12 @@ module Gitlab ...@@ -133,31 +126,12 @@ module Gitlab
} }
end end
=======
def features_usage_data
features_usage_data_ce
end
def features_usage_data_ce
{
signup: current_application_settings.signup_enabled?,
ldap: Gitlab.config.ldap.enabled,
gravatar: current_application_settings.gravatar_enabled?,
omniauth: Gitlab.config.omniauth.enabled,
reply_by_email: Gitlab::IncomingEmail.enabled?,
container_registry: Gitlab.config.registry.enabled,
gitlab_shared_runners: Gitlab.config.gitlab_ci.shared_runners_enabled
}
end
>>>>>>> ce-com/master
def components_usage_data def components_usage_data
{ {
gitlab_pages: { enabled: Gitlab.config.pages.enabled, version: Gitlab::Pages::VERSION }, gitlab_pages: { enabled: Gitlab.config.pages.enabled, version: Gitlab::Pages::VERSION },
git: { version: Gitlab::Git.version }, git: { version: Gitlab::Git.version },
database: { adapter: Gitlab::Database.adapter_name, version: Gitlab::Database.version } database: { adapter: Gitlab::Database.adapter_name, version: Gitlab::Database.version }
} }
<<<<<<< HEAD
end end
def license_edition(plan) def license_edition(plan)
...@@ -169,8 +143,6 @@ module Gitlab ...@@ -169,8 +143,6 @@ module Gitlab
else # Older licenses else # Older licenses
'EE' 'EE'
end end
=======
>>>>>>> ce-com/master
end end
def services_usage def services_usage
......
...@@ -43,11 +43,8 @@ describe Gitlab::UsageData do ...@@ -43,11 +43,8 @@ describe Gitlab::UsageData do
container_registry container_registry
gitlab_pages gitlab_pages
gitlab_shared_runners gitlab_shared_runners
<<<<<<< HEAD
elasticsearch elasticsearch
geo geo
=======
>>>>>>> ce-com/master
git git
database database
)) ))
...@@ -130,7 +127,6 @@ describe Gitlab::UsageData do ...@@ -130,7 +127,6 @@ describe Gitlab::UsageData do
end end
end end
<<<<<<< HEAD
describe '#features_usage_data_ee' do describe '#features_usage_data_ee' do
subject { described_class.features_usage_data_ee } subject { described_class.features_usage_data_ee }
...@@ -140,8 +136,6 @@ describe Gitlab::UsageData do ...@@ -140,8 +136,6 @@ describe Gitlab::UsageData do
end end
end end
=======
>>>>>>> ce-com/master
describe '#components_usage_data' do describe '#components_usage_data' do
subject { described_class.components_usage_data } subject { described_class.components_usage_data }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment