Skip to content
Snippets Groups Projects
Commit 1712526b authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Eager-load assignee and labels associations for GlobalMilestore issuables

Former-commit-id: ac347028
parent 7be028a4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment