Extend Graphql query for environment's essentials
What does this MR do and why?
This MR extends GraphQL query for fetching environment information. Specifically, adding the persisted columns in environments
table to the EnvironmentType
.
Related #371952 (closed)
Query example
{
project(fullPath: "dosuken-org/deployment-approval-test") {
environments {
nodes {
createdAt
updatedAt
autoStopAt
autoDeleteAt
slug
tier
environmentType
}
}
}
}
Response
{
"data": {
"project": {
"environments": {
"nodes": [
{
"createdAt": "2022-09-06T04:31:52Z",
"updatedAt": "2022-09-06T04:31:52Z",
"autoStopAt": null,
"autoDeleteAt": null,
"slug": "production",
"tier": "PRODUCTION",
"environmentType": null
}
]
}
}
}
}
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Shinya Maeda