Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistant normalization prevents linked knowledge panels from working #6810

Closed
teolemon opened this issue May 22, 2022 · 0 comments · Fixed by #6815
Closed

Inconsistant normalization prevents linked knowledge panels from working #6810

teolemon opened this issue May 22, 2022 · 0 comments · Fixed by #6815
Assignees
Labels
🐛 bug This is a bug, not a feature request. 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels 🎯 P0

Comments

@teolemon
Copy link
Member

teolemon commented May 22, 2022

What

vegan/vegetarian/palm oil should already be working, and they don't seem to. It's related to inconsistant normalization.

Product API output

https://world.openfoodfacts.org/api/v2/product/4006544205006.json?fields=knowledge_panels,attributes
https://world.openfoodfacts.org/api/v2/product/4006544205006.json?fields=knowledge_panels,attributes_groups
"panel_element":{"panel_id":"ingredients_analysis_en:vegan"}

Attributes API output

https://world.openfoodfacts.org/api/v2/product/4337185341373/k-take-it-veggie-vegan-nuggets?fields=knowledge_panels,attribute_groups
{"attributes":[{"grade":"a","icon_url":"https://static.openfoodfacts.dev/images/attributes/vegan.svg","id":"vegan","match":100,"name":"Vegan","panel_id":"ingredients_analysis_en-vegan","status":"known","title":"Vegan"}

Who for

Smoothie users

Part of

@teolemon teolemon added ♞ Epic An epic groups several tasks/issues. It should have a meaning for users. 🐛 bug This is a bug, not a feature request. 🎯 P0 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels and removed ♞ Epic An epic groups several tasks/issues. It should have a meaning for users. labels May 22, 2022
@teolemon teolemon changed the title inconsistant normalization prevents linked knowledge panels from working Inconsistant normalization prevents linked knowledge panels from working May 22, 2022
@stephanegigandet stephanegigandet self-assigned this May 23, 2022
stephanegigandet added a commit that referenced this issue May 30, 2022
…els (#6815)

* fix: make panel ids consistent for ingredients analysis knowledge panels #6810

* update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels 🎯 P0
2 participants