-
Notifications
You must be signed in to change notification settings - Fork 220
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
Document ambiguous ID and test for mismatch on signal start #612
Conversation
// Due to the ambiguous way to provide workflow IDs, if options contains an | ||
// ID, it must match the parameter | ||
if options.ID != "" && options.ID != workflowID { | ||
return nil, fmt.Errorf("workflow ID from options not used, must be unset or match workflow ID parameter") |
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.
This is technically a breaking change.
I think it's necessary but we should document this in the release notes and mark it as breaking.
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 only a breaking change if you consider extra validation of (unbeknownst) improper param setting as a breaking change. It went from being an invalid param do the wrong thing to an invalid param error.
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'm aware, but this still could result in a change of behavior in some rare cases.
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.
👍 Ok, I will make sure to document in the release notes
…orkflow-id # Conflicts: # internal/internal_workflow_client.go # internal/internal_workflow_client_test.go
What was changed
Document different ways to give workflow ID on signal with start, and ensure the unused one doesn't mismatch.
Why?
We ignore workflow IDs coming from options, so we make sure it's not expecting to be used.
Checklist
SignalWithStartWorkflow
does not use same workflow ID option asExecuteWorkflow
#603