-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(events): add description
property for eventBus
#30935
Conversation
Comments on closed issues and PRs are hard for our team to see. |
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.
Nice, but I just made a few comments.
@@ -40,11 +40,13 @@ describe('event bus', () => { | |||
// WHEN | |||
new EventBus(stack, 'Bus', { | |||
eventBusName: 'myEventBus', | |||
description: 'myEventBus', |
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.
Could you separate it and create a new test because the name of this test is 'named event bus'
?
@@ -281,6 +283,19 @@ describe('event bus', () => { | |||
}).toThrow(/'eventSourceName' must satisfy: /); | |||
}); | |||
|
|||
test('throw error when description is too long', () => { |
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.
Usually this test name is fine, but in this file, many tests for other errors have names of the following form: 'event bus xx cannot ...'
, so could you please match them?
@go-to-k |
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.
Thanks!
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.
Thanks for the PR! Just left one comment regarding the token check.
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.
Giving it a second look-over, everything seems fine! Just one minor nit about the phrasing of the docstring.
Co-authored-by: Leonardo Gama <51037424+Leo10Gama@users.noreply.github.com>
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.
Committing the suggested change to the wording and approving per @Leo10Gama's review.
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). |
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). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
N/A
Reason for this change
The change introduces the
description
property to theEventBus
Description of changes
description
property forEventBusProps
, which was missing in the L2 construct.Description of how you validated changes
I Added a unit test for eventBus and added the
description
property in the integration tests.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license