Skip to content

chore: refactor setting of auto-populated field in request#17004

Open
parthea wants to merge 9 commits into
mainfrom
refactor-autopopulated-fields
Open

chore: refactor setting of auto-populated field in request#17004
parthea wants to merge 9 commits into
mainfrom
refactor-autopopulated-fields

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented May 8, 2026

This PR depends on #16944. Please review #16944 first.

This PR addresses the feedback in #16944 (comment)

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 refactors the auto-population of UUID4 fields by centralizing the logic into a new _setup_request_id static method within the generated clients and updating shared macros to utilize it. Feedback indicates that the current implementation of _setup_request_id lacks proper support for dictionary and pure protobuf message types, which will lead to runtime errors. Additionally, the Jinja template condition for generating this method is incorrectly defined, causing it to be included as dead code even when no fields require auto-population.

@parthea parthea force-pushed the refactor-autopopulated-fields branch from f2f692b to 0223a0d Compare May 8, 2026 21:20
@parthea parthea marked this pull request as ready for review May 11, 2026 16:09
@parthea parthea requested a review from a team as a code owner May 11, 2026 16:09
Base automatically changed from repro-508597813 to main May 11, 2026 18:14
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