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
b2e7c02d
Commit
b2e7c02d
authored
Apr 01, 2021
by
Kassio Borges
Committed by
Mike Jang
Apr 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose Board `createdAt` and `updatedAt` in GraphQL
parent
bf208a35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
app/graphql/types/board_type.rb
app/graphql/types/board_type.rb
+6
-0
changelogs/unreleased/kassio-graphql-expose-board-create-at-updated-at.yml
...ased/kassio-graphql-expose-board-create-at-updated-at.yml
+5
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+2
-0
spec/graphql/types/board_type_spec.rb
spec/graphql/types/board_type_spec.rb
+12
-2
No files found.
app/graphql/types/board_type.rb
View file @
b2e7c02d
...
...
@@ -20,6 +20,12 @@ module Types
field
:hide_closed_list
,
type:
GraphQL
::
BOOLEAN_TYPE
,
null:
true
,
description:
'Whether or not closed list is hidden.'
field
:created_at
,
Types
::
TimeType
,
null:
false
,
description:
'Timestamp of when the board was created.'
field
:updated_at
,
Types
::
TimeType
,
null:
false
,
description:
'Timestamp of when the board was last updated.'
field
:lists
,
Types
::
BoardListType
.
connection_type
,
null:
true
,
...
...
changelogs/unreleased/kassio-graphql-expose-board-create-at-updated-at.yml
0 → 100644
View file @
b2e7c02d
---
title
:
Expose createdAt and updatedAt fields for Board in the GraphQL API
merge_request
:
57645
author
:
type
:
changed
doc/api/graphql/reference/index.md
View file @
b2e7c02d
...
...
@@ -799,6 +799,7 @@ Represents a project or group issue board.
| Field | Type | Description |
| ----- | ---- | ----------- |
|
`assignee`
|
[
`User`
](
#user
)
| The board assignee. |
|
`createdAt`
|
[
`Time!`
](
#time
)
| Timestamp of when the board was created. |
|
`epics`
|
[
`BoardEpicConnection`
](
#boardepicconnection
)
| Epics associated with board issues. |
|
`hideBacklogList`
|
[
`Boolean`
](
#boolean
)
| Whether or not backlog list is hidden. |
|
`hideClosedList`
|
[
`Boolean`
](
#boolean
)
| Whether or not closed list is hidden. |
...
...
@@ -808,6 +809,7 @@ Represents a project or group issue board.
|
`lists`
|
[
`BoardListConnection`
](
#boardlistconnection
)
| Lists of the board. |
|
`milestone`
|
[
`Milestone`
](
#milestone
)
| The board milestone. |
|
`name`
|
[
`String`
](
#string
)
| Name of the board. |
|
`updatedAt`
|
[
`Time!`
](
#time
)
| Timestamp of when the board was last updated. |
|
`webPath`
|
[
`String!`
](
#string
)
| Web path of the board. |
|
`webUrl`
|
[
`String!`
](
#string
)
| Web URL of the board. |
|
`weight`
|
[
`Int`
](
#int
)
| Weight of the board. |
...
...
spec/graphql/types/board_type_spec.rb
View file @
b2e7c02d
...
...
@@ -8,8 +8,18 @@ RSpec.describe GitlabSchema.types['Board'] do
specify
{
expect
(
described_class
).
to
require_graphql_authorizations
(
:read_issue_board
)
}
it
'has specific fields'
do
expected_fields
=
%w[id name web_url web_path]
expected_fields
=
%w[
id
name
hideBacklogList
hideClosedList
createdAt
updatedAt
lists
webPath
webUrl
]
expect
(
described_class
).
to
include_graphql_fields
(
*
expected_fields
)
expect
(
described_class
).
to
have_graphql_fields
(
*
expected_fields
).
at_least
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