Skip to content

taxonomy(nutrients): separate vit D₃ out from vit D - #13713

Merged
Freso merged 2 commits into
mainfrom
freso/taxonomy/vitamin-d3
Jun 5, 2026
Merged

taxonomy(nutrients): separate vit D₃ out from vit D#13713
Freso merged 2 commits into
mainfrom
freso/taxonomy/vitamin-d3

Conversation

@Freso

@Freso Freso commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

“Vitamin D” specified on packaging can be one of several compounds, but we’re currently just assuming that it’s cholecalciferol (D₃), even if ergocalciferol (D₂) is also reasonably common, with other variants being more rare.

This separates out cholecalciferol/vitamin D₃ from the current vitamin-d nutrients entry into a new vitamin-d3 block.

Translations are taken/adapted from Wikidata and/or current vitamin D ones.

This may (eventually, as products get updated) introduce some issues for data quality calculations that check for vitamin-d specifically, e.g. for “source of vitamin D” labels. I’m not sure what the best way to handle this would/will be.

Needed-for: https://world.openfoodfacts.org/product/8723300710739/vitamine-d-10-innovit
Needed-for: https://dk.openfoodfacts.org/product/5711657050021/vitamin-d3-bodylab

“Vitamin D” specified on packaging can be one of several compounds, but
we’re currently just assuming that it’s cholecalciferol (D₃), even if
ergocalciferol (D₂) is also reasonably common, with other variants being
more rare.

This separates out cholecalciferol/vitamin D₃ from the current
`vitamin-d` nutrients entry into a new `vitamin-d3` block.

Translations are taken from Wikidata and/or adapted from current
vitamin D ones.

This may (eventually, as products get updated) introduce some issues for
data quality calculations that check for `vitamin-d` specifically, e.g.
for “source of vitamin D” labels. I’m not sure what the best way to
handle this would/will be.

Needed-for: https://world.openfoodfacts.org/product/8723300710739/vitamine-d-10-innovit
Needed-for: https://dk.openfoodfacts.org/product/5711657050021/vitamin-d3-bodylab
@Freso
Freso requested a review from a team as a code owner June 4, 2026 09:19
@Freso Freso added the vitamins label Jun 4, 2026
@github-project-automation github-project-automation Bot moved this to To discuss and validate in 🍊 Open Food Facts Server issues Jun 4, 2026
@github-actions github-actions Bot added 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies Nutrients Food.pm labels Jun 4, 2026
@codecov-commenter

codecov-commenter commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.75%. Comparing base (35c4c8c) to head (c274b5d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13713      +/-   ##
==========================================
+ Coverage   49.48%   54.75%   +5.27%     
==========================================
  Files          99      100       +1     
  Lines       25841    25899      +58     
  Branches     6173     6182       +9     
==========================================
+ Hits        12787    14182    +1395     
+ Misses      11392     9882    -1510     
- Partials     1662     1835     +173     
Flag Coverage Δ
integration-test-group-1 9.08% <ø> (?)
integration-test-group-2 9.24% <ø> (?)
integration-test-group-3 32.96% <ø> (?)
integration-test-group-4 28.62% <ø> (?)
integration-test-group-5 9.14% <ø> (?)
integration-test-group-6 9.68% <ø> (?)
integration-test-group-7 28.16% <ø> (?)
integration-test-group-8 26.40% <ø> (?)
integration-test-group-9 13.17% <ø> (?)
unit-test-group-1 24.00% <ø> (ø)
unit-test-group-2 34.74% <ø> (ø)
unit-test-group-3 23.35% <ø> (ø)
unit-test-group-4 29.78% <ø> (ø)
unit-test-group-5 17.20% <ø> (ø)
unit-test-group-6 27.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Freso

This comment was marked as resolved.

@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown

@stephanegigandet stephanegigandet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@github-project-automation github-project-automation Bot moved this from To discuss and validate to Done in 🍊 Open Food Facts Server issues Jun 5, 2026
@Freso
Freso merged commit 19c5c9a into main Jun 5, 2026
64 of 65 checks passed
@Freso
Freso deleted the freso/taxonomy/vitamin-d3 branch June 5, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Food.pm Nutrients 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧪 tests vitamins

Projects

Development

Successfully merging this pull request may close these issues.

4 participants