This repository was archived by the owner on Mar 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 396
fix: resumable uploads should respect autoRetry & multipart uploads should correctly use preconditions #1779
Merged
ddelgrosso1
merged 22 commits into
main
from
shaffeeullah/gcs-resumable-upload-refactor-1
Feb 16, 2022
Merged
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f6c9422
chore: began refactoring gcs-resumable-upload
shaffeeullah d3eaafc
🦉 Updates from OwlBot
gcf-owl-bot[bot] 295024e
fix: consistent defaults
shaffeeullah 212b59a
Merge branch 'shaffeeullah/gcs-resumable-upload-refactor-1' of github…
shaffeeullah 9d3cc5e
fixed tests
shaffeeullah 7401cb2
gcs-resumable-upload should use retry interface from storage
shaffeeullah fd4df2b
🦉 Updates from OwlBot
gcf-owl-bot[bot] 54c8b8f
refactored code
shaffeeullah bf4d81f
🦉 Updates from OwlBot
gcf-owl-bot[bot] 224b520
fixed tests
shaffeeullah c379e18
create shallow copy of retry options before passing to resumable upload
ddelgrosso1 402ad7e
fix unit test with retry options and resumable upload
ddelgrosso1 a79c079
🦉 Updates from OwlBot
gcf-owl-bot[bot] b934cfb
trying to fix build issues that i cannot repro
shaffeeullah b81b6d4
tried changing paginator version
shaffeeullah 1a3bbad
changed version back
shaffeeullah 39e8ed5
tried changing paginator version
shaffeeullah 1ca00cf
fix resumable upload conformance test
ddelgrosso1 384447a
Merge branch 'main' of github.com:googleapis/nodejs-storage into shaf…
shaffeeullah ed62029
fixed bug in preconditions
shaffeeullah 720bcf7
update paginator to 3.0.7
ddelgrosso1 d9d32fc
make instanceRetryValue private
shaffeeullah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Any reason we want these
public? I usually default toprivateto avoid breaking changes in the future (say we want to change the type or variable name).If we want them public, but we don't want anyone to modify, we could use
readonlyhere.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.
changed instanceRetryValue back to private. instancePreconditionOpts needs to be public so we can modify it for the tests. @ddelgrosso1 are you okay with this? just want to make sure we very intentionally make this decision.
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.
I am ok with this. Think I removed it to try out something and never put it back.