chore(generator): delegate request-id setup to public request#17739
Draft
hebaalazzeh wants to merge 8 commits into
Draft
chore(generator): delegate request-id setup to public request#17739hebaalazzeh wants to merge 8 commits into
hebaalazzeh wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the request ID setup logic in the generated client templates by delegating it to google.api_core.gapic_v1.method_helpers.setup_request_id instead of maintaining an inline implementation. As a result, the redundant unit tests for _setup_request_id have been removed from both the templates and the golden integration tests. There are no review comments, so I have no feedback to provide.
hebaalazzeh
changed the base branch from
main
to
feat/gapic-centralization-api-core-request-id
July 16, 2026 15:20
hebaalazzeh
force-pushed
the
feat/gapic-generator-centralization-request-id
branch
from
July 16, 2026 16:10
f037044 to
f25d768
Compare
hebaalazzeh
force-pushed
the
feat/gapic-centralization-api-core-request-id
branch
from
July 16, 2026 16:18
a0bff77 to
613b392
Compare
hebaalazzeh
force-pushed
the
feat/gapic-generator-centralization-request-id
branch
from
July 16, 2026 16:20
f25d768 to
71b2f4e
Compare
hebaalazzeh
force-pushed
the
feat/gapic-centralization-api-core-request-id
branch
2 times, most recently
from
July 16, 2026 16:27
08dce4a to
e02ee4b
Compare
…lic helpers Introduces method_helpers module containing setup_request_id helper. Exposes the module as public in gapic_v1.
hebaalazzeh
force-pushed
the
feat/gapic-centralization-api-core-request-id
branch
from
July 16, 2026 16:28
e02ee4b to
db040bb
Compare
Updates generator templates and goldens to import public method_helpers from google-api-core gapic_v1 and call setup_request_id helper. Removes duplicate setup_request_id test logic from generated client unit tests.
hebaalazzeh
force-pushed
the
feat/gapic-generator-centralization-request-id
branch
from
July 16, 2026 18:11
71b2f4e to
a8cc8d8
Compare
Contributor
|
This implementation makes sense if we plan to bump up the api_core requirement Before merging, we need to:
There's also a chance we will want to keep a fallback implementation to keep supporting old api_core versions |
hebaalazzeh
force-pushed
the
feat/gapic-centralization-api-core-request-id
branch
2 times, most recently
from
July 16, 2026 23:42
8e31d83 to
20adea6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates generator templates and goldens to import public
requestfromgoogle-api-coregapic_v1and callsetup_request_idhelper. Removes duplicatesetup_request_idtest logic from generated client unit tests.Temporarily pointing to this PR then will revert once it is merged/released: