Skip to content

chore: refactor templates to reduce duplication#17006

Open
parthea wants to merge 1 commit intorepro-508597813from
refactor-macro
Open

chore: refactor templates to reduce duplication#17006
parthea wants to merge 1 commit intorepro-508597813from
refactor-macro

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 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
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.

1 participant