-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Support Additional Parameters for S3 UploadPartCopy #13105
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
Support Additional Parameters for S3 UploadPartCopy #13105
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.
Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
3098db5
to
19a1e96
Compare
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.
This is very nice, great job! 🚀 I like that you went a step further than what we already had for CopyObject
.
Thanks for the great PR description too.
I only have a few comments, I gave it a try and could see that AWS would accept IfMatch
and IfNoneMatch
values that wouldn't be quoted, and this would fail against this implementation.
I also wonder if we should add the case you hit when testing CopySourceIfUnmodifiedSince
, with the date in the future passing?
One other question, what do you mean by:
Additional parity tests to test the new functionality against older functionality e.g. with CopySource.
Once the comments are addressed, I believe we're good to merge! Nice job 🚀
Thank you for the review @bentsku ! You've been a great help during the process - I'll go ahead and make the following changes:
Also I completely misspoke (sorry!), I meant to say test the functionality I added against currently supported fields such as |
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.
LGTM! Awesome, thanks for addressing the comments I had, this looks good! I only have a very minor nitpick regarding the _
assignment that is not needed, but otherwise everything is all good!
Thanks for adding so many test cases, the functionality is very well covered!
Oops, @aidehn it seems the linting step is failing, could you fix it so the PR would be in a mergeable state? Thank you 🙏 |
Motivation
Resolves #13106
UploadPartCopy
functionality. This was achieved by adding support for the following conditionals:CopySourceIfMatch
,CopySourceIfModifiedSince
,CopySourceIfNoneMatch
andCopySourceIfUnmodifiedSince
Changes
S3Provider.upload_part_copy
method to handle the above mentioned conditions.Testing
Future Changes
CopySource
.