GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Storage : Add support for Archive storage class by athakor · Pull Request #6685 · googleapis/google-cloud-java

Conversation

@athakor

@athakor athakor commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

Fixes #6578

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
athakor added 2 commits November 4, 2019 01:47
@athakor
add 'ARCHIVE' storage class
383f6d7
@athakor
Modified testcase
d2bcd57
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 4, 2019
@athakor
athakor requested review from JesseLovelace, chingor13 and tritone November 4, 2019 12:08
tritone
tritone reviewed Nov 6, 2019
View reviewed changes

@tritone tritone left a comment

Copy link
Copy Markdown
Contributor

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.

Overall looks good, just one documentation thing to change.

Also, the feature is not publicly available yet, so please hold off on merging until I have approval on that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageClass.java Outdated
/** Standard storage class. */
public static final StorageClass STANDARD = type.createAndRegister("STANDARD");

/** Archive storage class. */

@tritone tritone Nov 6, 2019

Copy link
Copy Markdown
Contributor

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.

Regional and Multi-regional are also considered deprecated now. Let's add that to the comment for each of those and also add a link to https://cloud.google.com/storage/docs/storage-classes which has the most up-to-date information.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@athakor athakor Nov 7, 2019

Copy link
Copy Markdown
Contributor Author

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...loud-clients/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java
.setNotFoundPage(NOT_FOUND_PAGE)
.setLocation(LOCATION)
.setLocationType(LOCATION_TYPE)
.setStorageClass(ARCHIVE_STORAGE_CLASS)

@tritone tritone Nov 6, 2019

Copy link
Copy Markdown
Contributor

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.

Is it typical to set all of these options while creating a bucket in Java? Just curious.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@athakor athakor Nov 7, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

No need to set all of these option but yes bucket name is required parameter see the api doc and example of create bucket

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tritone tritone Nov 11, 2019

Copy link
Copy Markdown
Contributor

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.

Okay, sounds good.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@athakor
Fix review changes
2afbbf7
@codecov

codecov Bot commented Nov 7, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #6685 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6685      +/-   ##
============================================
+ Coverage     46.35%   46.36%   +<.01%     
- Complexity    28005    28018      +13     
============================================
  Files          2613     2614       +1     
  Lines        288090   288195     +105     
  Branches      33783    33795      +12     
============================================
+ Hits         133534   133610      +76     
- Misses       144312   144334      +22     
- Partials      10244    10251       +7
Impacted Files Coverage Δ Complexity Δ
...in/java/com/google/cloud/storage/StorageClass.java 88.23% <100%> (+0.73%) 3 <0> (ø) ⬇️
...google/cloud/bigquery/StandardTableDefinition.java 86.76% <0%> (-5.43%) 14% <0%> (ø)
...main/java/com/google/cloud/storage/BucketInfo.java 83.18% <0%> (-1.19%) 84% <0%> (ø)
...a/com/google/cloud/bigquery/RangePartitioning.java 75% <0%> (ø) 9% <0%> (?)
...com/google/cloud/bigquery/QueryParameterValue.java 72.72% <0%> (+0.35%) 46% <0%> (ø) ⬇️
...om/google/cloud/bigquery/LoadJobConfiguration.java 90.15% <0%> (+0.44%) 52% <0%> (+2%) ⬆️
...m/google/cloud/bigquery/QueryJobConfiguration.java 77.14% <0%> (+0.74%) 56% <0%> (+2%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8da3df...c2e02c8. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@athakor

athakor commented Nov 7, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@tritone PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tritone
tritone reviewed Nov 11, 2019
View reviewed changes
Comment thread ...-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageClass.java Outdated
* Regional storage class (deprecated).
* See:https://cloud.google.com/storage/docs/per-object-storage-class for details
*/
public static final StorageClass REGIONAL = type.createAndRegister("REGIONAL");

@tritone tritone Nov 11, 2019

Copy link
Copy Markdown
Contributor

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.

Let's re-sort these as follows so that the non-deprecated classes come first: Standard, Nearline, Coldline, Archive, Regional, Multi-Regional, Durable Reduced Availability

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@athakor athakor Nov 12, 2019

Copy link
Copy Markdown
Contributor Author

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageClass.java Outdated
/** Multi-regional storage class. */
/**
* Multi-regional storage class (deprecated).
* See:https://cloud.google.com/storage/docs/per-object-storage-class for details

@tritone tritone Nov 11, 2019

Copy link
Copy Markdown
Contributor

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.

This link redirects to https://cloud.google.com/storage/docs/storage-classes , so let's use that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@athakor athakor Nov 12, 2019

Copy link
Copy Markdown
Contributor Author

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...loud-clients/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java
.setNotFoundPage(NOT_FOUND_PAGE)
.setLocation(LOCATION)
.setLocationType(LOCATION_TYPE)
.setStorageClass(ARCHIVE_STORAGE_CLASS)

@tritone tritone Nov 11, 2019

Copy link
Copy Markdown
Contributor

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.

Okay, sounds good.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@athakor
Fix review changes
c2e02c8
@athakor

athakor commented Nov 12, 2019

Copy link
Copy Markdown
Contributor Author

@tritone all the comment have been addressed PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tritone

tritone commented Nov 13, 2019

Copy link
Copy Markdown
Contributor

@tritone all the comment have been addressed PTAL

Looks good to me! I will let you know when it's okay to merge (waiting until feature has been enabled without a flag).

athakor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chingor13 chingor13 added the api: storage Issues related to the Cloud Storage API. label Dec 6, 2019
@tritone

tritone commented Dec 20, 2019

Copy link
Copy Markdown
Contributor

This PR should no longer be merged because of the repo split. @athakor , could you re-create this PR in https://github.com/googleapis/java-storage ? Please let me know if you run into any issues.

Also, apologies for the delay on this-- we are now looking to merge the first week of Jan.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tritone tritone mentioned this pull request Dec 20, 2019
Add support for Archive storage class googleapis/java-storage#4
Closed
@athakor

athakor commented Dec 27, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

This PR should no longer be merged because of the repo split. @athakor , could you re-create this PR in https://github.com/googleapis/java-storage ? Please let me know if you run into any issues.

Also, apologies for the delay on this-- we are now looking to merge the first week of Jan.

done PR : googleapis/java-storage#19

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@athakor athakor closed this Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JesseLovelace JesseLovelace Awaiting requested review from JesseLovelace
@chingor13 chingor13 Awaiting requested review from chingor13
1 more reviewer
@tritone tritone tritone left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Storage: Add support for Archive storage class

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@athakor @tritone @chingor13 @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.