Skip to content

ref(grouping): Small parameterization refactor#109690

Merged
lobsterkatie merged 13 commits intomasterfrom
kmclb-parameterizer-refactors-feb-2026
Mar 2, 2026
Merged

ref(grouping): Small parameterization refactor#109690
lobsterkatie merged 13 commits intomasterfrom
kmclb-parameterizer-refactors-feb-2026

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Mar 2, 2026

This is a small refactor to our message parameterization code, to make it a little easier to understand. Aside from a few renames and some added/tweaked comments, the main changes here are:

  • Make it so that ParameterizationRegex.experimental_pattern is None if there's no experimental pattern, rather than having it fall back to using the regular pattern. The fallback is now done in the creation of EXPERIMENTAL_PARAMETERIZATION_REGEXES_MAP.

  • Make the behavior of Parameterizer.parametrize_w_regex match its docstring by a) making it take in a regex (as its docstring says it does), and b) removing the (non-existent) callback parameter from the docstring.

  • Add a few test cases.

  • Skip the test testing experimental patterns if there are none.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 2, 2026
@lobsterkatie lobsterkatie marked this pull request as ready for review March 2, 2026 19:46
@lobsterkatie lobsterkatie requested a review from a team as a code owner March 2, 2026 19:46
@lobsterkatie lobsterkatie merged commit 6ed1f7f into master Mar 2, 2026
77 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-parameterizer-refactors-feb-2026 branch March 2, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants