Select Git revision
Forked from
GitLab.org / GitLab FOSS
8836 commits behind the upstream repository.
-
Adam Niedzielski authored
Milestoneish#issues_visible_to_user caches only the ActiveRecord relation, not the actual result. Introduce Milestoneish#total_issues_count that relies on the cached method Milestoneish#count_issues_by_state to reduce the number of queries.
Adam Niedzielski authoredMilestoneish#issues_visible_to_user caches only the ActiveRecord relation, not the actual result. Introduce Milestoneish#total_issues_count that relies on the cached method Milestoneish#count_issues_by_state to reduce the number of queries.
milestoneish.rb 1.85 KiB