Open monsieurtanuki opened 2 years ago
Thanks for the report. There's a limit on the levels of nesting, it seems this one hits it. To reproduce / analyze: https://de.openfoodfacts.org/cgi/test_ingredients_analysis.pl?ingredients_text=Schokolade+M%C3%BCrbegeb%C3%A4ck+%28_Weizenmehl_%2C+Pflanzenfett+%28Palm%29%29&type=add&action=process&submit=Envoyer
This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts
Describe the bug
In some cases (not all), the hierarchy is not the same if you compare a product's
ingredients
andingredients_text
fields.To Reproduce
ingredients_text
you get something like"Buttergebäck (_Weizenmehl_, Zucker, _Butter_ 26%, Speisesalz, Backtriebmittel (Ammouniumhydrogencarbonat), Invertzuckersirup, natürliches Aroma),\r\nSchokolade Mürbegebäck (_Weizenmehl_, Pflanzenfett (Palm), Zucker, Schokoladenstückchen 10% (Zucker, Kakaomasse, Kakaobutter, Emulgator (Lecithin)), Backtriebmittel (Ammouniumhydrogencarbonat), fettarmes Kakaopulver, Speisesalz)"
ingredients
you get a hierarchy of ingredientsExpected behavior
The hierarchy is broken inside
ingredients
for "Schokolade Mürbegebäck" - according toingredients_text
it should be the "father" of all the remaining ingredients, but it is not:where we expect more something like that
Which one is correct,
ingredients
oringredients_text
? Hard to tell because the ingredients picture is hard to read. But probablyingredients_text
is correct as it matches what is displayed on the website in https://world.openfoodfacts.org/product/5701184005007/butter-cookies-danish-kelsinAnyway, we should get the same hierarchy in both fields, and it is not the case.
Screenshots
No response
Additional context
No response
Type of device
REST-API
Browser version
No response
Number of products impacted
No response
Time per product
No response