From 5a7b906e8b19f7a03a6cd8565cfd436c3af66c5b Mon Sep 17 00:00:00 2001 From: rodrigozhou Date: Wed, 22 Nov 2023 17:39:35 -0600 Subject: [PATCH] UpgradeKeywordSearchAttributes and SyncSearchAttributesSecondaryVisibility API's --- .../api/operatorservice/v1/request_response.proto | 15 +++++++++++++++ temporal/api/operatorservice/v1/service.proto | 13 +++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/temporal/api/operatorservice/v1/request_response.proto b/temporal/api/operatorservice/v1/request_response.proto index abe70f74..a8910cd2 100644 --- a/temporal/api/operatorservice/v1/request_response.proto +++ b/temporal/api/operatorservice/v1/request_response.proto @@ -44,6 +44,21 @@ message AddSearchAttributesRequest { message AddSearchAttributesResponse { } +message UpgradeKeywordSearchAttributesRequest { + string namespace = 1; + repeated string search_attributes = 2; +} + +message UpgradeKeywordSearchAttributesResponse { +} + +message SyncSearchAttributesSecondaryVisibilityRequest { + string namespace = 1; +} + +message SyncSearchAttributesSecondaryVisibilityResponse { +} + message RemoveSearchAttributesRequest { // Search attribute names to delete. repeated string search_attributes = 1; diff --git a/temporal/api/operatorservice/v1/service.proto b/temporal/api/operatorservice/v1/service.proto index 0dfd3c41..d9e51e70 100644 --- a/temporal/api/operatorservice/v1/service.proto +++ b/temporal/api/operatorservice/v1/service.proto @@ -42,13 +42,22 @@ import "google/api/annotations.proto"; service OperatorService { // (-- Search Attribute --) - // AddSearchAttributes add custom search attributes. + // AddSearchAttributes add custom search attributes. If the search attribute already exists, + // it will be ignored. // - // Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists // Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails, rpc AddSearchAttributes (AddSearchAttributesRequest) returns (AddSearchAttributesResponse) { } + // UpgradeKeywordSearchAttributes changes a Keyword search attribute type to KeywordList. + rpc UpgradeKeywordSearchAttributes (UpgradeKeywordSearchAttributesRequest) returns (UpgradeKeywordSearchAttributesResponse) { + } + + // SyncSearchAttributesSecondaryVisibility syncs search attributes in the secondary visibility + // from the primary visibility. + rpc SyncSearchAttributesSecondaryVisibility (SyncSearchAttributesSecondaryVisibilityRequest) returns (SyncSearchAttributesSecondaryVisibilityResponse) { + } + // RemoveSearchAttributes removes custom search attributes. // // Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered