Skip to content

Commit 3cd94cb

Browse files
committed
address comments
1 parent 9094778 commit 3cd94cb

File tree

4 files changed

+41
-23
lines changed

4 files changed

+41
-23
lines changed

openapi/openapiv2.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7005,7 +7005,7 @@
70057005
"VersioningOverridePinnedOverride": {
70067006
"type": "object",
70077007
"properties": {
7008-
"type": {
7008+
"behavior": {
70097009
"$ref": "#/definitions/VersioningOverridePinnedOverrideBehavior"
70107010
},
70117011
"version": {
@@ -7595,7 +7595,7 @@
75957595
},
75967596
"unversionedDeploymentName": {
75977597
"type": "string",
7598-
"title": "Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)"
7598+
"title": "The name of the Deployment where you want to set Current Version to unversioned.\nRepresents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)"
75997599
},
76007600
"conflictToken": {
76017601
"type": "string",
@@ -7629,7 +7629,7 @@
76297629
},
76307630
"unversionedDeploymentName": {
76317631
"type": "string",
7632-
"title": "Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)"
7632+
"title": "The name of the Deployment where you want to set Ramping Version to unversioned.\nRepresents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)"
76337633
},
76347634
"percentage": {
76357635
"type": "number",
@@ -8141,7 +8141,7 @@
81418141
},
81428142
"deploymentVersion": {
81438143
"type": "object",
8144-
"description": "A Worker Deployment Version (Version, for short) represents a different\nversion of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)\nVersion records are created in Temporal server automatically when their\nfirst poller arrives to the server.\nExperimental. Worker Deployment Versions are experimental and might significantly change in the future."
8144+
"description": "A Worker Deployment Version (Version, for short) represents a\nversion of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)\nVersion records are created in Temporal server automatically when their\nfirst poller arrives to the server.\nExperimental. Worker Deployment Versions are experimental and might significantly change in the future."
81458145
},
81468146
"upsertEntries": {
81478147
"type": "object",
@@ -11798,10 +11798,14 @@
1179811798
},
1179911799
"lastDeployment": {
1180011800
"$ref": "#/definitions/v1Deployment",
11801-
"description": "The deployment this activity was dispatched to most recently. Present only if the activity\nwas dispatched to a versioned worker.\nDeprecated. Use `last_worker_deployment_version`."
11801+
"description": "The deployment this activity was dispatched to most recently. Present only if the activity\nwas dispatched to a versioned worker.\nDeprecated. Use `last_deployment_version`."
1180211802
},
1180311803
"lastWorkerDeploymentVersion": {
1180411804
"type": "string",
11805+
"description": "The Worker Deployment Version this activity was dispatched to most recently.\nDeprecated. Use `last_deployment_version`."
11806+
},
11807+
"lastDeploymentVersion": {
11808+
"$ref": "#/definitions/v1WorkerDeploymentVersion",
1180511809
"description": "The Worker Deployment Version this activity was dispatched to most recently."
1180611810
},
1180711811
"priority": {
@@ -13340,7 +13344,7 @@
1334013344
},
1334113345
"previousVersion": {
1334213346
"type": "string",
13343-
"description": "Deprecated. Use `previous_current`."
13347+
"description": "Deprecated. Use `replaced_version`."
1334413348
},
1334513349
"deploymentVersion": {
1334613350
"$ref": "#/definitions/v1WorkerDeploymentVersion"
@@ -13360,7 +13364,7 @@
1336013364
},
1336113365
"previousVersion": {
1336213366
"type": "string",
13363-
"description": "Deprecated. Use `previous_ramping`."
13367+
"description": "Deprecated. Use `replaced_version`."
1336413368
},
1336513369
"deploymentVersion": {
1336613370
"$ref": "#/definitions/v1WorkerDeploymentVersion"
@@ -14807,7 +14811,7 @@
1480714811
"description": "Identifies the Worker Deployment this Version is part of.\nMust be unique within the namespace."
1480814812
}
1480914813
},
14810-
"description": "A Worker Deployment Version (Version, for short) represents a different\nversion of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)\nVersion records are created in Temporal server automatically when their\nfirst poller arrives to the server.\nExperimental. Worker Deployment Versions are experimental and might significantly change in the future."
14814+
"description": "A Worker Deployment Version (Version, for short) represents a\nversion of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)\nVersion records are created in Temporal server automatically when their\nfirst poller arrives to the server.\nExperimental. Worker Deployment Versions are experimental and might significantly change in the future."
1481114815
},
1481214816
"v1WorkerDeploymentVersionInfo": {
1481314817
"type": "object",
@@ -15554,7 +15558,7 @@
1555415558
},
1555515559
"deployment": {
1555615560
"$ref": "#/definitions/v1Deployment",
15557-
"description": "The worker deployment that completed the last workflow task of this workflow execution. Must\nbe present if `behavior` is set. Absent value means no workflow task is completed, or the\nlast workflow task was completed by an unversioned worker. Unversioned workers may still send\na deployment value which will be stored here, so the right way to check if an execution is\nversioned if an execution is versioned or not is via the `behavior` field.\nNote that `deployment` is overridden by `versioning_override` if the latter is present.\nDeprecated. Use `version`."
15561+
"description": "The worker deployment that completed the last workflow task of this workflow execution. Must\nbe present if `behavior` is set. Absent value means no workflow task is completed, or the\nlast workflow task was completed by an unversioned worker. Unversioned workers may still send\na deployment value which will be stored here, so the right way to check if an execution is\nversioned if an execution is versioned or not is via the `behavior` field.\nNote that `deployment` is overridden by `versioning_override` if the latter is present.\nDeprecated. Use `deployment_version`."
1555815562
},
1555915563
"version": {
1556015564
"$ref": "#/definitions/v1WorkerDeploymentVersion",

openapi/openapiv3.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8917,9 +8917,15 @@ components:
89178917
description: |-
89188918
The deployment this activity was dispatched to most recently. Present only if the activity
89198919
was dispatched to a versioned worker.
8920-
Deprecated. Use `last_worker_deployment_version`.
8920+
Deprecated. Use `last_deployment_version`.
89218921
lastWorkerDeploymentVersion:
89228922
type: string
8923+
description: |-
8924+
The Worker Deployment Version this activity was dispatched to most recently.
8925+
Deprecated. Use `last_deployment_version`.
8926+
lastDeploymentVersion:
8927+
allOf:
8928+
- $ref: '#/components/schemas/WorkerDeploymentVersion'
89238929
description: The Worker Deployment Version this activity was dispatched to most recently.
89248930
priority:
89258931
allOf:
@@ -10461,7 +10467,9 @@ components:
1046110467
$ref: '#/components/schemas/WorkerDeploymentVersion'
1046210468
unversionedDeploymentName:
1046310469
type: string
10464-
description: Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
10470+
description: |-
10471+
The name of the Deployment where you want to set Current Version to unversioned.
10472+
Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
1046510473
conflictToken:
1046610474
type: string
1046710475
description: |-
@@ -10502,7 +10510,7 @@ components:
1050210510
format: bytes
1050310511
previousVersion:
1050410512
type: string
10505-
description: Deprecated. Use `previous_current`.
10513+
description: Deprecated. Use `replaced_version`.
1050610514
deploymentVersion:
1050710515
$ref: '#/components/schemas/WorkerDeploymentVersion'
1050810516
unversioned:
@@ -10522,7 +10530,9 @@ components:
1052210530
$ref: '#/components/schemas/WorkerDeploymentVersion'
1052310531
unversionedDeploymentName:
1052410532
type: string
10525-
description: Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
10533+
description: |-
10534+
The name of the Deployment where you want to set Ramping Version to unversioned.
10535+
Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
1052610536
percentage:
1052710537
type: number
1052810538
description: 'Ramp percentage to set. Valid range: [0,100].'
@@ -10570,7 +10580,7 @@ components:
1057010580
format: bytes
1057110581
previousVersion:
1057210582
type: string
10573-
description: Deprecated. Use `previous_ramping`.
10583+
description: Deprecated. Use `replaced_version`.
1057410584
deploymentVersion:
1057510585
$ref: '#/components/schemas/WorkerDeploymentVersion'
1057610586
unversioned:
@@ -11993,7 +12003,7 @@ components:
1199312003
VersioningOverride_PinnedOverride:
1199412004
type: object
1199512005
properties:
11996-
type:
12006+
behavior:
1199712007
enum:
1199812008
- PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED
1199912009
- PINNED_OVERRIDE_BEHAVIOR_PINNED
@@ -12103,7 +12113,7 @@ components:
1210312113
Identifies the Worker Deployment this Version is part of.
1210412114
Must be unique within the namespace.
1210512115
description: |-
12106-
A Worker Deployment Version (Version, for short) represents a different
12116+
A Worker Deployment Version (Version, for short) represents a
1210712117
version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)
1210812118
Version records are created in Temporal server automatically when their
1210912119
first poller arrives to the server.
@@ -13024,7 +13034,7 @@ components:
1302413034
a deployment value which will be stored here, so the right way to check if an execution is
1302513035
versioned if an execution is versioned or not is via the `behavior` field.
1302613036
Note that `deployment` is overridden by `versioning_override` if the latter is present.
13027-
Deprecated. Use `version`.
13037+
Deprecated. Use `deployment_version`.
1302813038
version:
1302913039
allOf:
1303013040
- $ref: '#/components/schemas/WorkerDeploymentVersion'

temporal/api/workflow/v1/message.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ message WorkflowExecutionVersioningInfo {
169169
// a deployment value which will be stored here, so the right way to check if an execution is
170170
// versioned if an execution is versioned or not is via the `behavior` field.
171171
// Note that `deployment` is overridden by `versioning_override` if the latter is present.
172-
// Deprecated. Use `version`.
172+
// Deprecated. Use `deployment_version`.
173173
temporal.api.deployment.v1.Deployment deployment = 2 [deprecated = true];
174174
// Deprecated. Use `deployment_version`.
175175
temporal.api.deployment.v1.WorkerDeploymentVersion version = 5 [deprecated = true];
@@ -311,10 +311,14 @@ message PendingActivityInfo {
311311

312312
// The deployment this activity was dispatched to most recently. Present only if the activity
313313
// was dispatched to a versioned worker.
314-
// Deprecated. Use `last_worker_deployment_version`.
314+
// Deprecated. Use `last_deployment_version`.
315315
temporal.api.deployment.v1.Deployment last_deployment = 20 [deprecated = true];
316316
// The Worker Deployment Version this activity was dispatched to most recently.
317-
string last_worker_deployment_version = 21;
317+
// Deprecated. Use `last_deployment_version`.
318+
string last_worker_deployment_version = 21 [deprecated = true];
319+
// The Worker Deployment Version this activity was dispatched to most recently.
320+
temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 24;
321+
318322

319323
// Priority metadata
320324
temporal.api.common.v1.Priority priority = 22;

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ message SetWorkerDeploymentCurrentVersionResponse {
20642064
// that write to the Worker Deployment state to ensure that the state
20652065
// did not change between this API call and a future write.
20662066
bytes conflict_token = 1;
2067-
// Deprecated. Use `previous_current`.
2067+
// Deprecated. Use `replaced_version`.
20682068
string previous_version = 2 [deprecated = true];
20692069
// The version that was current before executing this operation.
20702070
oneof replaced_version {
@@ -2121,10 +2121,10 @@ message SetWorkerDeploymentRampingVersionResponse {
21212121
// that write to the Worker Deployment state to ensure that the state
21222122
// did not change between this API call and a future write.
21232123
bytes conflict_token = 1;
2124-
// Deprecated. Use `previous_ramping`.
2124+
// Deprecated. Use `replaced_version`.
21252125
string previous_version = 2 [deprecated = true];
21262126
// The version that was ramping before executing this operation.
2127-
oneof replaced_ramping {
2127+
oneof replaced_version {
21282128
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 4;
21292129
bool unversioned = 5;
21302130
};

0 commit comments

Comments
 (0)