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
c008db06
Commit
c008db06
authored
Sep 23, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert change for N+1 specs
parent
ba762b0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ee/spec/requests/api/todos_spec.rb
ee/spec/requests/api/todos_spec.rb
+2
-2
spec/requests/api/graphql/current_user/groups_query_spec.rb
spec/requests/api/graphql/current_user/groups_query_spec.rb
+1
-2
No files found.
ee/spec/requests/api/todos_spec.rb
View file @
c008db06
...
...
@@ -47,8 +47,8 @@ RSpec.describe API::Todos do
create_todo_for_new_epic
# Additional query due to authorization check on new group
and checking ip restriction on group
expect
{
get
api
(
'/todos'
,
personal_access_token:
pat
)
}.
not_to
exceed_query_limit
(
control
).
with_threshold
(
2
)
# Additional query due to authorization check on new group
expect
{
get
api
(
'/todos'
,
personal_access_token:
pat
)
}.
not_to
exceed_query_limit
(
control
).
with_threshold
(
1
)
end
it
'includes the Epic Todo in the response'
do
...
...
spec/requests/api/graphql/current_user/groups_query_spec.rb
View file @
c008db06
...
...
@@ -45,8 +45,7 @@ RSpec.describe 'Query current user groups' do
new_group
=
create
(
:group
,
:private
)
new_group
.
add_maintainer
(
current_user
)
# Adds an extra query for checking ip restrictions on group
expect
{
post_graphql
(
query
,
current_user:
current_user
)
}.
not_to
exceed_query_limit
(
control
).
with_threshold
(
1
)
expect
{
post_graphql
(
query
,
current_user:
current_user
)
}.
not_to
exceed_query_limit
(
control
)
end
it
'returns all groups where the user is a direct member'
do
...
...
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