Skip to content

Commit ab53507

Browse files
committed
UpgradeKeywordSearchAttributes and SyncSearchAttributesSecondaryVisibility API's
1 parent a19522a commit ab53507

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

temporal/api/operatorservice/v1/request_response.proto

+15
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ message AddSearchAttributesRequest {
4444
message AddSearchAttributesResponse {
4545
}
4646

47+
message UpgradeKeywordSearchAttributesRequest {
48+
string namespace = 1;
49+
repeated string search_attributes = 2;
50+
}
51+
52+
message UpgradeKeywordSearchAttributesResponse {
53+
}
54+
55+
message SyncSearchAttributesSecondaryVisibilityRequest {
56+
string namespace = 1;
57+
}
58+
59+
message SyncSearchAttributesSecondaryVisibilityResponse {
60+
}
61+
4762
message RemoveSearchAttributesRequest {
4863
// Search attribute names to delete.
4964
repeated string search_attributes = 1;

temporal/api/operatorservice/v1/service.proto

+11-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,22 @@ import "google/api/annotations.proto";
4242
service OperatorService {
4343
// (-- Search Attribute --)
4444

45-
// AddSearchAttributes add custom search attributes.
45+
// AddSearchAttributes add custom search attributes. If the search attribute already exists,
46+
// it will be ignored.
4647
//
47-
// Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists
4848
// Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails,
4949
rpc AddSearchAttributes (AddSearchAttributesRequest) returns (AddSearchAttributesResponse) {
5050
}
5151

52+
// UpgradeKeywordSearchAttributes changes a Keyword search attribute type to KeywordList.
53+
rpc UpgradeKeywordSearchAttributes (UpgradeKeywordSearchAttributesRequest) returns (UpgradeKeywordSearchAttributesResponse) {
54+
}
55+
56+
// SyncSearchAttributesSecondaryVisibility syncs search attributes in the secondary visibility
57+
// from the primary visibility.
58+
rpc SyncSearchAttributesSecondaryVisibility (SyncSearchAttributesSecondaryVisibilityRequest) returns (SyncSearchAttributesSecondaryVisibilityResponse) {
59+
}
60+
5261
// RemoveSearchAttributes removes custom search attributes.
5362
//
5463
// Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered

0 commit comments

Comments
 (0)