Commit 5ea050cc authored by lauraMon's avatar lauraMon

Adds scheduled and scheduledAt to CiJob

* And docs and schema
* Adds changelog
parent 803d87fe
......@@ -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
---
title: 'GraphQL: Adds scheduledAt to CiJob'
merge_request: 44054
author:
type: added
......@@ -2121,6 +2121,11 @@ type CiJob {
"""
last: Int
): CiJobConnection
"""
Schedule for the build
"""
scheduledAt: Time
}
"""
......
......@@ -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,
......@@ -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
......
......@@ -10,6 +10,7 @@ RSpec.describe Types::Ci::JobType do
name
needs
detailedStatus
scheduledAt
]
expect(described_class).to have_graphql_fields(*expected_fields)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment