Skip to content

refactor(storage): reduce indirection on restoring uploads#7283

Merged
coryan merged 2 commits intogoogleapis:mainfrom
coryan:refactor-storage-simplify-restore-resumable-session-pr2
Sep 8, 2021
Merged

refactor(storage): reduce indirection on restoring uploads#7283
coryan merged 2 commits intogoogleapis:mainfrom
coryan:refactor-storage-simplify-restore-resumable-session-pr2

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Sep 7, 2021

The RawClient::RestoreResumableUpload() function is not really used,
and it lacks a parameter with the original request (which may have set
options, such as custom headers). With this cleanup the function is
deprecated. This enables a change to fully support standard parameters
when restoring resumable uploads.


This change is Reviewable

The `RawClient::RestoreResumableUpload()` function is not really used,
and it lacks a parameter with the original request (which may have set
options, such as custom headers). With this cleanup the function is
deprecated. This enables a change to fully support standard parameters
when restoring resumable uploads.
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Sep 7, 2021
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 7, 2021
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: 0ad249d79ff369c805af78ab2304f1afea525ee2

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 7, 2021

Codecov Report

Merging #7283 (0d6b9ec) into main (04b883a) will increase coverage by 0.01%.
The diff coverage is 93.10%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7283      +/-   ##
==========================================
+ Coverage   94.33%   94.34%   +0.01%     
==========================================
  Files        1317     1318       +1     
  Lines      114796   114798       +2     
==========================================
+ Hits       108293   108310      +17     
+ Misses       6503     6488      -15     
Impacted Files Coverage Δ
google/cloud/storage/internal/curl_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/grpc_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/hybrid_client.cc 93.85% <ø> (+3.18%) ⬆️
google/cloud/storage/internal/hybrid_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/logging_client.cc 99.28% <ø> (+1.40%) ⬆️
google/cloud/storage/internal/logging_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/raw_client.cc 0.00% <0.00%> (ø)
google/cloud/storage/internal/raw_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/retry_client.cc 100.00% <ø> (+1.31%) ⬆️
google/cloud/storage/internal/retry_client.h 100.00% <ø> (ø)
... and 16 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 04b883a...0d6b9ec. Read the comment docs.

@coryan coryan marked this pull request as ready for review September 7, 2021 21:04
@coryan coryan requested a review from a team September 7, 2021 21:04
auto session = absl::make_unique<CurlResumableUploadSession>(
shared_from_this(), request, session_id);
auto response = session->ResetSession();
if (response.status().ok()) {
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.

Nit: Do we prefer to say this over just if (response)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we do. Thanks.

@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: 0d6b9ecb8e47950862c042fad1e13244d22d7353

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@coryan coryan merged commit 8c6ff70 into googleapis:main Sep 8, 2021
@coryan coryan deleted the refactor-storage-simplify-restore-resumable-session-pr2 branch September 8, 2021 13:21
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. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants