Skip to content
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

feat(stepfunctions-tasks): assign boolean value in DynamoDB from state input (Json path) #9088

Merged
merged 5 commits into from Jul 17, 2020
Merged

Conversation

michaelwiles
Copy link
Contributor

@michaelwiles michaelwiles commented Jul 15, 2020

It is now possible to map a boolean value from state input using a Json path.

function booleanFromJsonPath added to DynamoAttributeValue which accepts
a Json path

Closes #9007


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…lling dynamodb

is now possible to map a boolean. closes #9007
@mergify
Copy link
Contributor

mergify bot commented Jul 15, 2020

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@michaelwiles michaelwiles changed the title feat(aws-stepfunctions-task) included method to map a boolean when calling dynamodb feat(aws-stepfunctions-task): included method to map a boolean when calling dynamodb in step function Jul 15, 2020
Copy link
Contributor

@shivlaks shivlaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelwiles I believe your build is failing because you have some missing trailing commas (in integ.call-dynamodb.ts and put-item.test.ts

I was about to make this change for you, but I don't have permissions to push to your fork.

@shivlaks shivlaks self-assigned this Jul 16, 2020
@shivlaks shivlaks changed the title feat(aws-stepfunctions-task): included method to map a boolean when calling dynamodb in step function feat(stepfunctions-tasks): assign boolean value in DynamoDB from state input (Json path) Jul 16, 2020
@shivlaks shivlaks added the pr-linter/exempt-readme The PR linter will not require README changes label Jul 16, 2020
@mergify mergify bot dismissed shivlaks’s stale review July 16, 2020 14:03

Pull request has been modified.

@michaelwiles
Copy link
Contributor Author

I've addressed those issues.

@shivlaks I've added you as a committer on that repo.

It'd probably be easier for you to make changes you need. I'm not sure if you want for example the validate method to throw an exception or not and it'd be easier if you just made any changes yourself.

@shivlaks
Copy link
Contributor

I've addressed those issues.

@shivlaks I've added you as a committer on that repo.

It'd probably be easier for you to make changes you need. I'm not sure if you want for example the validate method to throw an exception or not and it'd be easier if you just made any changes yourself.

thanks! I think you've addressed my feedback. might update the doc string for the method slightly, but other than that this is fantastic!

Copy link
Contributor

@shivlaks shivlaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelwiles I wasn't able to push, but had one small change to the doc string (added as a suggestion in the PR).

After that, I think this is ready to merge!

…types.ts


upgrading docstring for booleanFromJsonPath

Co-authored-by: Shiv Lakshminarayan <[email protected]>
@mergify mergify bot dismissed shivlaks’s stale review July 16, 2020 19:27

Pull request has been modified.

shivlaks
shivlaks previously approved these changes Jul 16, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 16, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed shivlaks’s stale review July 17, 2020 07:29

Pull request has been modified.

@shivlaks
Copy link
Contributor

@michaelwiles you might need to give maintainers permissions so mergify can update and merge the PR.

here is the GitHub documentation on how you can provide maintainers permissions to the PR

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 351a6bb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jul 17, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws aws deleted a comment from mergify bot Jul 17, 2020
@michaelwiles
Copy link
Contributor Author

michaelwiles commented Jul 17, 2020

@michaelwiles you might need to give maintainers permissions so mergify can update and merge the PR.

@shivlaks: Yeah... being new to this I made the mistake of creating the pull request repo in an organisation account and that "allow edits from maintainers" check box is thus not available.

@michaelwiles
Copy link
Contributor Author

michaelwiles commented Jul 17, 2020 via email

@shivlaks
Copy link
Contributor

@michaelwiles - it's not a big deal if you want to create another PR. You can always mention that in the description that it supersedes this one so we have a breadcrumb back to the PR history.

Alternatively, I could merge this although I think that's the least desirable option as it might not pick up an in-flight change that might conflict. Let me know if it's possible to re-publish and we'll go from there to work with the best option in front of us.

We really appreciate the contribution and would love to see more!

@shivlaks shivlaks merged commit 7b8ef5b into aws:master Jul 17, 2020
@shivlaks
Copy link
Contributor

@michaelwiles - I merged it this time since it's less painful.

I'll add a note re: pull requests from organization repos since I was not aware that they could not delegate permissions to maintainers. At least it's on your radar for the next time! thanks a bunch 🎉

curtiseppel pushed a commit to curtiseppel/aws-cdk that referenced this pull request Aug 11, 2020
…e input (Json path) (aws#9088)

It is now possible to map a boolean value from state input using a Json path.

function booleanFromJsonPath added to DynamoAttributeValue which accepts
a Json path

Closes aws#9007

Co-authored-by: Michael Wiles <[email protected]>
Co-authored-by: Shiv Lakshminarayan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions-tasks pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
3 participants