-
Notifications
You must be signed in to change notification settings - Fork 443
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: add support for ARCHIVE storage class #2428
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2428 +/- ##
============================================
+ Coverage 92.47% 92.55% +0.07%
- Complexity 4477 4504 +27
============================================
Files 312 312
Lines 13416 13496 +80
============================================
+ Hits 12407 12491 +84
+ Misses 1009 1005 -4
Continue to review full report at Codecov.
|
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.
Test looks good, had a comment about the documentation piece. Also, please wait to merge this as the feature is still behind a flag (I will give a heads up when it's ready in a couple weeks).
@@ -90,7 +90,8 @@ public function __construct(array $lifecycle = []) | |||
* @type string[] $matchesStorageClass Objects having any of the storage | |||
* classes specified by this condition will be matched. Values | |||
* include `"MULTI_REGIONAL"`, `"REGIONAL"`, `"NEARLINE"`, |
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.
It would be good to re-sort this list as follows: STANDARD, NEARLINE, COLDLINE, ARCHIVE. Then note that MULTI_REGIONAL, REGIONAL, DURABLE_REDUCED_AVAILABILITY are legacy (ie not recommended for new implementations). Should look similar to the comment here in the ruby client library, plus the addition of ARCHIVE: https://github.com/googleapis/google-cloud-ruby/blob/master/google-cloud-storage/lib/google/cloud/storage/bucket.rb#L358 . You can also add a link to the docs about storage classes here (if you don't think it's too much info for this context): https://cloud.google.com/storage/docs/storage-classes
Same thing for StorageClient.php
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.
Done!
Looks good to me; will give approval once the feature is no longer behind a flag. Also needs approval from a repo owner. Thanks! |
We are clear to merge this now with a plan to release the change between 1/2 and 1/8. It looks like there are two remaining things now to be resolved:
Let me know if either of you see any issue with this timeline. |
@tritone just rebased this, should fix the coverage check. |
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.
Looks good! Just some small notes.
Thanks @dwsupplee. Went back to including the double-quotes, since I think that's more in line with the general formatting we've preferred til now. |
Closes #2425
cc @tritone for review.