summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-03-15 16:24:45 -0500
committerRémy Coutable <remy@rymai.me>2017-04-14 15:20:55 +0200
commitf41b693fc713ae1c212b2118b0fc2d67c519f4c6 (patch)
treec9e1ef24cf7aeb3d066e88af064f229dd62d43ac
parent0483019e9800dc1b4ef4493890f815f047b7c04e (diff)
downloadgitlab-ce-f41b693fc713ae1c212b2118b0fc2d67c519f4c6.tar.gz
Remove pushes count from usage ping payload
This query is constantly generating timeout errors on large installations and we don't have a simple solution for now and also we don't think having this counter is really critical.
-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 234d8680545..e5c1407d8fe 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -32,7 +32,6 @@ module Gitlab
merge_requests: MergeRequest.count,
milestones: Milestone.count,
notes: Note.count,
- pushes: Event.code_push.count,
pages_domains: PagesDomain.count,
projects: Project.count,
protected_branches: ProtectedBranch.count,
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb
index 8d2f086f0f5..badb8e3c7ae 100644
--- a/spec/lib/gitlab/usage_data_spec.rb
+++ b/spec/lib/gitlab/usage_data_spec.rb
@@ -41,7 +41,6 @@ describe Gitlab::UsageData do
milestones
notes
projects
- pushes
pages_domains
protected_branches
releases