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
6edc6944
Commit
6edc6944
authored
Mar 29, 2021
by
Kassio Borges
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GraphQL: expose milestone iid
parent
3bd11feb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
app/graphql/types/milestone_type.rb
app/graphql/types/milestone_type.rb
+3
-0
changelogs/unreleased/kassio-graphql-expose-milestone-iid.yml
...gelogs/unreleased/kassio-graphql-expose-milestone-iid.yml
+5
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/milestone_type_spec.rb
spec/graphql/types/milestone_type_spec.rb
+1
-1
No files found.
app/graphql/types/milestone_type.rb
View file @
6edc6944
...
...
@@ -14,6 +14,9 @@ module Types
field
:id
,
GraphQL
::
ID_TYPE
,
null:
false
,
description:
'ID of the milestone.'
field
:iid
,
GraphQL
::
ID_TYPE
,
null:
false
,
description:
"Internal ID of the milestone."
field
:title
,
GraphQL
::
STRING_TYPE
,
null:
false
,
description:
'Title of the milestone.'
...
...
changelogs/unreleased/kassio-graphql-expose-milestone-iid.yml
0 → 100644
View file @
6edc6944
---
title
:
'
GraphQL:
expose
milestone
iid'
merge_request
:
57732
author
:
type
:
changed
doc/api/graphql/reference/index.md
View file @
6edc6944
...
...
@@ -4167,6 +4167,7 @@ Represents a milestone.
|
`dueDate`
|
[
`Time`
](
#time
)
| Timestamp of the milestone due date. |
|
`groupMilestone`
|
[
`Boolean!`
](
#boolean
)
| Indicates if milestone is at group level. |
|
`id`
|
[
`ID!`
](
#id
)
| ID of the milestone. |
|
`iid`
|
[
`ID!`
](
#id
)
| Internal ID of the milestone. |
|
`projectMilestone`
|
[
`Boolean!`
](
#boolean
)
| Indicates if milestone is at project level. |
|
`report`
|
[
`TimeboxReport`
](
#timeboxreport
)
| Historically accurate report about the timebox. |
|
`startDate`
|
[
`Time`
](
#time
)
| Timestamp of the milestone start date. |
...
...
spec/graphql/types/milestone_type_spec.rb
View file @
6edc6944
...
...
@@ -9,7 +9,7 @@ RSpec.describe GitlabSchema.types['Milestone'] do
it
'has the expected fields'
do
expected_fields
=
%w[
id title description state web_path
id
iid
title description state web_path
due_date start_date created_at updated_at
project_milestone group_milestone subgroup_milestone
stats
...
...
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