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
40d56412
Commit
40d56412
authored
Aug 11, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update wording, memoize states
Update docs
parent
14af1a8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
20 deletions
+24
-20
app/graphql/resolvers/concerns/issue_resolver_fields.rb
app/graphql/resolvers/concerns/issue_resolver_fields.rb
+3
-3
app/graphql/types/issue_status_counts_type.rb
app/graphql/types/issue_status_counts_type.rb
+5
-1
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+8
-8
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+8
-8
No files found.
app/graphql/resolvers/concerns/issue_resolver_fields.rb
View file @
40d56412
...
@@ -15,10 +15,10 @@ module IssueResolverFields
...
@@ -15,10 +15,10 @@ module IssueResolverFields
description:
'Labels applied to this issue'
description:
'Labels applied to this issue'
argument
:milestone_title
,
GraphQL
::
STRING_TYPE
.
to_list_type
,
argument
:milestone_title
,
GraphQL
::
STRING_TYPE
.
to_list_type
,
required:
false
,
required:
false
,
description:
'Milestone
s
applied to this issue'
description:
'Milestone applied to this issue'
argument
:assignee_username
,
GraphQL
::
STRING_TYPE
,
argument
:assignee_username
,
GraphQL
::
STRING_TYPE
,
required:
false
,
required:
false
,
description:
'Username of a user assigned to the issue
s
'
description:
'Username of a user assigned to the issue'
argument
:assignee_id
,
GraphQL
::
STRING_TYPE
,
argument
:assignee_id
,
GraphQL
::
STRING_TYPE
,
required:
false
,
required:
false
,
description:
'ID of a user assigned to the issues, "none" and "any" values supported'
description:
'ID of a user assigned to the issues, "none" and "any" values supported'
...
@@ -56,7 +56,7 @@ module IssueResolverFields
...
@@ -56,7 +56,7 @@ module IssueResolverFields
parent
=
object
.
respond_to?
(
:sync
)
?
object
.
sync
:
object
parent
=
object
.
respond_to?
(
:sync
)
?
object
.
sync
:
object
return
Issue
.
none
if
parent
.
nil?
return
Issue
.
none
if
parent
.
nil?
# Will need to be
be
made group & namespace aware with
# Will need to be made group & namespace aware with
# https://gitlab.com/gitlab-org/gitlab-foss/issues/54520
# https://gitlab.com/gitlab-org/gitlab-foss/issues/54520
args
[
:iids
]
||=
[
args
.
delete
(
:iid
)].
compact
if
args
[
:iid
]
args
[
:iids
]
||=
[
args
.
delete
(
:iid
)].
compact
if
args
[
:iid
]
args
[
:attempt_project_search_optimizations
]
=
true
if
args
[
:search
].
present?
args
[
:attempt_project_search_optimizations
]
=
true
if
args
[
:search
].
present?
...
...
app/graphql/types/issue_status_counts_type.rb
View file @
40d56412
...
@@ -7,8 +7,12 @@ module Types
...
@@ -7,8 +7,12 @@ module Types
authorize
:read_issue
authorize
:read_issue
def
self
.
available_issue_states
@available_issue_states
||=
Issue
.
available_states
.
keys
.
push
(
'all'
)
end
::
Gitlab
::
IssuablesCountForState
::
STATES
.
each
do
|
state
|
::
Gitlab
::
IssuablesCountForState
::
STATES
.
each
do
|
state
|
next
unless
Issue
.
available_states
.
keys
.
push
(
'all'
).
include?
(
stat
e
)
next
unless
available_issue_states
.
include?
(
state
.
downcas
e
)
field
state
,
field
state
,
GraphQL
::
INT_TYPE
,
GraphQL
::
INT_TYPE
,
...
...
doc/api/graphql/reference/gitlab_schema.graphql
View file @
40d56412
...
@@ -5606,7 +5606,7 @@ type Group {
...
@@ -5606,7 +5606,7 @@ type Group {
assigneeId
:
String
assigneeId
:
String
"""
"""
Username
of
a
user
assigned
to
the
issue
s
Username
of
a
user
assigned
to
the
issue
"""
"""
assigneeUsername
:
String
assigneeUsername
:
String
...
@@ -5666,7 +5666,7 @@ type Group {
...
@@ -5666,7 +5666,7 @@ type Group {
last
:
Int
last
:
Int
"""
"""
Milestone
s
applied
to
this
issue
Milestone
applied
to
this
issue
"""
"""
milestoneTitle
:
[
String
]
milestoneTitle
:
[
String
]
...
@@ -10213,7 +10213,7 @@ type Project {
...
@@ -10213,7 +10213,7 @@ type Project {
assigneeId
:
String
assigneeId
:
String
"""
"""
Username
of
a
user
assigned
to
the
issue
s
Username
of
a
user
assigned
to
the
issue
"""
"""
assigneeUsername
:
String
assigneeUsername
:
String
...
@@ -10258,7 +10258,7 @@ type Project {
...
@@ -10258,7 +10258,7 @@ type Project {
labelName
:
[
String
]
labelName
:
[
String
]
"""
"""
Milestone
s
applied
to
this
issue
Milestone
applied
to
this
issue
"""
"""
milestoneTitle
:
[
String
]
milestoneTitle
:
[
String
]
...
@@ -10303,7 +10303,7 @@ type Project {
...
@@ -10303,7 +10303,7 @@ type Project {
assigneeId
:
String
assigneeId
:
String
"""
"""
Username
of
a
user
assigned
to
the
issue
s
Username
of
a
user
assigned
to
the
issue
"""
"""
assigneeUsername
:
String
assigneeUsername
:
String
...
@@ -10343,7 +10343,7 @@ type Project {
...
@@ -10343,7 +10343,7 @@ type Project {
labelName
:
[
String
]
labelName
:
[
String
]
"""
"""
Milestone
s
applied
to
this
issue
Milestone
applied
to
this
issue
"""
"""
milestoneTitle
:
[
String
]
milestoneTitle
:
[
String
]
...
@@ -10383,7 +10383,7 @@ type Project {
...
@@ -10383,7 +10383,7 @@ type Project {
assigneeId
:
String
assigneeId
:
String
"""
"""
Username
of
a
user
assigned
to
the
issue
s
Username
of
a
user
assigned
to
the
issue
"""
"""
assigneeUsername
:
String
assigneeUsername
:
String
...
@@ -10443,7 +10443,7 @@ type Project {
...
@@ -10443,7 +10443,7 @@ type Project {
last
:
Int
last
:
Int
"""
"""
Milestone
s
applied
to
this
issue
Milestone
applied
to
this
issue
"""
"""
milestoneTitle
:
[
String
]
milestoneTitle
:
[
String
]
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
40d56412
...
@@ -15615,7 +15615,7 @@
...
@@ -15615,7 +15615,7 @@
},
},
{
{
"name": "milestoneTitle",
"name": "milestoneTitle",
"description": "Milestone
s
applied to this issue",
"description": "Milestone applied to this issue",
"type": {
"type": {
"kind": "LIST",
"kind": "LIST",
"name": null,
"name": null,
...
@@ -15629,7 +15629,7 @@
...
@@ -15629,7 +15629,7 @@
},
},
{
{
"name": "assigneeUsername",
"name": "assigneeUsername",
"description": "Username of a user assigned to the issue
s
",
"description": "Username of a user assigned to the issue",
"type": {
"type": {
"kind": "SCALAR",
"kind": "SCALAR",
"name": "String",
"name": "String",
...
@@ -30531,7 +30531,7 @@
...
@@ -30531,7 +30531,7 @@
},
},
{
{
"name": "milestoneTitle",
"name": "milestoneTitle",
"description": "Milestone
s
applied to this issue",
"description": "Milestone applied to this issue",
"type": {
"type": {
"kind": "LIST",
"kind": "LIST",
"name": null,
"name": null,
...
@@ -30545,7 +30545,7 @@
...
@@ -30545,7 +30545,7 @@
},
},
{
{
"name": "assigneeUsername",
"name": "assigneeUsername",
"description": "Username of a user assigned to the issue
s
",
"description": "Username of a user assigned to the issue",
"type": {
"type": {
"kind": "SCALAR",
"kind": "SCALAR",
"name": "String",
"name": "String",
...
@@ -30742,7 +30742,7 @@
...
@@ -30742,7 +30742,7 @@
},
},
{
{
"name": "milestoneTitle",
"name": "milestoneTitle",
"description": "Milestone
s
applied to this issue",
"description": "Milestone applied to this issue",
"type": {
"type": {
"kind": "LIST",
"kind": "LIST",
"name": null,
"name": null,
...
@@ -30756,7 +30756,7 @@
...
@@ -30756,7 +30756,7 @@
},
},
{
{
"name": "assigneeUsername",
"name": "assigneeUsername",
"description": "Username of a user assigned to the issue
s
",
"description": "Username of a user assigned to the issue",
"type": {
"type": {
"kind": "SCALAR",
"kind": "SCALAR",
"name": "String",
"name": "String",
...
@@ -30919,7 +30919,7 @@
...
@@ -30919,7 +30919,7 @@
},
},
{
{
"name": "milestoneTitle",
"name": "milestoneTitle",
"description": "Milestone
s
applied to this issue",
"description": "Milestone applied to this issue",
"type": {
"type": {
"kind": "LIST",
"kind": "LIST",
"name": null,
"name": null,
...
@@ -30933,7 +30933,7 @@
...
@@ -30933,7 +30933,7 @@
},
},
{
{
"name": "assigneeUsername",
"name": "assigneeUsername",
"description": "Username of a user assigned to the issue
s
",
"description": "Username of a user assigned to the issue",
"type": {
"type": {
"kind": "SCALAR",
"kind": "SCALAR",
"name": "String",
"name": "String",
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