Repository navigation
Spec 0.10.0: via on a copied value; locale country names; no titles in names - #73
Merged
Merged
Conversation
…foreign keys helper A copied value read through one of several foreign keys onto its parent now names it with via; two or more and no via is an error. fill_copy_paths writes the first foreign key in, which is what earlier versions read. The home country of a named locale is spelled as the locale's list spells it, name_male, name_female and name_nonbinary carry no titles, and nullable_foreign_keys lists the foreign keys a model leaves empty on some rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
babel names the home country in the locale's own language. The via migration test now compares against naming the first foreign key by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One release changes the rows once: the 1.27.0 entries join 1.26.0's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Babel is a direct dependency, so it is imported at the top and its English fallback is gone. A one-column foreign_keys entry cannot exist (the schema asks for two columns), so nothing counts it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Completes 1.26.0 together with #72, so the rows change once, in one release. The CHANGELOG has a single
## [1.26.0] - Unreleasedsection for both.What changes
viaon a copied value (model spec 0.10.0). A column that copies a parent's plain column (references: teams.venue_id) used to follow the first foreign key to that parent, silently.referencesnow takesvia:{to: teams.venue_id, via: home_team_id}. Two or more possible foreign keys and noviais a validation error at any spec version, naming every path, and the error carries the fix as anIssue.suggestion.model2data.model.fill_copy_paths(model)adds the first path to an existing model, which keeps the rows it generated before. Spec versions now compare as numbers, so0.10.0is newer than0.9.0.Deutschland,België); without a locale nothing changes.babelis now a direct dependency (it was already installed through dbt-core).name_male,name_female,name_nonbinaryhave no titles: first name plus last name, likename.model2data.model.nullable_foreign_keys(model)lists each nullable foreign key with the share of rows the engine leaves empty.Checks
tests/test_copy_via.py,tests/test_locale_names.py,tests/test_nullable_foreign_keys.py.locale-de_DE,locale-en_US,locale-nl_BEandlocale-ja_JPcases move, because of the country spelling.🤖 Generated with Claude Code