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
06f330de
Commit
06f330de
authored
Jul 09, 2020
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose issue ids via GraphQL
- update docs
parent
87d6abca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
1 deletion
+32
-1
app/graphql/types/issue_type.rb
app/graphql/types/issue_type.rb
+2
-0
changelogs/unreleased/218040-cablett-graphql-issue-id.yml
changelogs/unreleased/218040-cablett-graphql-issue-id.yml
+5
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+5
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+18
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/issue_type_spec.rb
spec/graphql/types/issue_type_spec.rb
+1
-1
No files found.
app/graphql/types/issue_type.rb
View file @
06f330de
...
...
@@ -12,6 +12,8 @@ module Types
present_using
IssuePresenter
field
:id
,
GraphQL
::
ID_TYPE
,
null:
false
,
description:
"ID of the issue"
field
:iid
,
GraphQL
::
ID_TYPE
,
null:
false
,
description:
"Internal ID of the issue"
field
:title
,
GraphQL
::
STRING_TYPE
,
null:
false
,
...
...
changelogs/unreleased/218040-cablett-graphql-issue-id.yml
0 → 100644
View file @
06f330de
---
title
:
Expose issue ID via GraphQL
merge_request
:
36412
author
:
type
:
changed
doc/api/graphql/reference/gitlab_schema.graphql
View file @
06f330de
...
...
@@ -5747,6 +5747,11 @@ type Issue implements Noteable {
"""
healthStatus
:
HealthStatus
"""
ID
of
the
issue
"""
id
:
ID
!
"""
Internal
ID
of
the
issue
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
06f330de
...
...
@@ -15821,6 +15821,24 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "ID of the issue",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "iid",
"description": "Internal ID of the issue",
doc/api/graphql/reference/index.md
View file @
06f330de
...
...
@@ -860,6 +860,7 @@ Represents a Group Member
|
`dueDate`
| Time | Due date of the issue |
|
`epic`
| Epic | Epic to which this issue belongs |
|
`healthStatus`
| HealthStatus | Current health status. Returns null if
`save_issuable_health_status`
feature flag is disabled. |
|
`id`
| ID! | ID of the issue |
|
`iid`
| ID! | Internal ID of the issue |
|
`iteration`
| Iteration | Iteration of the issue |
|
`milestone`
| Milestone | Milestone of the issue |
...
...
spec/graphql/types/issue_type_spec.rb
View file @
06f330de
...
...
@@ -12,7 +12,7 @@ RSpec.describe GitlabSchema.types['Issue'] do
specify
{
expect
(
described_class
.
interfaces
).
to
include
(
Types
::
Notes
::
NoteableType
)
}
it
'has specific fields'
do
fields
=
%i[iid title description state reference author assignees participants labels milestone due_date
fields
=
%i[i
d i
id title description state reference author assignees participants labels milestone due_date
confidential discussion_locked upvotes downvotes user_notes_count web_path web_url relative_position
subscribed time_estimate total_time_spent closed_at created_at updated_at task_completion_status
designs design_collection]
...
...
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