summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-10-02 16:33:43 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-10-03 11:34:48 +0100
commit1e662293e8fc2f2eba9657dd27449e966736a14a (patch)
tree564290907477e5fee4ebabf2ad75fcc44086c938 /lib/api
parent9b2e17ac71ee446da0f34dada41401803af816c7 (diff)
downloadgitlab-ce-1e662293e8fc2f2eba9657dd27449e966736a14a.tar.gz
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/api')
-rw-r--r--lib/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index e16dd29d138..ec44936d114 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -109,7 +109,7 @@ module API
if result[:status] == :success
commit_detail = user_project.repository.commit(result[:result])
- UsageCounters.first_or_create.increment_counters(:web_ide_commits) if find_user_from_warden
+ Gitlab::WebIdeCommitsCounter.increment if find_user_from_warden
present commit_detail, with: Entities::CommitDetail
else