chore!: gaxios rebase node 18#2569
Conversation
…ckets (googleapis#2566) * Adds support for the restore token feature * description fix * lint fix * fetch softDeleted bucket list & details fetch softDeleted bucket list & details * initial commit for bucket restore initial commit for bucket restore * fix missing license headers fix missing license headers * lint fix * test case bug fix * added restore bucket unit test cases * added restore bucket system test added restore bucket system test * lint fix * format format * system test fix
src/iam.ts
Outdated
| } | ||
|
|
||
| this.request_( | ||
| // eslint-disable-next-line @typescript-eslint/no-floating-promises |
There was a problem hiding this comment.
Why is this disable necessary? Looks like errors are being handled in the callback. I'd rather we not add these disables if possible.
There was a problem hiding this comment.
Your concern about the disable is valid. The linter indicates that because this.storageTransport.makeRequest likely returns a Promise, we must handle potential rejections. Even though we have a callback, the Promise itself might reject, and we need to account for that. Therefore, we are suppressing the warning.
There was a problem hiding this comment.
Interesting... this must be a more recent linter change as it didn't complain when I originally wrote storage-transport.ts. Maybe it is worth revisiting the signature / implementation for storage-transport.request. Having to add a disable every time we use a callback to that function is not ideal and has a bit of a code smell to it.
There was a problem hiding this comment.
I've addressed the issue with the storage-transport.request function and the related linter warnings. Could you please review these changes?
src/iam.ts
Outdated
| } | ||
|
|
||
| this.request_( | ||
| // eslint-disable-next-line @typescript-eslint/no-floating-promises |
There was a problem hiding this comment.
Same comment about this disable.
* chore: fix type errors in build * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix docs links --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
src/acl.ts
Outdated
|
|
||
| if (resp.items) { | ||
| results = resp.items.map(this.makeAclObject_); | ||
| if ((data as any).items) { |
There was a problem hiding this comment.
We should be able to pass a type to makeRequest and avoid an any cast here. We can then remove the linter disable for this file.
src/iam.ts
Outdated
| queryParameters: req as unknown as StorageQueryParameters, | ||
| }) | ||
| .then(({data, resp}) => { | ||
| const availablePermissions = Array.isArray((data as any).permissions) |
There was a problem hiding this comment.
If possible let's try and avoid these any casts and disabling the any linter rules.
|
Warning: This pull request is touching the following templated files:
|
|
Here is the summary of changes. You are about to add 3 region tags.
This comment is generated by snippet-bot.
|
|
Is this good to merge @ddelgrosso1 ? |
|
@danielduhh yes, this is pointed at the node 18 staging branch. Safe to merge while the conformance tests are fixed. |
* chore(cleanup)!: Remove teeny-request in favor of gaxios/authclient * remove service class and associated tests * modify service-object and associated sub classes to use storage transport * begin refactoring classes to use storage-transport * finish initial refactor of classes * fix compilation errors * add header to storage-transport.ts * fix service-object unit tests * fix common-util tests * fix acl tests * fix channel tests * fix headers tests * fix iam tests * fix index tests * fix notification tests * remove teeny-request and retry request from deps * fix arguments and urls of create bucket * fix multipart upload urls * fix stream handling in createReadStream * feat: add ability to configure and utilize soft-delete and restore buckets (googleapis#2566) * Adds support for the restore token feature * description fix * lint fix * fetch softDeleted bucket list & details fetch softDeleted bucket list & details * initial commit for bucket restore initial commit for bucket restore * fix missing license headers fix missing license headers * lint fix * test case bug fix * added restore bucket unit test cases * added restore bucket system test added restore bucket system test * lint fix * format format * system test fix * fix * chore(cleanup)!: Remove teeny-request in favor of gaxios/authclient * remove service class and associated tests * modify service-object and associated sub classes to use storage transport * begin refactoring classes to use storage-transport * finish initial refactor of classes * fix compilation errors * add header to storage-transport.ts * fix service-object unit tests * fix common-util tests * fix acl tests * fix channel tests * fix headers tests * fix iam tests * fix index tests * fix notification tests * remove teeny-request and retry request from deps * fix arguments and urls of create bucket * fix multipart upload urls * fix stream handling in createReadStream * fix compilation errors * fix lint issues fix lint issues * test case fix * lint fix lint fix * lint and test case fix lint and test case fixes * chore(main): release 7.15.0 (googleapis#2568) * chore(main): release 7.15.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * docs: replace reference docs link with RAD (googleapis#2571) * fix bucket tests * fix(getFiles): add nextPageToken to fields for autoPaginate (googleapis#2570) * fix storage-transport test * fix file tests * conformance test fix * fix error * fix buffer error * comment failed conformance test * comments addressed * refactoring the storage-transport classes to utilize Promises * chore: fix type errors in build (googleapis#2577) * chore: fix type errors in build * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix docs links --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * chore(main): release 7.15.1 (googleapis#2573) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> * fix license issue --------- Co-authored-by: Denis DelGrosso <ddelgrosso@google.com> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Daniel B <danielduhh@gmail.com> Co-authored-by: Jarrett <2613089+jjaareet@users.noreply.github.com> Co-authored-by: Denis DelGrosso <85250797+ddelgrosso1@users.noreply.github.com>
* chore(cleanup)!: Remove teeny-request in favor of gaxios/authclient * remove service class and associated tests * modify service-object and associated sub classes to use storage transport * begin refactoring classes to use storage-transport * finish initial refactor of classes * fix compilation errors * add header to storage-transport.ts * fix service-object unit tests * fix common-util tests * fix acl tests * fix channel tests * fix headers tests * fix iam tests * fix index tests * fix notification tests * remove teeny-request and retry request from deps * fix arguments and urls of create bucket * fix multipart upload urls * fix stream handling in createReadStream * feat: add ability to configure and utilize soft-delete and restore buckets (googleapis#2566) * Adds support for the restore token feature * description fix * lint fix * fetch softDeleted bucket list & details fetch softDeleted bucket list & details * initial commit for bucket restore initial commit for bucket restore * fix missing license headers fix missing license headers * lint fix * test case bug fix * added restore bucket unit test cases * added restore bucket system test added restore bucket system test * lint fix * format format * system test fix * fix * chore(cleanup)!: Remove teeny-request in favor of gaxios/authclient * remove service class and associated tests * modify service-object and associated sub classes to use storage transport * begin refactoring classes to use storage-transport * finish initial refactor of classes * fix compilation errors * add header to storage-transport.ts * fix service-object unit tests * fix common-util tests * fix acl tests * fix channel tests * fix headers tests * fix iam tests * fix index tests * fix notification tests * remove teeny-request and retry request from deps * fix arguments and urls of create bucket * fix multipart upload urls * fix stream handling in createReadStream * fix compilation errors * fix lint issues fix lint issues * test case fix * lint fix lint fix * lint and test case fix lint and test case fixes * chore(main): release 7.15.0 (googleapis#2568) * chore(main): release 7.15.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * docs: replace reference docs link with RAD (googleapis#2571) * fix bucket tests * fix(getFiles): add nextPageToken to fields for autoPaginate (googleapis#2570) * fix storage-transport test * fix file tests * conformance test fix * fix error * fix buffer error * comment failed conformance test * comments addressed * refactoring the storage-transport classes to utilize Promises * chore: fix type errors in build (googleapis#2577) * chore: fix type errors in build * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix docs links --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * chore(main): release 7.15.1 (googleapis#2573) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> * fix license issue --------- Co-authored-by: Denis DelGrosso <ddelgrosso@google.com> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Daniel B <danielduhh@gmail.com> Co-authored-by: Jarrett <2613089+jjaareet@users.noreply.github.com> Co-authored-by: Denis DelGrosso <85250797+ddelgrosso1@users.noreply.github.com>
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕