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
class DetailedStatusType < BaseObject
graphql_name 'DetailedStatus'
field :group, GraphQL::STRING_TYPE, null: false,
field :group, GraphQL::STRING_TYPE, null: true,
description: 'Group of the status'
field :icon, GraphQL::STRING_TYPE, null: false,
field :icon, GraphQL::STRING_TYPE, null: true,
description: 'Icon of the status'
field :favicon, GraphQL::STRING_TYPE, null: false,
field :favicon, GraphQL::STRING_TYPE, null: true,
description: 'Favicon of the status'
field :details_path, GraphQL::STRING_TYPE, null: true,
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',
method: :has_details?
field :label, GraphQL::STRING_TYPE, null: false,
field :label, GraphQL::STRING_TYPE, null: true,
description: 'Label of the status'
field :text, GraphQL::STRING_TYPE, null: false,
field :text, GraphQL::STRING_TYPE, null: true,
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',
method: :status_tooltip
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 {
"""
Favicon of the status
"""
favicon: String!
favicon: String
"""
Group of the status
"""
group: String!
group: String
"""
Indicates if the status has further details
"""
hasDetails: Boolean!
hasDetails: Boolean
"""
Icon of the status
"""
icon: String!
icon: String
"""
Label of the status
"""
label: String!
label: String
"""
Text of the status
"""
text: String!
text: String
"""
Tooltip associated with the status
"""
tooltip: String!
tooltip: String
}
input DiffImagePositionInput {
......
......@@ -14540,13 +14540,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14558,13 +14554,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14576,13 +14568,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14594,13 +14582,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14612,13 +14596,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14630,13 +14610,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -14648,13 +14624,9 @@
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
......@@ -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 |
| `detailsPath` | String | Path of the details for the status |
| `favicon` | String! | Favicon of the status |
| `group` | String! | Group of the status |
| `hasDetails` | Boolean! | Indicates if the status has further details |
| `icon` | String! | Icon of the status |
| `label` | String! | Label of the status |
| `text` | String! | Text of the status |
| `tooltip` | String! | Tooltip associated with the status |
| `favicon` | String | Favicon of the status |
| `group` | String | Group of the status |
| `hasDetails` | Boolean | Indicates if the status has further details |
| `icon` | String | Icon of the status |
| `label` | String | Label of the status |
| `text` | String | Text of the status |
| `tooltip` | String | Tooltip associated with the status |
### 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