fix: resumable uploads should respect autoRetry & multipart uploads should correctly use preconditions#1779
Conversation
….com:googleapis/nodejs-storage into shaffeeullah/gcs-resumable-upload-refactor-1
…feeullah/gcs-resumable-upload-refactor-1
ddelgrosso1
left a comment
There was a problem hiding this comment.
LGTM. Thank you for refactoring this. Since I contributed a few minor things you may want another set of eyes to take a look as well.
Good call. @danielbankhead can you pls review as well? |
| instanceRetryValue?: boolean; | ||
| instancePreconditionOpts?: PreconditionOptions; |
There was a problem hiding this comment.
Any reason we want these public? I usually default to private to 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 readonly here.
There was a problem hiding this comment.
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.
I am ok with this. Think I removed it to try out something and never put it back.
Start taking steps toward completing #1743 & bug fixes along the way