Skip to content

Commit 53fbd4f

Browse files
authored
added latest_version, current_version, ramping_version summaries in ListDeployment (#594)
_**READ BEFORE MERGING:** All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted._ <!-- Describe what has changed in this PR --> **What changed?** - WISOTT <!-- Tell your future self why have you made these changes --> **Why?** - making more information available in one API call rather than via multiple API calls. <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR** - temporalio/temporal#7802
1 parent 50cbefb commit 53fbd4f

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

openapi/openapiv2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6812,6 +6812,18 @@
68126812
},
68136813
"routingConfig": {
68146814
"$ref": "#/definitions/v1RoutingConfig"
6815+
},
6816+
"latestVersionSummary": {
6817+
"$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary",
6818+
"description": "Summary of the version that was added most recently in the Worker Deployment."
6819+
},
6820+
"currentVersionSummary": {
6821+
"$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary",
6822+
"description": "Summary of the current version of the Worker Deployment."
6823+
},
6824+
"rampingVersionSummary": {
6825+
"$ref": "#/definitions/WorkerDeploymentInfoWorkerDeploymentVersionSummary",
6826+
"description": "Summary of the ramping version of the Worker Deployment."
68156827
}
68166828
},
68176829
"title": "A subset of WorkerDeploymentInfo"

openapi/openapiv3.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8251,6 +8251,18 @@ components:
82518251
format: date-time
82528252
routingConfig:
82538253
$ref: '#/components/schemas/RoutingConfig'
8254+
latestVersionSummary:
8255+
allOf:
8256+
- $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary'
8257+
description: Summary of the version that was added most recently in the Worker Deployment.
8258+
currentVersionSummary:
8259+
allOf:
8260+
- $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary'
8261+
description: Summary of the current version of the Worker Deployment.
8262+
rampingVersionSummary:
8263+
allOf:
8264+
- $ref: '#/components/schemas/WorkerDeploymentInfo_WorkerDeploymentVersionSummary'
8265+
description: Summary of the ramping version of the Worker Deployment.
82548266
description: A subset of WorkerDeploymentInfo
82558267
ListWorkflowExecutionsResponse:
82568268
type: object

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,6 +2146,12 @@ message ListWorkerDeploymentsResponse {
21462146
string name = 1;
21472147
google.protobuf.Timestamp create_time = 2;
21482148
temporal.api.deployment.v1.RoutingConfig routing_config = 3;
2149+
// Summary of the version that was added most recently in the Worker Deployment.
2150+
temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary latest_version_summary = 4;
2151+
// Summary of the current version of the Worker Deployment.
2152+
temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary current_version_summary = 5;
2153+
// Summary of the ramping version of the Worker Deployment.
2154+
temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary ramping_version_summary = 6;
21492155
}
21502156
}
21512157

0 commit comments

Comments
 (0)