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

Merge custom search attributes from index name with empty string key #3877

Merged

Conversation

rodrigozhou
Copy link
Collaborator

What changed?
Merge custom search attributes from the index name key with the empty string key in searchattribute.Manager.GetSearchAttributes.

Why?
There was a check to handle it in the search attribute validator, but there are many more calls to GetSearchAttributes in the codebase. In order for than to be backwards compatible, I'm merging with the contents in the empty string key.

How did you test it?
Existing tests.

Potential risks
Unlikely to have issue. The new index name key should be empty, so merging with the contents in the empty string key should be no-op.
One situation that might have issue is if the user is using Elasticsearch and there's the empty string key in cluster metadata. This might lead to unexpected results.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner February 1, 2023 06:14
@rodrigozhou rodrigozhou merged commit af00719 into temporalio:master Feb 1, 2023
@rodrigozhou rodrigozhou deleted the fix-handle-empty-string-index-sa branch February 1, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants