Skip to content

Commit

Permalink
Add field to update search attributes of a schedule (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou authored Apr 24, 2024
1 parent 2644a4b commit 17693ce
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3432,6 +3432,10 @@
"requestId": {
"type": "string",
"description": "A unique identifier for this update request for idempotence. Typically UUIDv4."
},
"searchAttributes": {
"$ref": "#/definitions/v1SearchAttributes",
"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."
}
}
},
Expand Down
9 changes: 9 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6604,6 +6604,15 @@ components:
requestId:
type: string
description: A unique identifier for this update request for idempotence. Typically UUIDv4.
searchAttributes:
allOf:
- $ref: '#/components/schemas/SearchAttributes'
description: |-
Schedule search attributes to be updated.
Do not set this field if you do not want to update the search attributes.
A non-null empty object will set the search attributes to an empty map.
Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
you must also set the `schedule` field; otherwise, it will unset the schedule.
UpdateScheduleResponse:
type: object
properties: {}
Expand Down
6 changes: 6 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,12 @@ message UpdateScheduleRequest {
string identity = 5;
// A unique identifier for this update request for idempotence. Typically UUIDv4.
string request_id = 6;
// Schedule search attributes to be updated.
// Do not set this field if you do not want to update the search attributes.
// A non-null empty object will set the search attributes to an empty map.
// Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
// you must also set the `schedule` field; otherwise, it will unset the schedule.
temporal.api.common.v1.SearchAttributes search_attributes = 7;
}

message UpdateScheduleResponse {
Expand Down

0 comments on commit 17693ce

Please sign in to comment.