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

fix: Nova 4 marker for mechanicaly separated meat and fruit juice concentrates + better Halal / Kosher parsing #9074

Merged
merged 5 commits into from
Sep 28, 2023

Conversation

stephanegigandet
Copy link
Contributor

This PR adds entries for mechanically separated meat, and makes it a NOVA 4 marker, along with fruit juice concentrates, as they are listed on https://www.fao.org/3/ca5644en/ca5644en.pdf (NOVA paper from Carlos Monteiro 2019).

We have ingredients processing for "mechanically separated" and "concentrated", and we currently do not support NOVA 4 markers for processings, so this is currently not perfect. We can continue to improve it and add support for ingredients processing markers (and keeping an eye on potential false positives that could come from "concentrated" ingredients that are not fruit juices).

This PR also adds support for Halal and Kosher labels, so that we can parse things like "viande séparée mécaniquement de poulet halal"

@stephanegigandet stephanegigandet requested a review from a team as a code owner September 26, 2023 16:41
@github-actions github-actions bot added 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🥗 Ingredients 🧪 tests 🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis labels Sep 26, 2023
@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

Merging #9074 (6eb16fb) into main (864cf2c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #9074   +/-   ##
=======================================
  Coverage   47.81%   47.81%           
=======================================
  Files          64       64           
  Lines       19942    19942           
  Branches     4823     4823           
=======================================
  Hits         9536     9536           
  Misses       9162     9162           
  Partials     1244     1244           
Files Coverage Δ
lib/ProductOpener/Ingredients.pm 92.24% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions github-actions bot added the 💥 Merge Conflicts 💥 Merge Conflicts label Sep 27, 2023
@raphael0202 raphael0202 self-requested a review September 28, 2023 13:01
@raphael0202
Copy link
Contributor

There is a merge conflict with ingredients.t, but otherwise looks good!

@github-actions github-actions bot removed the 💥 Merge Conflicts 💥 Merge Conflicts label Sep 28, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@stephanegigandet stephanegigandet merged commit 495c58f into main Sep 28, 2023
11 of 13 checks passed
@stephanegigandet stephanegigandet deleted the nova-mechanicaly-separated-meat branch September 28, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis 🥗 Ingredients 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧪 tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants