summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-18 11:49:11 -0500
committerRuben Davila <rdavila84@gmail.com>2017-05-18 11:49:11 -0500
commit3396edcea054f97c41b334b2800760817a47ba0a (patch)
tree146cf97b5ba1ee3e83f762c68ec131d7de409c35
parent06b614f9fd7a311b9cbc6ad90eecb4cfc5281c78 (diff)
downloadgitlab-ce-3396edcea054f97c41b334b2800760817a47ba0a.tar.gz
Remove Services count from usage ping payload.
This query was timing out and is blocking the sync of usage data for GitLab.com
-rw-r--r--lib/gitlab/usage_data.rb1
-rw-r--r--spec/lib/gitlab/usage_data_spec.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index 4382cf7b12f..bcba2e3e1b6 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -40,7 +40,6 @@ module Gitlab
projects_prometheus_active: PrometheusService.active.count,
protected_branches: ProtectedBranch.count,
releases: Release.count,
- services: Service.where(active: true).count,
snippets: Snippet.count,
todos: Todo.count,
uploads: Upload.count,
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb
index 2c46920456b..b47e1b56fa9 100644
--- a/spec/lib/gitlab/usage_data_spec.rb
+++ b/spec/lib/gitlab/usage_data_spec.rb
@@ -50,7 +50,6 @@ describe Gitlab::UsageData do
pages_domains
protected_branches
releases
- services
snippets
todos
uploads