BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
38efe1bf
Commit
38efe1bf
authored
Mar 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of second N+1 query problem
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
8e388fca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
merge_request_reference_filter.rb
lib/banzai/filter/merge_request_reference_filter.rb
+4
-0
No files found.
lib/banzai/filter/merge_request_reference_filter.rb
View file @
38efe1bf
...
@@ -21,6 +21,10 @@ module Banzai
...
@@ -21,6 +21,10 @@ module Banzai
only_path:
context
[
:only_path
])
only_path:
context
[
:only_path
])
end
end
def
project_from_ref
(
ref
)
projects_per_reference
[
ref
||
current_project_path
]
end
# Returns a Hash containing the merge_requests per Project instance.
# Returns a Hash containing the merge_requests per Project instance.
def
merge_requests_per_project
def
merge_requests_per_project
@merge_requests_per_project
||=
begin
@merge_requests_per_project
||=
begin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment