diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-02 16:33:43 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-03 11:34:48 +0100 |
commit | 1e662293e8fc2f2eba9657dd27449e966736a14a (patch) | |
tree | 564290907477e5fee4ebabf2ad75fcc44086c938 /lib/api/commits.rb | |
parent | 9b2e17ac71ee446da0f34dada41401803af816c7 (diff) | |
download | gitlab-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/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 2 |
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 |