Skip to content

Commit 8ad3751

Browse files
authored
Add reset reapply exclude types for batch reset (#402)
1 parent 269455f commit 8ad3751

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

openapi/openapiv2.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,7 +2948,7 @@
29482948
},
29492949
"resetReapplyType": {
29502950
"$ref": "#/definitions/v1ResetReapplyType",
2951-
"title": "Event types to be reapplied (deprecated)\nDefault: RESET_REAPPLY_TYPE_ALL_ELIGIBLE"
2951+
"title": "Event types to be reapplied (deprecated)\nDefault: RESET_REAPPLY_TYPE_SIGNAL"
29522952
},
29532953
"resetReapplyExcludeTypes": {
29542954
"type": "array",
@@ -7223,11 +7223,18 @@
72237223
},
72247224
"resetReapplyType": {
72257225
"$ref": "#/definitions/v1ResetReapplyType",
7226-
"description": "History event reapply options."
7226+
"title": "Event types to be reapplied (deprecated)\nDefault: RESET_REAPPLY_TYPE_SIGNAL"
72277227
},
72287228
"currentRunOnly": {
72297229
"type": "boolean",
72307230
"title": "If true, limit the reset to only within the current run. (Applies to build_id targets and\npossibly others in the future.)"
7231+
},
7232+
"resetReapplyExcludeTypes": {
7233+
"type": "array",
7234+
"items": {
7235+
"$ref": "#/definitions/v1ResetReapplyExcludeType"
7236+
},
7237+
"title": "Event types not to be reapplied"
72317238
}
72327239
},
72337240
"description": "Describes where and how to reset a workflow, used for batch reset currently\nand may be used for single-workflow reset later."

openapi/openapiv3.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5049,13 +5049,25 @@ components:
50495049
- RESET_REAPPLY_TYPE_NONE
50505050
- RESET_REAPPLY_TYPE_ALL_ELIGIBLE
50515051
type: string
5052-
description: History event reapply options.
5052+
description: |-
5053+
Event types to be reapplied (deprecated)
5054+
Default: RESET_REAPPLY_TYPE_SIGNAL
50535055
format: enum
50545056
currentRunOnly:
50555057
type: boolean
50565058
description: |-
50575059
If true, limit the reset to only within the current run. (Applies to build_id targets and
50585060
possibly others in the future.)
5061+
resetReapplyExcludeTypes:
5062+
type: array
5063+
items:
5064+
enum:
5065+
- RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
5066+
- RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
5067+
- RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
5068+
type: string
5069+
format: enum
5070+
description: Event types not to be reapplied
50595071
description: |-
50605072
Describes where and how to reset a workflow, used for batch reset currently
50615073
and may be used for single-workflow reset later.
@@ -5124,7 +5136,7 @@ components:
51245136
type: string
51255137
description: |-
51265138
Event types to be reapplied (deprecated)
5127-
Default: RESET_REAPPLY_TYPE_ALL_ELIGIBLE
5139+
Default: RESET_REAPPLY_TYPE_SIGNAL
51285140
format: enum
51295141
resetReapplyExcludeTypes:
51305142
type: array

temporal/api/common/v1/message.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,16 @@ message ResetOptions {
170170
string build_id = 4;
171171
}
172172

173-
// History event reapply options.
173+
// Event types to be reapplied (deprecated)
174+
// Default: RESET_REAPPLY_TYPE_SIGNAL
174175
temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 10;
175176

176177
// If true, limit the reset to only within the current run. (Applies to build_id targets and
177178
// possibly others in the future.)
178179
bool current_run_only = 11;
180+
181+
// Event types not to be reapplied
182+
repeated temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 12;
179183
}
180184

181185
// Callback to attach to various events in the system, e.g. workflow run completion.

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ message ResetWorkflowExecutionRequest {
695695
// Used to de-dupe reset requests
696696
string request_id = 5;
697697
// Event types to be reapplied (deprecated)
698-
// Default: RESET_REAPPLY_TYPE_ALL_ELIGIBLE
698+
// Default: RESET_REAPPLY_TYPE_SIGNAL
699699
temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
700700
// Event types not to be reapplied
701701
repeated temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;

0 commit comments

Comments
 (0)