-
Notifications
You must be signed in to change notification settings - Fork 6
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
Evaluate IntrinsicFunctions from PayloadTemplate #236
Conversation
Overall, LGTM - minor comments above aside from simpler the predicate method contents. |
8fe87e4
to
6f481cb
Compare
Gah I think this conflicted with the merge of #235 |
239ffcc
to
ff127e6
Compare
Checked commits agrare/floe@10288f7~...ff127e6 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
begin | ||
tree = Parser.new.parse(payload) | ||
rescue Parslet::ParseFailed => err | ||
raise Floe::InvalidWorkflowError, err.message | ||
end |
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.
@Fryguy maybe in a follow-up but what do you think about doing the Parser.new.parse in the initialize? It looks like it would always be the same for every invocation of value plus we like raising invalid workflow exception when building the Workflow instance not at runtime as much as possible
Added - Set Floe.logger.level if DEBUG env var set (#234) - Add InstrinsicFunction foundation + States.Array, States.UUID (#194) - Evaluate IntrinsicFunctions from PayloadTemplate (#236) - Add more intrinsic functions (#242) - Add State#cause_path, error_path (#249) - Validate Catcher Next (#250) - Add spec/supports (#248) Fixed - Handle non-hash input/output values (#214) - Fix Input/Output handling for Pass, Choice, Succeed states (#225) - Wrap Parslet::ParseFailed errors as Floe::InvalidWorkflowError (#235) - Fix edge cases with States.Array (#237) - Fix sporadic test failure with Wait state (#243) - Fix invalid container names after normalizing (#252) Changed - Extract ErrorMatcherMixin from Catch and Retry (#186) - Output should be JSON (#230) - Normalize functions to all take arguments (#238) - Pass full path name to State.new for better errors (#229) - Validate that state machine input is valid JSON (#227) - Move the Parslet parse into initialize so that invalid function definition will fail on workflow load (#245)
No description provided.