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

Update API cleanups #211

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Update API cleanups #211

merged 2 commits into from
Jul 28, 2022

Conversation

mmcshane
Copy link
Contributor

What changed?
Implementing this API has show us some fixups that need to occur

  • Use update_id rather than update_token in commands
  • Consistenly use WorkflowUpdate rather than UpdateWorkflow for events,
    commands, and enums
  • remove "Rejection" from WorkflowUpdateRejectionDurabilityPreference so
    that the enum can be used in more places

Why?
Naming predictability and reuse

Breaking changes
Very. But to an API that has not been released or implemented yet so doesn't matter.

Implementing this API has show us some fixups that need to occur

- Use update_id rather than update_token in commands
- Consistenly use WorkflowUpdate rather than UpdateWorkflow for events,
  commands, and enums
- remove "Rejection" from WorkflowUpdateRejectionDurabilityPreference so
  that the enum can be used in more places
@mmcshane mmcshane requested review from a team as code owners July 28, 2022 00:27
@mmcshane mmcshane requested a review from alexshtin July 28, 2022 00:28
The current PR makes changes to unstable APIs. There is no intent to
preserve backward compatibility.
@mmcshane mmcshane merged commit 39c6071 into temporalio:master Jul 28, 2022
@mmcshane mmcshane deleted the mpm/fast-path-update branch July 28, 2022 19:20
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

3 participants