From 3396edcea054f97c41b334b2800760817a47ba0a Mon Sep 17 00:00:00 2001 From: Ruben Davila Date: Thu, 18 May 2017 11:49:11 -0500 Subject: Remove Services count from usage ping payload. This query was timing out and is blocking the sync of usage data for GitLab.com --- lib/gitlab/usage_data.rb | 1 - spec/lib/gitlab/usage_data_spec.rb | 1 - 2 files changed, 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 -- cgit v1.2.1