Skip to content

fix: propagate quota_project_id and api_endpoint in AsyncGrpcClient#16731

Merged
chandra-siri merged 2 commits intogoogleapis:mainfrom
chandra-siri:fix-503990490
Apr 21, 2026
Merged

fix: propagate quota_project_id and api_endpoint in AsyncGrpcClient#16731
chandra-siri merged 2 commits intogoogleapis:mainfrom
chandra-siri:fix-503990490

Conversation

@chandra-siri
Copy link
Copy Markdown
Contributor

This PR fixes bug 503990490 where AsyncGrpcClient fails to propagate quota_project_id and api_endpoint from ClientOptions to the gRPC channel.

@chandra-siri chandra-siri requested a review from a team as a code owner April 20, 2026 17:12
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 updates the AsyncGrpcClient to support custom API endpoints and quota project IDs by extracting these values from client_options and passing them to the transport's create_channel method. While the unit tests were updated to include the host parameter in assertions, the reviewer identified that quota_project_id (which defaults to None) must also be included in the assert_called_once_with calls across several test cases to ensure they match the new implementation and pass correctly.

@Mahalaxmibejugam
Copy link
Copy Markdown

Is the x-goog-user-project header getting populated with these changes?

@chandra-siri chandra-siri merged commit b8b457a into googleapis:main Apr 21, 2026
30 checks passed
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