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

Remove use of ObjectInfo in S3 client HeadObject response #1058

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

dannycjones
Copy link
Contributor

Description of change

Before this change, head_object and list_objects shared the same struct ObjectInfo. The data we returned from these two operations was common, and so it worked well. Now we want to add information that is specific to the two operations.

This change leaves ObjectInfo in place for list_objects, aligning with the Object structure in the Rest XML API.

This change is in preparation to surfacing checksum algorithm from ListObjectsV2 requests as well as surfacing checksum values in HeadObject requests.

Relevant issues: N/A

Does this change impact existing behavior?

There is no breaking changes to Mountpoint's file system semantics.

This is a breaking change to direct consumers of Mountpoint's S3 client. The head_object return type HeadObjectResult will no longer have an object field of type ObjectInfo. Accesses to those fields should now be on the HeadObjectResult struct itself.

Does this change need a changelog entry in any of the crates?

Yes. A change log entry is added to the mountpoint-s3-client crate.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

@dannycjones dannycjones force-pushed the decouple-object-info-headobject branch from 65832aa to 5871746 Compare October 22, 2024 14:16
@dannycjones dannycjones force-pushed the decouple-object-info-headobject branch from 5871746 to 2592dad Compare October 22, 2024 14:18
@dannycjones dannycjones enabled auto-merge October 22, 2024 14:20
@dannycjones dannycjones force-pushed the decouple-object-info-headobject branch from 2592dad to fefd08b Compare October 22, 2024 14:36
@dannycjones dannycjones temporarily deployed to PR integration tests October 22, 2024 14:36 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 22, 2024 14:36 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 22, 2024 14:36 — with GitHub Actions Inactive
@dannycjones dannycjones marked this pull request as draft October 23, 2024 12:39
auto-merge was automatically disabled October 23, 2024 12:39

Pull request was converted to draft

@dannycjones dannycjones force-pushed the decouple-object-info-headobject branch from 68d2190 to bf31709 Compare October 23, 2024 12:45
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:45 — with GitHub Actions Inactive
@dannycjones dannycjones force-pushed the decouple-object-info-headobject branch from bf31709 to 6ba3323 Compare October 23, 2024 12:52
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests October 23, 2024 12:52 — with GitHub Actions Inactive
@dannycjones dannycjones marked this pull request as ready for review October 23, 2024 12:59
@dannycjones dannycjones requested a review from passaro October 23, 2024 12:59
@dannycjones dannycjones enabled auto-merge October 23, 2024 12:59
Copy link
Contributor

@passaro passaro left a comment

Choose a reason for hiding this comment

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

LGTM

@dannycjones dannycjones added this pull request to the merge queue Oct 24, 2024
Merged via the queue into awslabs:main with commit 4dc8e7d Oct 24, 2024
23 checks passed
@dannycjones dannycjones deleted the decouple-object-info-headobject branch October 24, 2024 08:15
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