Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add OnConflictOptions Support #2415
base: master
Are you sure you want to change the base?
Add OnConflictOptions Support #2415
Changes from 5 commits
dfc901d
85cff62
1a6be22
5f08c48
5bfb3e5
47cd098
3896f3d
6d6345e
ca8f3d5
b56db56
9151216
6c25aec
74aada4
0d5b919
81f9ec4
c6b9925
44f562e
8158ab0
35bbf02
86ff638
1e69607
a507b5e
e3ae76a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Do we resolve all these callbacks we are attaching? I can't find it anywhere in this PR
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.
applyOnConflictOptions calls
ctx.commitChanges(store);
The save implementation makes a call tofireCallbacks
. Is that where we would expect callbacks to be invoked?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.
I was assuming that we would trigger any callback attached to the workflow, that should be validated when tests are added.
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.
It's already resolving. I just had to change to get the callbacks from this new attribute I added to
TestWorkflowMutableStateImpl
instead of reading from thestartRequest
.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.
There's some edge cases that we handled in the server (or at least planned to) for reuse policy terminate if running and the different conflict policies.
Someone can address that in a follow up PR though.
CC @rodrigozhou
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.
@rodrigozhou have you reviewed this code and verified the different edge cases?
Can wait for a follow up PR.
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.
I'll do in a follow up PR, this one is already quite big.