Skip to content

Commit

Permalink
fix: nutriscore grade from category change for extra virgin olive oils (
Browse files Browse the repository at this point in the history
#11156)

### What
Because the nutriscore has changed recently,
**expected_nutriscore_grade:en:** for **Extra-virgin olive oils**
category has changed from C to B.

See:
https://theconversation.com/en-2024-le-nutri-score-evolue-pourquoi-et-que-faut-il-en-retenir-221697

### Related issue(s) and discussion
See @aleene comment in quality-data channel on Slack
> Something changed? Nutri score grade from category does not match
calculated grade
https://world.openfoodfacts.org/product/4088700000472/olive-oil and
others
  • Loading branch information
benbenben2 authored Dec 21, 2024
1 parent 2052505 commit 32d58e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion taxonomies/food/categories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59164,7 +59164,7 @@ ciqual_food_code:en: 17270
ciqual_food_name:en: Olive oil, extra virgin
ciqual_food_name:fr: Huile d'olive vierge extra
expected_ingredients:en: en:olive-oil
expected_nutriscore_grade:en: c
expected_nutriscore_grade:en: b

< en:Olive oils
en: Olive pomace oils
Expand Down
7 changes: 1 addition & 6 deletions tests/unit/dataqualityfood.t
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ $product_ref = {
'en:olive-oils', 'en:virgin-olive-oils',
'en:extra-virgin-olive-oils'
],
nutrition_grade_fr => "c",
nutrition_grade_fr => "b",
nutriscore => {
2023 => {"nutrients_available" => 1,},
},
Expand All @@ -1221,11 +1221,6 @@ check_quality_and_test_product_has_quality_tag(
'en:nutri-score-grade-from-category-does-not-match-calculated-grade',
'Calculate nutriscore grade should be the same as the one provided in the taxonomy for this category', 0
);
check_quality_and_test_product_has_quality_tag(
$product_ref,
'en:nutri-score-grade-from-category-does-not-match-calculated-grade',
'Calculate nutriscore grade should be the same as the one provided in the taxonomy for this category', 0
);

# category with expected ingredient. Prerequisite: "expected_ingredients:en: en:olive-oil" under "en:Extra-virgin olive oils" category, in the taxonomy
# category with expected ingredient. Missing ingredients
Expand Down

0 comments on commit 32d58e0

Please sign in to comment.