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
5ea050cc
Commit
5ea050cc
authored
Oct 01, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds scheduled and scheduledAt to CiJob
* And docs and schema * Adds changelog
parent
803d87fe
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
0 deletions
+28
-0
app/graphql/types/ci/job_type.rb
app/graphql/types/ci/job_type.rb
+2
-0
changelogs/unreleased/lm-add-scheduled-jobs.yml
changelogs/unreleased/lm-add-scheduled-jobs.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
+14
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/ci/job_type_spec.rb
spec/graphql/types/ci/job_type_spec.rb
+1
-0
No files found.
app/graphql/types/ci/job_type.rb
View file @
5ea050cc
...
...
@@ -13,6 +13,8 @@ module Types
field
:detailed_status
,
Types
::
Ci
::
DetailedStatusType
,
null:
true
,
description:
'Detailed status of the job'
,
resolve:
->
(
obj
,
_args
,
ctx
)
{
obj
.
detailed_status
(
ctx
[
:current_user
])
}
field
:scheduled_at
,
Types
::
TimeType
,
null:
true
,
description:
'Schedule for the build'
end
end
end
changelogs/unreleased/lm-add-scheduled-jobs.yml
0 → 100644
View file @
5ea050cc
---
title
:
'
GraphQL:
Adds
scheduledAt
to
CiJob'
merge_request
:
44054
author
:
type
:
added
doc/api/graphql/reference/gitlab_schema.graphql
View file @
5ea050cc
...
...
@@ -2121,6 +2121,11 @@ type CiJob {
"""
last
:
Int
):
CiJobConnection
"""
Schedule
for
the
build
"""
scheduledAt
:
Time
}
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
5ea050cc
...
...
@@ -5667,6 +5667,20 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "scheduledAt",
"description": "Schedule for the build",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Time",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
doc/api/graphql/reference/index.md
View file @
5ea050cc
...
...
@@ -334,6 +334,7 @@ Represents the total number of issues and their weights for a particular day.
| ----- | ---- | ----------- |
|
`detailedStatus`
| DetailedStatus | Detailed status of the job |
|
`name`
| String | Name of the job |
|
`scheduledAt`
| Time | Schedule for the build |
### CiStage
...
...
spec/graphql/types/ci/job_type_spec.rb
View file @
5ea050cc
...
...
@@ -10,6 +10,7 @@ RSpec.describe Types::Ci::JobType do
name
needs
detailedStatus
scheduledAt
]
expect
(
described_class
).
to
have_graphql_fields
(
*
expected_fields
)
...
...
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