Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/banzai/filter/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