Skip to content

refactor(bigframes): Clean up project/credential resolution logic#16859

Open
TrevorBergeron wants to merge 6 commits intomainfrom
tbergeron_bigframes_project_var
Open

refactor(bigframes): Clean up project/credential resolution logic#16859
TrevorBergeron wants to merge 6 commits intomainfrom
tbergeron_bigframes_project_var

Conversation

@TrevorBergeron
Copy link
Copy Markdown
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> 🦕

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request centralizes the logic for determining the default Google Cloud project ID by introducing a new env configuration module and updating the ClientsProvider to require a project ID. The review feedback highlights critical NameError issues in the new get_default_project_id function and the _get_bqclient_and_project helper, where variables were incorrectly referenced. Additionally, there are suggestions to remove an unused import and add a missing newline at the end of the new configuration file to align with PEP 8 standards.

Comment thread packages/bigframes/bigframes/_config/env.py Outdated
Comment thread packages/bigframes/bigframes/pandas/io/api.py
Comment thread packages/bigframes/bigframes/_config/env.py Outdated
Comment thread packages/bigframes/bigframes/_config/env.py Outdated
@TrevorBergeron TrevorBergeron requested a review from tswast April 29, 2026 20:45
import google.auth.transport.requests
import pydata_google_auth

from typing import Optional
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: sort imports.

@TrevorBergeron TrevorBergeron changed the title chore(bigframes): Add support for bigframes-only project id env var refactor(bigframes): Clean up project/credential resolution logic Apr 29, 2026
@TrevorBergeron TrevorBergeron marked this pull request as ready for review April 29, 2026 21:56
@TrevorBergeron TrevorBergeron requested review from a team as code owners April 29, 2026 21:56
@TrevorBergeron TrevorBergeron requested review from GarrettWu and removed request for a team April 29, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants