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

fix: prefer usage of projectId from the Dataset#1326

Merged
alvarowolfx merged 3 commits intogoogleapis:mainfrom
alvarowolfx:fix-table-another-project
Jan 24, 2024
Merged

fix: prefer usage of projectId from the Dataset#1326
alvarowolfx merged 3 commits intogoogleapis:mainfrom
alvarowolfx:fix-table-another-project

Conversation

@alvarowolfx
Copy link
Copy Markdown
Contributor

Make the internal projectId attribute on the Dataset class required and use it instead of the one set on the Client. This way all Datasets by default uses the Client projectId, but it can be override manually by the user if needed (which was enabled on PR #1230). This fixes some issues with users wanting to make operations on different projects with the same client.

Fixes #1133 #1265 🦕

@alvarowolfx alvarowolfx requested review from a team and farhan0102 January 19, 2024 18:21
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/nodejs-bigquery API. labels Jan 19, 2024
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 19, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 19, 2024
@alvarowolfx alvarowolfx requested a review from shollyman January 23, 2024 19:19
Copy link
Copy Markdown
Contributor

@shollyman shollyman left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/nodejs-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API methods use overall connection project instead of object's project

2 participants