Skip to content

Commit 15f4886

Browse files
committed
Sync search attributes API
1 parent 0165f4a commit 15f4886

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

temporal/api/operatorservice/v1/request_response.proto

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

47+
message SyncSearchAttributesSecondaryVisibilityRequest {
48+
string namespace = 1;
49+
}
50+
51+
message SyncSearchAttributesSecondaryVisibilityResponse {
52+
}
53+
4754
message RemoveSearchAttributesRequest {
4855
// Search attribute names to delete.
4956
repeated string search_attributes = 1;

temporal/api/operatorservice/v1/service.proto

+9-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,20 @@ 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+
// SyncSearchAttributesSecondaryVisibility syncs search attributes in the secondary visibility
53+
// from the primary visibility.
54+
//
55+
// Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails,
56+
rpc SyncSearchAttributesSecondaryVisibility (SyncSearchAttributesSecondaryVisibilityRequest) returns (SyncSearchAttributesSecondaryVisibilityResponse) {
57+
}
58+
5259
// RemoveSearchAttributes removes custom search attributes.
5360
//
5461
// Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered

0 commit comments

Comments
 (0)