Commit 505a8783 authored by Laura Montemayor's avatar Laura Montemayor Committed by Rémy Coutable

Updates fields in detailedStatus to be nullable

* Updates schema and docs
parent 803d87fe
...@@ -6,22 +6,22 @@ module Types ...@@ -6,22 +6,22 @@ module Types
class DetailedStatusType < BaseObject class DetailedStatusType < BaseObject
graphql_name 'DetailedStatus' graphql_name 'DetailedStatus'
field :group, GraphQL::STRING_TYPE, null: false, field :group, GraphQL::STRING_TYPE, null: true,
description: 'Group of the status' description: 'Group of the status'
field :icon, GraphQL::STRING_TYPE, null: false, field :icon, GraphQL::STRING_TYPE, null: true,
description: 'Icon of the status' description: 'Icon of the status'
field :favicon, GraphQL::STRING_TYPE, null: false, field :favicon, GraphQL::STRING_TYPE, null: true,
description: 'Favicon of the status' description: 'Favicon of the status'
field :details_path, GraphQL::STRING_TYPE, null: true, field :details_path, GraphQL::STRING_TYPE, null: true,
description: 'Path of the details for the status' description: 'Path of the details for the status'
field :has_details, GraphQL::BOOLEAN_TYPE, null: false, field :has_details, GraphQL::BOOLEAN_TYPE, null: true,
description: 'Indicates if the status has further details', description: 'Indicates if the status has further details',
method: :has_details? method: :has_details?
field :label, GraphQL::STRING_TYPE, null: false, field :label, GraphQL::STRING_TYPE, null: true,
description: 'Label of the status' description: 'Label of the status'
field :text, GraphQL::STRING_TYPE, null: false, field :text, GraphQL::STRING_TYPE, null: true,
description: 'Text of the status' description: 'Text of the status'
field :tooltip, GraphQL::STRING_TYPE, null: false, field :tooltip, GraphQL::STRING_TYPE, null: true,
description: 'Tooltip associated with the status', description: 'Tooltip associated with the status',
method: :status_tooltip method: :status_tooltip
field :action, Types::Ci::StatusActionType, null: true, field :action, Types::Ci::StatusActionType, null: true,
......
---
title: 'GraphQL: Changes fields in detailedStatus to be nullable'
merge_request: 45072
author:
type: changed
...@@ -5317,37 +5317,37 @@ type DetailedStatus { ...@@ -5317,37 +5317,37 @@ type DetailedStatus {
""" """
Favicon of the status Favicon of the status
""" """
favicon: String! favicon: String
""" """
Group of the status Group of the status
""" """
group: String! group: String
""" """
Indicates if the status has further details Indicates if the status has further details
""" """
hasDetails: Boolean! hasDetails: Boolean
""" """
Icon of the status Icon of the status
""" """
icon: String! icon: String
""" """
Label of the status Label of the status
""" """
label: String! label: String
""" """
Text of the status Text of the status
""" """
text: String! text: String
""" """
Tooltip associated with the status Tooltip associated with the status
""" """
tooltip: String! tooltip: String
} }
input DiffImagePositionInput { input DiffImagePositionInput {
......
...@@ -14540,13 +14540,9 @@ ...@@ -14540,13 +14540,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14558,13 +14554,9 @@ ...@@ -14558,13 +14554,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14576,13 +14568,9 @@ ...@@ -14576,13 +14568,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "Boolean",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14594,13 +14582,9 @@ ...@@ -14594,13 +14582,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14612,13 +14596,9 @@ ...@@ -14612,13 +14596,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14630,13 +14610,9 @@ ...@@ -14630,13 +14610,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -14648,13 +14624,9 @@ ...@@ -14648,13 +14624,9 @@
], ],
"type": { "type": {
"kind": "NON_NULL", "kind": "SCALAR",
"name": null, "name": "String",
"ofType": { "ofType": null
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
...@@ -855,13 +855,13 @@ Autogenerated return type of DestroySnippet. ...@@ -855,13 +855,13 @@ Autogenerated return type of DestroySnippet.
| ----- | ---- | ----------- | | ----- | ---- | ----------- |
| `action` | StatusAction | Action information for the status. This includes method, button title, icon, path, and title | | `action` | StatusAction | Action information for the status. This includes method, button title, icon, path, and title |
| `detailsPath` | String | Path of the details for the status | | `detailsPath` | String | Path of the details for the status |
| `favicon` | String! | Favicon of the status | | `favicon` | String | Favicon of the status |
| `group` | String! | Group of the status | | `group` | String | Group of the status |
| `hasDetails` | Boolean! | Indicates if the status has further details | | `hasDetails` | Boolean | Indicates if the status has further details |
| `icon` | String! | Icon of the status | | `icon` | String | Icon of the status |
| `label` | String! | Label of the status | | `label` | String | Label of the status |
| `text` | String! | Text of the status | | `text` | String | Text of the status |
| `tooltip` | String! | Tooltip associated with the status | | `tooltip` | String | Tooltip associated with the status |
### DiffPosition ### DiffPosition
......
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