-
Notifications
You must be signed in to change notification settings - Fork 241
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
EDU-3824: Add best practice advice to Typescript Versioning #3303
base: main
Are you sure you want to change the base?
Conversation
Source of truth: Grant Smith
After experimenting more in my local, I see that I'm missing something. I'll circle back when i'm more solid |
Okay yeah I have a pretty good grasp of what's going on now -- at least in the python SDK. I'll need to revise the writuep and test in other SDKs, but I made a little youtube series deep diving into it. we can maybe put that in the docs too 👍 |
Yep, I looked into TS and Dotnet as well. Here's the writeup. I'll work on getting it to a point that can be merged etc |
docs/develop/dotnet/versioning.mdx
Outdated
@@ -108,6 +108,90 @@ Implementing patching involves three steps: | |||
2. Remove the old code and apply [DeprecatePatch](https://dotnet.temporal.io/api/Temporalio.Workflows.Workflow.html#Temporalio_Workflows_Workflow_DeprecatePatch_System_String_). | |||
3. Once you're confident that all old Workflows have finished executing, remove `DeprecatePatch`. | |||
|
|||
#### Overview | |||
|
|||
The following sample shows how the `patched()` function behaves, providing explanations at each stage of the patching flow: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a line about defining the version conditions in descending order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like
The best practice is to write your version conditionals in descending order so that newly executed workflows will set their marker as the latest version.
The default value for the version is
""
(empty string)
Source of truth/Author: Grant Smith