Possible error in temporal course Versioning Workflows with TypeScript

Hello.

Today I’ve begun the course Versioning Workflows with TypeScript. In the section “Versioning Workflows with the Patching API” (https://temporal.talentlms.com/plus/my/training/171/units/2925) there is some text do not make sense. The text is the following:

If the Workflow is not currently replaying an existing history, then the patched function will always return true. […] However, while the Workflow is replaying an existing history, and the history includes a patched call with the same patchId in the current Workflow code, then the patched function returns true.

The use of the “However” word makes me think the following sentence will have a different conclusion than the previous.

However, I understand I am beginning and may be clear for me later. If I am wrong, I can delete this post if you tell me to do so.

Thank you in advance.

Hello Rafar!

I understand the confusion caused by the However. In this case, I believe it’s attempting to differentiate between a Workflow that is not replaying and a Workflow that is replaying rather than a change in the return value of patched.

If you’d like to confirm your understanding of Workflow Versioning via patched, I can certainly help you with that!