Skip to content

Returned ETag for uploaded entities#244

Open
adamsc64 wants to merge 1 commit into
boto:developfrom
adamsc64:ca_etag_response_put_and_multipart
Open

Returned ETag for uploaded entities#244
adamsc64 wants to merge 1 commit into
boto:developfrom
adamsc64:ca_etag_response_put_and_multipart

Conversation

@adamsc64

@adamsc64 adamsc64 commented Jun 26, 2022

Copy link
Copy Markdown

Summary of Changes

  • If 'ETag' is present in service response, return it inside a metadata dictionary for both tasks.CompleteMultipartUploadTask and upload.PutObjectTask.
  • This change will allow integrations which rely on these call sites to access the ETag.

Background

Design decisions

  • I was unsure how to model the entity which would be returning the ETag information. I chose to follow the pattern I found inside upload.UploadPartTask, i.e. a pattern already in the codebase. This pattern returns the ETag inside an outer metadata dictionary.
  • Let me know if I should use another strategy, or if this general approach to the problem is problematic for some reason.

- If 'ETag' is present in service response, return it inside a metadata
  dictionary for both `tasks.CompleteMultipartUploadTask` and
  `upload.PutObjectTask`.
- This change will allow integrations which rely on these call sites to
  access the ETag.
@adamsc64

adamsc64 commented Jul 3, 2022

Copy link
Copy Markdown
Author

@kyleknap, I don't know what you think of these changes. Can I get a review? Also open to suggestions if you think someone else is better for the moment. Thanks so much.

@adamsc64

adamsc64 commented Aug 1, 2022

Copy link
Copy Markdown
Author

Hi @kyleknap. New contributor to boto and s3transfer here! Wondering what is the correct way to officially request a review of this by the s3transfer team. Thanks!

@cfxegbert

Copy link
Copy Markdown

It could be nice to return the versionId (optionally None) field also.

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.

2 participants