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(iot-actions): add support for DynamoDBv2 rule #20171

Merged
merged 21 commits into from
Aug 2, 2022
Merged

Conversation

bobveringa
Copy link
Contributor

@bobveringa bobveringa commented May 2, 2022

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:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • 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

@gitpod-io
Copy link

gitpod-io bot commented May 2, 2022

@github-actions github-actions bot added the p2 label May 2, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team May 2, 2022 14:58
@skinny85 skinny85 changed the title feat(iot-actions-alpha): add support for dynamodbv2 rule feat(iot-actions): add support for dynamodbv2 rule May 2, 2022
@github-actions github-actions bot added the feature-request A feature should be added or improved. label May 2, 2022
@skinny85 skinny85 changed the title feat(iot-actions): add support for dynamodbv2 rule feat(iot-actions): add support for DynamoDBv2 rule May 2, 2022
bobveringa and others added 3 commits May 2, 2022 22:57
Add dynamoDB example to readme and update list.
Reorder items so that the example works as intended.
@bobveringa
Copy link
Contributor Author

bobveringa commented May 3, 2022

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.

@bobveringa
Copy link
Contributor Author

Is there any additional work I need to do for this PR?

Copy link
Contributor

@yamatatsu yamatatsu left a 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 😄 .

bobveringa and others added 4 commits May 6, 2022 10:04
…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.
@bobveringa
Copy link
Contributor Author

Thanks for your review @yamatatsu, I have the changes and updated the integration tests template.

Copy link
Contributor

@yamatatsu yamatatsu left a 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 😌.

packages/@aws-cdk/aws-iot-actions/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-iot-actions/README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,45 @@
import * as dynamodb from '@aws-cdk/aws-dynamodb';
Copy link
Contributor

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.

Copy link
Contributor

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

@daschaa
Copy link
Contributor

daschaa commented Jul 10, 2022

@bobveringa Did you do any progress on this one ? :)

@bobveringa
Copy link
Contributor Author

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.

@daschaa
Copy link
Contributor

daschaa commented Jul 10, 2022

@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.
Would be cool if you could take a look ❤️

@bobveringa
Copy link
Contributor Author

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.

@TheRealAmazonKendra TheRealAmazonKendra changed the base branch from v1-main to main July 13, 2022 00:24
@github-actions github-actions bot added the effort/small Small work item – less than a day of effort label Jul 13, 2022
Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a 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';
Copy link
Contributor

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]>
@mergify mergify bot dismissed TheRealAmazonKendra’s stale review July 24, 2022 12:40

Pull request has been modified.

@bobveringa
Copy link
Contributor Author

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.

@TheRealAmazonKendra
Copy link
Contributor

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.

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a 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.

@bobveringa
Copy link
Contributor Author

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?

@TheRealAmazonKendra
Copy link
Contributor

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.

@bobveringa
Copy link
Contributor Author

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.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review August 2, 2022 12:02

Pull request has been modified.

@bobveringa
Copy link
Contributor Author

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.

@TheRealAmazonKendra
Copy link
Contributor

@mergify update

@mergify
Copy link
Contributor

mergify bot commented Aug 2, 2022

update

✅ Branch has been successfully updated

@TheRealAmazonKendra
Copy link
Contributor

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.

@TheRealAmazonKendra
Copy link
Contributor

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Aug 2, 2022

update

✅ Branch has been successfully updated

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a 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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 28cd711
  • 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 Aug 2, 2022

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).

@mergify mergify bot merged commit a57dec3 into aws:main Aug 2, 2022
@bobveringa
Copy link
Contributor Author

Alright, thank you very much for resolving that issue.

josephedward pushed a commit to josephedward/aws-cdk that referenced this pull request Aug 30, 2022
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*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(iot-actions) Add support for the dynamodbv2 action
6 participants