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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
de16b6d3
Commit
de16b6d3
authored
Nov 08, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix prepare_commits_for_rendering N+1 spec
parent
702b46ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/controllers/concerns/renders_commits_spec.rb
spec/controllers/concerns/renders_commits_spec.rb
+6
-0
No files found.
spec/controllers/concerns/renders_commits_spec.rb
View file @
de16b6d3
...
...
@@ -64,6 +64,12 @@ RSpec.describe RendersCommits do
subject
.
prepare_commits_for_rendering
(
merge_request
.
commits
.
take
(
1
))
end
# Populate Banzai::Filter::References::ReferenceCache
subject
.
prepare_commits_for_rendering
(
merge_request
.
commits
)
# Reset lazy_latest_pipeline cache to simulate a new request
BatchLoader
::
Executor
.
clear_current
expect
do
subject
.
prepare_commits_for_rendering
(
merge_request
.
commits
)
merge_request
.
commits
.
each
(
&
:latest_pipeline
)
...
...
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