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

Validate structured calendar specs and improve error messages #3425

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

dnr
Copy link
Member

@dnr dnr commented Sep 23, 2022

What changed?

  • Add validation for structured calendar specs. This was already done for cron strings and calendar specs (and will now be done twice for them but that's okay).
  • Improve error messages for invalid specs.

There are no behavior changes for valid calendar specs so there's no determinism risks. (Even if there was, we use sideeffect now.)

Why?
More and earlier validation, better error messages.

How did you test it?
unit tests

Potential risks

Is hotfix candidate?
yes

@dnr dnr requested a review from a team as a code owner September 23, 2022 20:50
@dnr dnr merged commit c150474 into temporalio:master Sep 29, 2022
@dnr dnr deleted the sched24 branch September 29, 2022 02:15
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.

None yet

2 participants