Skip to content

Commit

Permalink
UpgradeKeywordSearchAttributes and SyncSearchAttributesSecondaryVisib…
Browse files Browse the repository at this point in the history
…ility API's
  • Loading branch information
rodrigozhou committed Nov 22, 2023
1 parent 0165f4a commit 5a7b906
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
15 changes: 15 additions & 0 deletions temporal/api/operatorservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 11 additions & 2 deletions temporal/api/operatorservice/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a7b906

Please sign in to comment.