fix(analyzer): resolve ingredient db entries by slug #40
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!40
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/db-lookup-slug-normalization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #27.
Ingredients whose
ingredients.yamlkey isn't exactlyslugify(name)(e.g.huile-dolivefor "Huile d'olive", compiled ashuile-d-olive) were missed by the analyzer: the alias index only lowercased names, so density conversion and nutrition were skipped.buildIngredientIndex) normalizing key, name and aliases withslugify; priority key > name > aliasdb-mergerreuses it instead of its own copygram db lintflags identifiers that collide once slugifieddb-007-non-canonical-db-key, patch changeset