-
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
feat(iot-actions): add support for DynamoDBv2 rule #20171
Conversation
Add dynamoDB example to readme and update list.
Reorder items so that the example works as intended.
The build failed due to a bug I had already noticed and resolved (I think), but the last commit was not used for the build. I merged master into my branch to trigger the build process again. This should include the latest commit in which I resolved the issue. Or if that 2nd commit also failed, I cannot find a build log for it. Which makes it hard to resolve the issue. |
Is there any additional work I need to do for this PR? |
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.
@bobveringa Thank you to work for this issue!
I propose some small changes 😄 .
packages/@aws-cdk/aws-iot-actions/test/dynamodb-v2/integ.dynamodb-v2-put-item-action.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-iot-actions/test/dynamodb-v2/integ.dynamodb-v2-put-item-action.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-iot-actions/test/dynamodb-v2/integ.dynamodb-v2-put-item-action.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Tatsuya Yamamoto <[email protected]>
…odb-v2-put-item-action.ts Co-authored-by: Tatsuya Yamamoto <[email protected]>
…odb-v2-put-item-action.ts Co-authored-by: Tatsuya Yamamoto <[email protected]>
Integrate feedback from the review and re-run integration tests to validate no regressions have occurred.
Thanks for your review @yamatatsu, I have the changes and updated the integration tests template. |
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.
Thank you for addressing my proposes! 😍 And sorry for my late reaction.
Once, I propose minor changes based on my experience of contributions to make smooth the review of the core maintainer. And I hope this PR will be merged 😌.
@@ -0,0 +1,45 @@ | |||
import * as dynamodb from '@aws-cdk/aws-dynamodb'; |
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 think it is better to rename this file to dynamodb-v2-put-item.ts
because existing files for DynamoDB in this repository are named dynamodb-xxx
instead of dynamo-db-xxx
.
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 would actually go with dynamodbv2-put-item-action.ts
@bobveringa Did you do any progress on this one ? :) |
I have not yet have had the time to integrate this feedback. And due to the lack of interest from any maintainers or communication at all, I have not really been motivated to work on this solution. For our own project, we have figured out a way around it. In general, I found the complete lack of communication very discouraging, and I have matters to work on that people are actually interested in. |
@bobveringa I'm really sorry to hear that you feel like nothing has happened here. It would be cool if you could still look at/resolve proposed adjustments. I guess the CDK just waited for your response on the suggestions. |
I've added an item to look at this next sprint. However, given this experience, it is unlikely that we will contribute changes in the feature. After 2 months, I feel like someone could have spent 30 seconds leaving a comment that changes are needed. |
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.
@bobveringa On behalf of the team, I apologize for your experience submitting the PR and the radio silence on our end. The quality of this change is precisely what I look for when I'm reviewing so I sincerely hope that you'll continue contributing in the future.
Besides the comment below about the name of the file, I will just +1 the suggested changes by @yamatatsu. Everything else looks great.
@@ -0,0 +1,45 @@ | |||
import * as dynamodb from '@aws-cdk/aws-dynamodb'; |
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 would actually go with dynamodbv2-put-item-action.ts
Co-authored-by: Tatsuya Yamamoto <[email protected]>
Pull request has been modified.
I am not certain why this build is failing. The logs don't really help narrow it down. I'll investigate this once I have more time to work on it. If anyone has a clue why this started failing, please let me know. |
Looks like it was just that the name of the file in the exports didn't get updated. I added that fix. |
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.
Looks like the names of the files aren't consistent. Could you please update those and then I think this looks good to go.
Do you mean the filename of the code and the filenames for the tests? |
The tests. I also just noticed that the integ test isn't using our integ test construct so it's not actually testing against the expected output. Apologies for not noticing that sooner. |
I'll make this change. In addition someone should update the other tests, as none of them use the integ test construct. |
Pull request has been modified.
I think that should be all the changes. Please let me know if there is any more work that needs to be done for this issue. |
@mergify update |
✅ Branch has been successfully updated |
Looks like the update wasn't quite right but I'm going to go ahead and update them since it will only take me a second. You're also right about us needing to update the other tests. We're slowly but surely making our way through those updates. |
@Mergifyio update |
✅ Branch has been successfully updated |
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.
As long as this build succeeds, I think this is good to go!
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Alright, thank you very much for resolving that issue. |
This merge request adds the dynamodbv2 IoT rule action as a new feature. This rule is useful for quickly logging device information into DynamoDB. Furthermore, it adds some other important functionality as IoT action. Closes aws#20162 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This merge request adds the dynamodbv2 IoT rule action as a new feature. This rule is useful for quickly logging device information into DynamoDB. Furthermore, it adds some other important functionality as IoT action.
Closes #20162
All Submissions:
Adding new Unconventional Dependencies:
New Features
yarn integ
to deploy the infrastructure and generate the snapshot (i.e.yarn integ
without--dry-run
)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license