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: dq_serving_size_cant_be_parsed #9462

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

benbenben2
Copy link
Collaborator

What

Updated the existing "en:nutrition-data-per-serving-serving-quantity-is-not-recognized" facet
To be triggered even if nutrition data or per portion are not checked.
Existing unit tests are still valid
Added one unit tests covering the case when only serving_size is given (per portion is not checked, nutrition table is empty)

Related issue(s) and discussion

@benbenben2 benbenben2 added the 🧽 Data quality https://wiki.openfoodfacts.org/Quality label Dec 1, 2023
@benbenben2 benbenben2 self-assigned this Dec 1, 2023
@benbenben2 benbenben2 requested a review from a team as a code owner December 1, 2023 21:30
@github-actions github-actions bot added 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧪 tests labels Dec 1, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (be477d2) 49.00% compared to head (8a4fdef) 49.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9462   +/-   ##
=======================================
  Coverage   49.00%   49.01%           
=======================================
  Files          66       66           
  Lines       20421    20422    +1     
  Branches     4904     4905    +1     
=======================================
+ Hits        10008    10009    +1     
  Misses       9144     9144           
  Partials     1269     1269           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benbenben2 benbenben2 force-pushed the dq_serving_size_cant_be_parsed branch from c600bb9 to 8a4fdef Compare December 1, 2023 22:27
Copy link

sonarcloud bot commented Dec 1, 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 a150941 into main Dec 4, 2023
24 checks passed
@stephanegigandet stephanegigandet deleted the dq_serving_size_cant_be_parsed branch December 4, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧽 Data quality https://wiki.openfoodfacts.org/Quality 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serving_size without units
3 participants