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
f80f6bbc
Commit
f80f6bbc
authored
Feb 14, 2019
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a block and move setup to example directly
parent
50491d32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/graphql/resolvers/merge_requests_resolver.rb
app/graphql/resolvers/merge_requests_resolver.rb
+1
-1
spec/requests/api/graphql/project/issues_spec.rb
spec/requests/api/graphql/project/issues_spec.rb
+1
-3
No files found.
app/graphql/resolvers/merge_requests_resolver.rb
View file @
f80f6bbc
...
@@ -19,7 +19,7 @@ module Resolvers
...
@@ -19,7 +19,7 @@ module Resolvers
args
[
:iids
]
||=
[
args
[
:iid
]].
compact
args
[
:iids
]
||=
[
args
[
:iid
]].
compact
args
[
:iids
].
map
(
&
method
(
:batch_load
))
args
[
:iids
].
map
{
|
iid
|
batch_load
(
iid
)
}
.
select
(
&
:itself
)
# .compact doesn't work on BatchLoader
.
select
(
&
:itself
)
# .compact doesn't work on BatchLoader
end
end
...
...
spec/requests/api/graphql/project/issues_spec.rb
View file @
f80f6bbc
...
@@ -75,11 +75,9 @@ describe 'getting an issue list for a project' do
...
@@ -75,11 +75,9 @@ describe 'getting an issue list for a project' do
end
end
context
'when the user can see confidential issues'
do
context
'when the user can see confidential issues'
do
before
do
it
'returns issues with confidential issues'
do
project
.
add_developer
(
current_user
)
project
.
add_developer
(
current_user
)
end
it
'returns issues with confidential issues'
do
post_graphql
(
query
,
current_user:
current_user
)
post_graphql
(
query
,
current_user:
current_user
)
expect
(
issues_data
.
size
).
to
eq
(
3
)
expect
(
issues_data
.
size
).
to
eq
(
3
)
...
...
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