Skip to content

Adding built in workflow versioning strategies with defaults#1707

Merged
WhitWaldo merged 5 commits intodapr:masterfrom
WhitWaldo:built-in-versioning-strategies
Feb 12, 2026
Merged

Adding built in workflow versioning strategies with defaults#1707
WhitWaldo merged 5 commits intodapr:masterfrom
WhitWaldo:built-in-versioning-strategies

Conversation

@WhitWaldo
Copy link
Contributor

Description

Rather than leave developers to have to create their own versioning strategies or copy the strategies out of the existing integration tests, it makes sense to bundle versioning strategies into the distributable package so they're readily available. In addition to having the strategies built-in, this PR also picks the NumericVersionStrategy and MaxVersionSelector as the defaults. They can be trivially overridden during registration though.

Further, I've gone ahead and bundled a transient project reference for Dapr.Workflow to Dapr.Workflow.Versioning.Runtime so developers adding the Dapr.Workflow.Versioning project needn't also include the Dapr.Workflow project itself as that just felt unnecessary.

This PR also added unit tests for each of these newly added strategies.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…test coverage

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…tions` if not provided

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…s and unit tests for each

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo added this to the v1.17 milestone Feb 12, 2026
@WhitWaldo WhitWaldo self-assigned this Feb 12, 2026
@WhitWaldo WhitWaldo requested review from a team as code owners February 12, 2026 16:13
@WhitWaldo WhitWaldo merged commit 2faebf7 into dapr:master Feb 12, 2026
252 of 255 checks passed
@WhitWaldo WhitWaldo deleted the built-in-versioning-strategies branch February 12, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant