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:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-12-01 13:34:24 +0300
committerFrancisco Lopez <fjlopez@gitlab.com>2017-12-01 20:32:13 +0300
commitc5a89b35f0d43b54df8767522428a006770673ac (patch)
tree12cb81f073420b002ea875ea99658f8fe0556773 /app/services/projects/batch_open_issues_count_service.rb
parent3dc331c6131040b8c2a0e682c34e5a19c803e000 (diff)
Using map to retrieve the element ids because of some issues with mysql
Diffstat (limited to 'app/services/projects/batch_open_issues_count_service.rb')
-rw-r--r--app/services/projects/batch_open_issues_count_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/projects/batch_open_issues_count_service.rb b/app/services/projects/batch_open_issues_count_service.rb
index 5087684863b..3b0ade2419b 100644
--- a/app/services/projects/batch_open_issues_count_service.rb
+++ b/app/services/projects/batch_open_issues_count_service.rb
@@ -1,5 +1,7 @@
+# Service class for getting and caching the number of issues of several projects
+# Warning: do not user this service with a really large set of projects
+# because the service use maps to retrieve the project ids
module Projects
- # Service class for getting and caching the number of forks of several projects
class BatchOpenIssuesCountService < Projects::BatchCountService
def global_count
@global_count ||= begin