Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

chore!: gaxios rebase node 18#2569

Merged
ddelgrosso1 merged 62 commits intogoogleapis:node-18from
thiyaguk09:gaxios-node-18
Mar 4, 2025
Merged

chore!: gaxios rebase node 18#2569
ddelgrosso1 merged 62 commits intogoogleapis:node-18from
thiyaguk09:gaxios-node-18

Conversation

@thiyaguk09
Copy link
Contributor

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

ddelgrosso1 and others added 30 commits July 15, 2024 19:16
…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
@thiyaguk09 thiyaguk09 marked this pull request as ready for review February 3, 2025 11:59
@thiyaguk09 thiyaguk09 requested a review from a team February 3, 2025 11:59
@thiyaguk09 thiyaguk09 requested a review from a team as a code owner February 3, 2025 11:59
src/iam.ts Outdated
}

this.request_(
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this disable necessary? Looks like errors are being handled in the callback. I'd rather we not add these disables if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about this disable.

thiyaguk09 and others added 3 commits February 10, 2025 19:58
* 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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

If possible let's try and avoid these any casts and disabling the any linter rules.

@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

@snippet-bot
Copy link

snippet-bot bot commented Feb 21, 2025

Here is the summary of changes.

You are about to add 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@danielduhh
Copy link
Contributor

Is this good to merge @ddelgrosso1 ?

@ddelgrosso1
Copy link
Contributor

@danielduhh yes, this is pointed at the node 18 staging branch. Safe to merge while the conformance tests are fixed.

@ddelgrosso1 ddelgrosso1 merged commit 7ec0bf7 into googleapis:node-18 Mar 4, 2025
12 checks passed
thiyaguk09 added a commit to thiyaguk09/nodejs-storage-fork that referenced this pull request May 2, 2025
* 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>
thiyaguk09 added a commit to thiyaguk09/nodejs-storage-fork that referenced this pull request May 2, 2025
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/nodejs-storage API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants