-
Notifications
You must be signed in to change notification settings - Fork 146
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(parser): set etag optional for delete object notifications #2429
Conversation
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 thought we discussed that we'd break up the schemas into separate ones for each S3 event notification, why the change?
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.
Just saw your comment under the issue, would have been useful to have it as part of the PR body.
It would really be helpful, and also set an example for external contributor, if we maintainers took time to write informative descriptions so that the PR are self-contained and can be evaluated as standalone.
Having a "fixes #nnn" doesn't necessarily explain the choices made, and when we go back to the PRs at release or after some time we might not know immediately the why and what behind the change.
Quality Gate passedIssues Measures |
Description of your changes
In this PR we set etag to optional. We initially discussed in #2410 that it'd be best to split s3 event notification schema into separate objects for event types (delete, create, update, lifecycle, etc) similar to how
@types/aws-lambda
does it.However
@types/aws-lambda
is not correct for the s3 notification, i.e. etag is a required field inDeleteObject
events, thus we can't rely on them. In addition, splitting the event types would introduce either redundancy between the events of the common fields, or additional complexity if we decide to split them based on base and specific fields. It'd be hard to read them.Related issues, RFCs
Issue number: closes #2410
Checklist
Breaking change checklist
Is it a breaking change?: NO
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.