-
Notifications
You must be signed in to change notification settings - Fork 523
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
feat(services/gcs): Impl content-encoding support for GCS stat, write and presign #5610
base: main
Are you sure you want to change the base?
Conversation
Content-Encoding for presign has not been tested yet though
Do I need to add some other tests? So far I have tested this with my own program and |
We have integration tests for gcs, so it should fine as is. |
I just realized that although I've added support for I wonder if me adding /// Set the content encoding of the operation
pub fn content_encoding(self, v: &str) -> Self {
self.map(|(args, dur)| (args.with_content_encoding(v), dur))
} |
It's looks fine to me. Feel free to add in this PR directly. |
I will add it, but I'm not able to test it, because the Gcs service ACL logic is problematic, and I get an error like this when testing:
It turns out that the XML API predefined ACLs uses kebab casing instead of camel casing, and thus https://cloud.google.com/storage/docs/access-control/lists#predefined-acl |
Okay, I tested In my opinion this PR is ready to be merged |
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.
Mostly LGTM
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.
Thank you @wlinna for working on this. It's really happy to work with you.
Thanks for making it easy to contribute :) |
Which issue does this PR close?
Closes #5607
Rationale for this change
Explained in the issue
What changes are included in this PR?
content_encoding
support for Gcs forstat
,write
andpresign
.stat_has_content_encoding: true
andwrite_with_content_encoding: true
to capabilities ofGcsBackend
contentEncoding
check totest_deserialize_get_object_json_response
NOTE: I haven't tested
presign
yet with these changes yet, which is why I addedWIP
.Are there any user-facing changes?
If the users were relying on
Gcs
service to ignorecontent_encoding
, then they might have to update their code.