Open teolemon opened 5 years ago
@teolemon I'll be working on this.
Okay, assigned
@jaindiv26 I'm clearing you from the assignees. Feel free to reclaim the issue if you'd like to work on it. I'm also putting a P1 because this is the only thing blocking a native release of Open Beauty Facts (we want feature parity with the Cordova release)
What
This bug requires using the OBF ingredient taxonomy.
https://world.openbeautyfacts.org/api/v0/product/3282779063234.json?fields=ingredients,code
Get the ingredient list for the product
If an ingredient which is on the warnlist (presented at the end of the bug) is inside (or has a parent on the blacklist), display it using the Ingredient taxonomy
Ingredient taxonomy https://static.openbeautyfacts.org/data/taxonomies/ingredients.json
If it is not present, display:
Full list of ingredients to flag https://static.openbeautyfacts.org/data/taxonomies/special_ingredients.json