Skip to content

Commit

Permalink
Sync search attributes API
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou committed Nov 22, 2023
1 parent 0165f4a commit 15f4886
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 7 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,13 @@ message AddSearchAttributesRequest {
message AddSearchAttributesResponse {
}

message SyncSearchAttributesSecondaryVisibilityRequest {
string namespace = 1;
}

message SyncSearchAttributesSecondaryVisibilityResponse {
}

message RemoveSearchAttributesRequest {
// Search attribute names to delete.
repeated string search_attributes = 1;
Expand Down
11 changes: 9 additions & 2 deletions temporal/api/operatorservice/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,20 @@ 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) {
}

// SyncSearchAttributesSecondaryVisibility syncs search attributes in the secondary visibility
// from the primary visibility.
//
// Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails,
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 15f4886

Please sign in to comment.