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
c009da7e
Commit
c009da7e
authored
Apr 16, 2021
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 2 suggestion(s) to 1 file(s)
parent
4b40a5da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/graphql/ee/resolvers/issues_resolver.rb
ee/app/graphql/ee/resolvers/issues_resolver.rb
+2
-2
No files found.
ee/app/graphql/ee/resolvers/issues_resolver.rb
View file @
c009da7e
...
@@ -31,7 +31,7 @@ module EE
...
@@ -31,7 +31,7 @@ module EE
end
end
def
ready?
(
**
args
)
def
ready?
(
**
args
)
if
iteration_params_not_mut
aully_exclusive?
(
args
)
||
iteration_params_not_mutau
lly_exclusive?
(
args
.
fetch
(
:not
,
{}))
if
iteration_params_not_mut
ually_exclusive?
(
args
)
||
iteration_params_not_mutua
lly_exclusive?
(
args
.
fetch
(
:not
,
{}))
arg_str
=
mutually_exclusive_iteration_args
.
map
{
|
x
|
x
.
to_s
.
camelize
(
:lower
)
}.
join
(
', '
)
arg_str
=
mutually_exclusive_iteration_args
.
map
{
|
x
|
x
.
to_s
.
camelize
(
:lower
)
}.
join
(
', '
)
raise
::
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
"only one of [
#{
arg_str
}
] arguments is allowed at the same time."
raise
::
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
"only one of [
#{
arg_str
}
] arguments is allowed at the same time."
end
end
...
@@ -56,7 +56,7 @@ module EE
...
@@ -56,7 +56,7 @@ module EE
args
[
:not
][
:iteration_id
]
=
args
[
:not
].
delete
(
:iteration_wildcard_id
)
if
args
.
dig
(
:not
,
:iteration_wildcard_id
).
present?
args
[
:not
][
:iteration_id
]
=
args
[
:not
].
delete
(
:iteration_wildcard_id
)
if
args
.
dig
(
:not
,
:iteration_wildcard_id
).
present?
end
end
def
iteration_params_not_mut
au
lly_exclusive?
(
args
)
def
iteration_params_not_mut
ua
lly_exclusive?
(
args
)
args
.
slice
(
*
mutually_exclusive_iteration_args
).
compact
.
size
>
1
args
.
slice
(
*
mutually_exclusive_iteration_args
).
compact
.
size
>
1
end
end
...
...
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