-
Notifications
You must be signed in to change notification settings - Fork 90
Fix should-be-ignored workflow options update #966
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
base: master
Are you sure you want to change the base?
Fix should-be-ignored workflow options update #966
Conversation
@@ -839,6 +839,12 @@ impl WorkflowMachines { | |||
if event.is_final_wf_execution_event() { | |||
self.have_seen_terminal_event = true; | |||
} | |||
// Currently nothing of interest to the SDK in this event | |||
if event.event_type() == EventType::WorkflowExecutionOptionsUpdated |
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.
Why only this event? Should we keep a list of events we do process and be willing to ignore all others when this flag is set? I am worried if another event gets added and we regen protos this same thing will happen if we don't come and add to this conditional.
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.
Well I kinda want to err on the side of being explicit. The reason it works the way it does now is if there is some event that Core knows about, we should explicitly be OK with ignoring it...
However what this problem revealed is we don't have a great way to learn about new events that fit into this category, and decide to ignore them. I could potentially add some kind of test that ensures all known events are explicitly categorized somehow
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 you clarify what is meant by "event that Core knows about"? Is it any event that happens to appear in proto (requiring us to add it to a match clause I see in sdk-core-protos
). I'd argue the presence of an event in protos and in that match clause isn't really the same as Core knowing about it meaningfully.
I could potentially add some kind of test that ensures all known events are explicitly categorized somehow
👍 Or somehow change that one big match clause that we must update on each event to also include whether it is currently ignored atm (may require restructuring since it is just for getting event type right now). At least that way each new event has to be clear whether it's handled or not.
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.
Nothing blocking, though I suspect this will happen again if no general fix is performed
No description provided.