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

batch_open_issues_count_service.rb « projects « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5087684863b6a1202b56d123515723968d8ad777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
        count_service.query(project_ids).group(:project_id).count
      end
    end

    def count_service
      ::Projects::OpenIssuesCountService
    end
  end
end