Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVictor Zagorodny <vzagorodny@gitlab.com>2019-02-06 20:56:16 +0300
committerVictor Zagorodny <vzagorodny@gitlab.com>2019-02-12 13:46:31 +0300
commit60bd0a24f539217d760437e49e86c04e5c43498a (patch)
treeb286b941bf4ab46a30344a61dfb889b91c8ce7cf /lib
parent885e2a9c93f85b5411a6f230b6e93aec502db64c (diff)
Add user_preferences_usage to usage ping
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/usage_data.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index 6bfcf83f388..4f70d6b689d 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -90,7 +90,10 @@ module Gitlab
todos: count(Todo),
uploads: count(Upload),
web_hooks: count(WebHook)
- }.merge(services_usage).merge(approximate_counts)
+ }
+ .merge(services_usage)
+ .merge(approximate_counts)
+ .merge(user_preferences: user_preferences_usage)
}
end
# rubocop: enable CodeReuse/ActiveRecord
@@ -159,6 +162,10 @@ module Gitlab
}
end
+ def user_preferences_usage
+ {} # augmented in EE
+ end
+
def count(relation, fallback: -1)
relation.count
rescue ActiveRecord::StatementInvalid