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

Updated S3.Event #195

Merged
merged 18 commits into from
Apr 15, 2021
Merged

Updated S3.Event #195

merged 18 commits into from
Apr 15, 2021

Conversation

mufumade
Copy link
Contributor

Motivation:

#194

Modifications:

Changed the S3.Event object size field to an optional due to the missing field on a s3:ObjectRemoved:* event
Added one additional test to check propper json decoding

Result:

s3 event json will now decode successfully even if aws does not populate the size field.

…ing field on a s3:ObjectRemoved:* event

Added one additional test to check propper json decoding
@swift-server-bot
Copy link

Can one of the admins verify this patch?

5 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Thanks for going ahead! Two small suggestions.

Sources/AWSLambdaEvents/S3.swift Outdated Show resolved Hide resolved
Tests/AWSLambdaEventsTests/S3Tests.swift Show resolved Hide resolved
mufumade and others added 2 commits March 13, 2021 15:25
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
@mufumade
Copy link
Contributor Author

@fabianfett Thanks for the feedback!

@fabianfett
Copy link
Member

@swift-server-bot test this please

@fabianfett
Copy link
Member

@mufumade Would you mind running swiftformat . once in the project folder, to please the soundness check?

@mufumade
Copy link
Contributor Author

So this was a bit strange. At first swiftformat changed like 30 files although I only changed 2. On the second attempt swiftformat changed only the comment you provided with your suggestions. I hope it's all fine now.

@fabianfett
Copy link
Member

@mufumade oh. sorry. it looks to me like our swiftformat is a little out of date. I'm updating it right now and will post another pr. Once that swiftformat pr has landed, we update this pr and run swiftformat again, which then should only affect your changed files. Sorry for the hassle and confusion.

@fabianfett
Copy link
Member

For reference: #196

@fabianfett
Copy link
Member

@mufumade Would you mind resolving the merge conflicts and running swiftformat again? After that we should be ready to merge.

@tomerd
Copy link
Contributor

tomerd commented Mar 28, 2021

@swift-server-bot test this please

@mufumade
Copy link
Contributor Author

@fabianfett have a look at the newest commit.

@fabianfett
Copy link
Member

@swift-server-bot test this please

@tomerd tomerd added this to the 0.5.0 milestone Mar 29, 2021
Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

LGTM. Some internal acls have been removed. Do we want this? Should we disable redundantextensionacl? @tomerd wdyt?

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift Outdated Show resolved Hide resolved
Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

@mufumade I'm so sorry for all this swiftformat . confusion. Would you mind merging the current main branch and re-adding the dropped internal acls? I hope this is the last time...

@fabianfett
Copy link
Member

@mufumade 👋 Ping: Are you still interested in getting this merged? I would love to see this land...

@mufumade
Copy link
Contributor Author

Oh. Sorry for the delay. I'll get started right away.

@mufumade
Copy link
Contributor Author

@fabianfett So i merged the current main into my branch, ran swiftformat again to check but I am not quite sure what you mean by re-adding the dropped internal acls?

Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

@mufumade I have added suggestions to re-add all the internal ACL that were dropped by swiftformat before. Just add those and we should be ready to go :) Thanks! And sorry for all the confusion.

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift Outdated Show resolved Hide resolved
Sources/AWSLambdaRuntimeCore/Utils.swift Outdated Show resolved Hide resolved
Sources/AWSLambdaRuntimeCore/LambdaRunner.swift Outdated Show resolved Hide resolved
Sources/AWSLambdaRuntimeCore/LambdaConfiguration.swift Outdated Show resolved Hide resolved
Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift Outdated Show resolved Hide resolved
Sources/AWSLambdaEvents/Utils/HTTP.swift Outdated Show resolved Hide resolved
mufumade and others added 9 commits April 15, 2021 12:43
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
Co-authored-by: Fabian Fett <fabianfett@apple.com>
@fabianfett
Copy link
Member

@swift-server-bot test this please

@fabianfett
Copy link
Member

@swift-server-bot test this please

@tomerd tomerd merged commit edbfa79 into swift-server:main Apr 15, 2021
@mufumade mufumade deleted the s3_Event_Incorrect branch April 15, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants