Skip to content

Conversation

@sydney-munro
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@sydney-munro sydney-munro requested a review from a team as a code owner May 23, 2022 18:29
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels May 23, 2022
@sydney-munro sydney-munro marked this pull request as draft May 23, 2022 18:29
Copy link
Collaborator

@BenWhitehead BenWhitehead left a comment

Choose a reason for hiding this comment

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

Overall looks pretty good. A few changes about base64 handling need to be addressed, but other than that looks pretty good.

s ->
BaseEncoding.base64()
.encode(Hashing.md5().hashBytes(s.getBytes()).asBytes())))
.as(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can be done in a later PR if you feel like it.

This will need to changes from a combine of two arbitraries, to a single arbitrary which yields both crc32c and md5 values.

We want to ensure the value for those fields is generated base on the same bytes in the general case. Later we can investigate if we want to add an edge case where the md5 does not correspond to crc32c of the same input data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah I see makes sense. I will look into it.

@sydney-munro sydney-munro changed the title WIP Blob/Object get feat: Blob/Object get May 24, 2022
@sydney-munro sydney-munro requested a review from BenWhitehead May 24, 2022 21:35
@sydney-munro sydney-munro self-assigned this May 24, 2022
@sydney-munro sydney-munro marked this pull request as ready for review May 24, 2022 21:36
@BenWhitehead BenWhitehead merged commit 2d060cd into feat/grpc-storage May 25, 2022
@BenWhitehead BenWhitehead deleted the get-object branch May 25, 2022 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants