Skip to content

Commit 43e4896

Browse files
authored
add memo to schedule update request (#748)
<!-- Describe what has changed in this PR --> **What changed?** - add memo to `UpdateScheduleRequest` <!-- Tell your future self why have you made these changes --> **Why?** - allow user to update their memo without recreating the schedule
1 parent ed45812 commit 43e4896

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10397,6 +10397,10 @@
1039710397
"searchAttributes": {
1039810398
"$ref": "#/definitions/v1SearchAttributes",
1039910399
"description": "Schedule search attributes to be updated.\nDo not set this field if you do not want to update the search attributes.\nA non-null empty object will set the search attributes to an empty map.\nNote: you cannot only update the search attributes with `UpdateScheduleRequest`,\nyou must also set the `schedule` field; otherwise, it will unset the schedule."
10400+
},
10401+
"memo": {
10402+
"$ref": "#/definitions/v1Memo",
10403+
"description": "Schedule memo to replace. If set, replaces the entire memo.\nDo not set this field if you do not want to update the memo.\nA non-null empty object will clear the memo."
1040010404
}
1040110405
}
1040210406
},

openapi/openapiv3.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14797,6 +14797,13 @@ components:
1479714797
A non-null empty object will set the search attributes to an empty map.
1479814798
Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
1479914799
you must also set the `schedule` field; otherwise, it will unset the schedule.
14800+
memo:
14801+
allOf:
14802+
- $ref: '#/components/schemas/Memo'
14803+
description: |-
14804+
Schedule memo to replace. If set, replaces the entire memo.
14805+
Do not set this field if you do not want to update the memo.
14806+
A non-null empty object will clear the memo.
1480014807
UpdateScheduleResponse:
1480114808
type: object
1480214809
properties: {}

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,10 @@ message UpdateScheduleRequest {
13551355
// Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
13561356
// you must also set the `schedule` field; otherwise, it will unset the schedule.
13571357
temporal.api.common.v1.SearchAttributes search_attributes = 7;
1358+
// Schedule memo to replace. If set, replaces the entire memo.
1359+
// Do not set this field if you do not want to update the memo.
1360+
// A non-null empty object will clear the memo.
1361+
temporal.api.common.v1.Memo memo = 8;
13581362
}
13591363

13601364
message UpdateScheduleResponse {

0 commit comments

Comments
 (0)