feat: group alias/family/schema stores + parser#209
Merged
Conversation
Member
tazlin
commented
Apr 22, 2026
- Introduce file-backed stores for group aliases, related-group families, and per-group naming schemas to allow admin-controlled grouping and metadata (new modules: group_aliases, group_families, group_schema_store).
- Enhance the text model parser to expose extras (ExtraNamePart/ExtraPartType), recognize date suffixes and leading version tokens, and surface extras in inferred name schemas.
- Wire alias/schema/family stores into the ModelReferenceManager and update grouping utilities to accept an alias_store so canonical names can be resolved during grouping.
- Add new TextModelGroupNameSchema and a name_schema_exception field on model records, small JSON formatting tweaks, and updated tests to cover parser/grouping behavior.
- Introduce file-backed stores for group aliases, related-group families, and per-group naming schemas to allow admin-controlled grouping and metadata (new modules: group_aliases, group_families, group_schema_store). - Enhance the text model parser to expose extras (ExtraNamePart/ExtraPartType), recognize date suffixes and leading version tokens, and surface extras in inferred name schemas. - Wire alias/schema/family stores into the ModelReferenceManager and update grouping utilities to accept an alias_store so canonical names can be resolved during grouping. - Add new TextModelGroupNameSchema and a name_schema_exception field on model records, small JSON formatting tweaks, and updated tests to cover parser/grouping behavior.
7caa1cd to
984cb30
Compare
- Convert several test docstrings in tests/statistics_and_audit/test_extras_and_aliases.py to raw string literals (r"""...""") and condense/clarify a number of multi-line docstrings so regex backslashes and examples don't require extra escaping and the intent is more concise. - Also remove the moot test_extra_fields_forbidden from tests/statistics_and_audit/test_group_families.py which checked rejection of unknown fields on GroupFamily.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.