Skip to content

Storage: Fix locationType field is added in bucket - #5725

Merged
JesseLovelace merged 5 commits into
googleapis:masterfrom
abhinav-qlogic:api-storage-5442
Jul 17, 2019
Merged

Storage: Fix locationType field is added in bucket#5725
JesseLovelace merged 5 commits into
googleapis:masterfrom
abhinav-qlogic:api-storage-5442

Conversation

@abhinav-qlogic

Copy link
Copy Markdown

Fixes#5442

Due to LocationType is a read-only field, So Have not added test case specific for dual-region or region locationType.

@abhinav-qlogic
abhinav-qlogic requested a review from a teamJuly 11, 2019 06:46
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 11, 2019
@pmakanipmakani added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2019
@yoshi-kokoroyoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jul 11, 2019
@codecov

codecovBot commented Jul 11, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5725 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@## master #5725 +/- ##
============================================
+ Coverage 47.08% 47.09% +0.01% - Complexity 24995 25066 +71 
============================================
Files 2382 2389 +7 Lines 259281 259754 +473 Branches 29370 29406 +36 ============================================
+ Hits 122075 122331 +256 - Misses 128263 128462 +199 - Partials 8943 8961 +18
Impacted FilesCoverage ΔComplexity Δ
...src/main/java/com/google/cloud/storage/Bucket.java81.81% <100%> (+0.13%)34 <0> (ø)⬇️
...main/java/com/google/cloud/storage/BucketInfo.java84.86% <100%> (+0.26%)81 <1> (+3)⬆️
...n/java/com/google/cloud/bigquery/BigQueryImpl.java66.78% <0%> (-13.22%)57% <0%> (ø)
...e/cloud/bigquery/testing/RemoteBigQueryHelper.java61.4% <0%> (-1.1%)6% <0%> (ø)
.../main/java/com/google/cloud/bigquery/BigQuery.java77.55% <0%> (-0.9%)0% <0%> (ø)
.../google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java5.23% <0%> (-0.87%)2% <0%> (ø)
...gle/cloud/bigtable/data/v2/BigtableDataClient.java89.58% <0%> (ø)32% <0%> (ø)⬇️
...bigtable/admin/v2/BigtableInstanceAdminClient.java99.13% <0%> (ø)44% <0%> (ø)⬇️
...ud/bigtable/admin/v2/BigtableTableAdminClient.java80% <0%> (ø)27% <0%> (ø)⬇️
...main/java/com/google/cloud/bigquery/RoutineId.java76.92% <0%> (ø)13% <0%> (?)
... and 8 more

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 ab6a85b...50c2d21. Read the comment docs.

@chingor13chingor13 changed the title Storage:Fix locationType field is added in bucketStorage: Fix locationType field is added in bucketJul 11, 2019
}

@Override
public Builder setLocationType(String locationType) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be a private setLocationType due to read-only.

}

@Override
public Builder setLocationType(String locationType) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Private here as well.

@JesseLovelace
JesseLovelace self-requested a review July 11, 2019 23:36
@JesseLovelaceJesseLovelace added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2019

@damienlogdamienlog left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicate of #

@frankyn

frankyn commented Jul 17, 2019 via email

Copy link
Copy Markdown
Contributor

@JesseLovelace
JesseLovelace merged commit ec43a94 into googleapis:masterJul 17, 2019
@JesseLovelaceJesseLovelace mentioned this pull request Jul 17, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Storage: Support bucket.locationType

7 participants

@abhinav-qlogic@frankyn@JesseLovelace@damienlog@googlebot@pmakani@yoshi-kokoro