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

feat(storage): add Autoclass support #6828

Merged
merged 13 commits into from Nov 1, 2022
Merged

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Oct 7, 2022

Add support for Autoclass, which allows for automatic selection of the best storage class based on object access patterns

Fixes #6592

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the Cloud Storage API. labels Oct 7, 2022
@cojenco cojenco marked this pull request as ready for review October 7, 2022 22:22
@cojenco cojenco requested review from a team as code owners October 7, 2022 22:22
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Nice start on this Cathy!

storage/bucket.go Show resolved Hide resolved
storage/bucket.go Outdated Show resolved Hide resolved
storage/bucket.go Outdated Show resolved Hide resolved
storage/bucket.go Outdated Show resolved Hide resolved
@@ -60,6 +60,7 @@ func TestBucketAttrsToRawBucket(t *testing.T) {
Encryption: &BucketEncryption{DefaultKMSKeyName: "key"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure we have test coverage for the proto converters as well. Also, you should make an integration test to cover the roundtrip with the service (both create and update).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep was meaning to write an integration test... also added 2 tests for the proto converters. @tritone PTAL, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these additional tests; didn't realize we were missing these unit tests for proto converter methods. We should consider auditing and filling others in if they are missing. @noahdietz @BrennaEpp

@tritone tritone added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 11, 2022
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Oct 11, 2022
@cojenco cojenco requested a review from tritone October 14, 2022 21:36
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

One test comment, otherwise LGTM pending feature release.

storage/bucket.go Show resolved Hide resolved
storage/bucket_test.go Outdated Show resolved Hide resolved
@cojenco cojenco removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 1, 2022
@BrennaEpp BrennaEpp merged commit f7c7f41 into googleapis:main Nov 1, 2022
tritone pushed a commit to GoogleCloudPlatform/golang-samples that referenced this pull request Nov 7, 2022
Fixes #2707

Requires googleapis/google-cloud-go#6828
Tests pass locally with library feature support
Cori1109 added a commit to Cori1109/golang-samples that referenced this pull request Jan 9, 2023
Fixes #2707

Requires googleapis/google-cloud-go#6828
Tests pass locally with library feature support
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 Cloud Storage API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: add support for Autoclass
3 participants