-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(aws-stepfunctions, aws-stepfunctions-tasks): missing suffix in fi… #2939
Conversation
…eld names of reference paths * add suffix ".$" for the fields whose values are reference paths, including json path and context object * fix unit tests and integration test for lambda task fixes aws#2937
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.
Good catch. The issue is probably a missing renderObject()
, but I think I'd want to put it somewhere else.
Maybe it just goes in Task
when it's copying the Parameters
field.
@@ -101,7 +102,7 @@ export class StateGraph { | |||
public toGraphJson(): object { | |||
const states: any = {}; | |||
for (const state of this.allStates) { | |||
states[state.stateId] = state.toStateJson(); | |||
states[state.stateId] = FieldUtils.renderObject(state.toStateJson()); |
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 feel like this should be the responsibility of the individual tasks. It only makes sense in the Parameters
field, no?
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.
Yes, you are right. I forgot the reference path only applies for Parameters
field, rather than the entire block of state.
* Add Qualifier in the list of supporting parameters for lambda * Increase unit test coverage for all the services which support "waitForTaskToken"
…eld names of reference paths
fixes #2937
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.