Skip to content
Snippets Groups Projects
Commit 95738d4b authored by Andreas Brandl's avatar Andreas Brandl
Browse files

Always eagerly load an issue's author.

Rather radical but avoids n+1 queries in the rather common case we want
to include information about the author.
parent 4f3d7532
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,7 +21,7 @@ class IssuesFinder < IssuableFinder
CONFIDENTIAL_ACCESS_LEVEL = Gitlab::Access::REPORTER
 
def klass
Issue
Issue.includes(:author)
end
 
def with_confidentiality_access_check
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