Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync search attributes API #332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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