openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
GNU Affero General Public License v3.0
633 stars 371 forks source link

Add a category for "prepared food with at least 80% milk" and account for it in nutri-score computation #8114

Open alexgarel opened 1 year ago

alexgarel commented 1 year ago

Describe the bug

On https://fr.openfoodfacts.org/produit/3033710073467/ricore-original-nestle#panel_nutriscore we have a difference between advertised eco-score and computed one.

This is because this product Eco-Score is computed as prepared, but preparation involves milk, which makes it goes in a different category and therefore changes computation.

To Reproduce

see https://fr.openfoodfacts.org/produit/3033710073467/ricore-original-nestle#panel_nutriscore

Expected behavior

In case of products prepared with milk, we should add this category.

Screenshots

No response

Additional context

No response

Type of device

Browser

Browser version

No response

Number of products impacted

No response

Time per product

No response

ivedantmistry commented 1 year ago

Hello @alexgarel I'm willing to work on this issue but can you please attach a screenshot that where to add the "prepared food with at least 80% milk", I couldn't figure out where that section is present

alexgarel commented 1 year ago

@vedantmistryy it's a category (see category field, when you edit a product) but it does not exists yet, so it should be added to taxonomies/categories.txt, at the right place as a child of drink) see https://wiki.openfoodfacts.org/Global_taxonomies#format and you will have to "make build_taxonomy" to have it taken into account.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity.

ivedantmistry commented 1 year ago

I'm extremely sorry for not responding on time, Although I had found the categories.txt, (and also found Plant-based Foods and Beverages) now please explain me what next to do? I am new to open source please help. image

alexgarel commented 1 year ago

Hi @vedantmistryy thanks for trying to contribute. Did you read https://wiki.openfoodfacts.org/Global_taxonomies ? Also you can come to the #taxonomy channel our slack (see slack.openfoodfacts.org to get an invitation) where people can help you.