Skip to content

chore(generator): add compatability layer templates#17886

Merged
hebaalazzeh merged 1 commit into
mainfrom
compact-layer
Jul 24, 2026
Merged

chore(generator): add compatability layer templates#17886
hebaalazzeh merged 1 commit into
mainfrom
compact-layer

Conversation

@hebaalazzeh

@hebaalazzeh hebaalazzeh commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This PR consolidates the common code into a temporary compatibility layer as a fallback implementation as we move this code to google-api-core. Once, the minimum supported version of google-api-core has these functions we will clean up this layer.

Towards: #17883

@hebaalazzeh hebaalazzeh self-assigned this Jul 23, 2026

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

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.

Code Review

This pull request introduces a compatibility module (_compat.py) and its corresponding unit tests (test_compat.py) to the GAPIC generator templates, updating the generator to allow these private templates and prevent them from being skipped when empty. The review feedback correctly identifies that prepending # before the license include statement in the template files results in double comment characters (# #) in the generated golden files, and suggests removing the leading # to fix this formatting issue.

@ohmayr ohmayr added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 23, 2026
@ohmayr ohmayr removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 24, 2026
@hebaalazzeh
hebaalazzeh enabled auto-merge (squash) July 24, 2026 00:07
@hebaalazzeh
hebaalazzeh merged commit 49a8671 into main Jul 24, 2026
100 checks passed
@hebaalazzeh
hebaalazzeh deleted the compact-layer branch July 24, 2026 00:10
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