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
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-10-02 18:33:43 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-10-03 13:34:48 +0300
commit1e662293e8fc2f2eba9657dd27449e966736a14a (patch)
tree564290907477e5fee4ebabf2ad75fcc44086c938 /lib/gitlab/usage_data.rb
parent9b2e17ac71ee446da0f34dada41401803af816c7 (diff)
Implements Web IDE commits counter in Redis
This makes a temporary implementation of the Web IDE commits counter using Redis while https://gitlab.com/gitlab-org/gitlab-ce/issues/52096 is being discussed further for a more generic approach to counters
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r--lib/gitlab/usage_data.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index afab36e89dd..5097c3253c9 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -108,7 +108,9 @@ module Gitlab
end
def usage_counters
- UsageCounters.first_or_create.totals
+ {
+ web_ide_commits: Gitlab::WebIdeCommitsCounter.total_count
+ }
end
def components_usage_data