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

Add index name to constructor of search attribute validator #3834

Merged

Conversation

rodrigozhou
Copy link
Collaborator

What changed?
Added index name to constructor of search attributes validator.

Why?
Validator functions already require index name which should be constant throughout the execution of the Server, so moving the constructor. It will avoid needing to keep track of index name and validator objects separately in the codebase in case the validator object is passed to other structs.

How did you test it?
Existing tests.

Potential risks
There shouldn't have any risks.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner January 24, 2023 23:33
Copy link
Contributor

@MichaelSnowden MichaelSnowden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great simplification, LGTM

@rodrigozhou rodrigozhou merged commit 9d3fede into temporalio:master Jan 26, 2023
@rodrigozhou rodrigozhou deleted the sa-validator-ctor-index-name branch January 26, 2023 20:14
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