Skip to content

chore: refactor templates to reduce duplication#17006

Merged
parthea merged 10 commits into
mainfrom
refactor-macro
May 25, 2026
Merged

chore: refactor templates to reduce duplication#17006
parthea merged 10 commits into
mainfrom
refactor-macro

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented May 8, 2026

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 UUID4 validation in generated tests by pre-compiling the regex into a module-level constant _UUID4_RE instead of using inline strings. Feedback suggests refining the Jinja2 template logic to prevent unnecessary imports and constants when no auto-populated fields exist. Additionally, the reviewer recommended using existing macros in the ads-templates to avoid hardcoding the regex pattern.

@parthea parthea marked this pull request as ready for review May 8, 2026 20:26
@parthea parthea requested a review from a team as a code owner May 8, 2026 20:26
Base automatically changed from repro-508597813 to main May 11, 2026 18:14
parthea added a commit that referenced this pull request May 12, 2026
This PR addresses the feedback in
#17006 (comment)
nidhiii-27 pushed a commit that referenced this pull request May 18, 2026
@parthea parthea merged commit c7b49a9 into main May 25, 2026
92 checks passed
@parthea parthea deleted the refactor-macro branch May 25, 2026 14:55
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