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
3645688b
Commit
3645688b
authored
Jul 28, 2021
by
Eulyeon Ko
Committed by
Jan Provaznik
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add N+1 check for merge_requests_count
parent
f2bb88bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/requests/api/graphql/project/issues_spec.rb
spec/requests/api/graphql/project/issues_spec.rb
+11
-0
No files found.
spec/requests/api/graphql/project/issues_spec.rb
View file @
3645688b
...
...
@@ -476,6 +476,17 @@ RSpec.describe 'getting an issue list for a project' do
include_examples
'N+1 query check'
end
context
'when requesting `merge_requests_count`'
do
let
(
:requested_fields
)
{
[
:merge_requests_count
]
}
before
do
create_list
(
:merge_requests_closing_issues
,
2
,
issue:
issue_a
)
create_list
(
:merge_requests_closing_issues
,
3
,
issue:
issue_b
)
end
include_examples
'N+1 query check'
end
context
'when requesting `timelogs`'
do
let
(
:requested_fields
)
{
'timelogs { nodes { timeSpent } }'
}
...
...
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