summaryrefslogtreecommitdiff
path: root/app/models/global_milestone.rb
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-09-20 20:59:17 +0200
committerAhmad Sherif <me@ahmadsherif.com>2016-09-23 13:19:16 +0200
commitac3470280dec5c9af43d9fa0da2ca47295c28d9a (patch)
tree635a3b847291a668e183374c8354340b5a67add0 /app/models/global_milestone.rb
parent0560b7a2ab87382cbbf60e62c76085eb686da284 (diff)
downloadgitlab-ce-ac3470280dec5c9af43d9fa0da2ca47295c28d9a.tar.gz
Eager-load assignee and labels associations for GlobalMilestore issuables
Diffstat (limited to 'app/models/global_milestone.rb')
-rw-r--r--app/models/global_milestone.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/global_milestone.rb b/app/models/global_milestone.rb
index da7c265a371..81b7343d7ad 100644
--- a/app/models/global_milestone.rb
+++ b/app/models/global_milestone.rb
@@ -53,11 +53,11 @@ class GlobalMilestone
end
def issues
- @issues ||= Issue.of_milestones(milestones.map(&:id)).includes(:project)
+ @issues ||= Issue.of_milestones(milestones.map(&:id)).includes(:project, :assignee, :labels)
end
def merge_requests
- @merge_requests ||= MergeRequest.of_milestones(milestones.map(&:id)).includes(:target_project)
+ @merge_requests ||= MergeRequest.of_milestones(milestones.map(&:id)).includes(:target_project, :assignee, :labels)
end
def participants