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 validation for invalid starttime filter for standard visibility #2401

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

meiliang86
Copy link
Contributor

@meiliang86 meiliang86 commented Jan 21, 2022

What changed?
Return errors when user specifies comparison filter for StartTime for standard visibility.

Why?
Right now it will panic due to nil pointer exception. Technically it is possible to process comparison filter for StartTime, but we decided to only support equals comparison for all the standard queries. Open this up just for StartTime adds unnecessary complexity with minimum benefit. User can easily translate a comparison expression to a BETWEEN ... AND ... expression for StartTime which is currently supported.

How did you test it?
Unit test.

Potential risks
No risks.

Is hotfix candidate?
No.

@meiliang86 meiliang86 requested a review from a team January 21, 2022 07:04
@meiliang86 meiliang86 enabled auto-merge (squash) January 21, 2022 07:04
@meiliang86 meiliang86 merged commit 1e19178 into temporalio:master Jan 21, 2022
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