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

feat: support percentage range #9224

Merged
merged 5 commits into from
Dec 5, 2023
Merged

Conversation

benbenben2
Copy link
Collaborator

@benbenben2 benbenben2 commented Oct 28, 2023

What

allow range in percentage.
Example: kakao prah smanjene masti (10-12%) in https://hr.openfoodfacts.org/product/3858886803621

proposed solution: ignore first part of the range, i.e. keep upper value only.
kakao prah smanjene masti (10-12%) -> kakao prah smanjene masti (12%)

Related issue(s) and discussion

@benbenben2 benbenben2 self-assigned this Oct 28, 2023
@benbenben2 benbenben2 requested a review from a team as a code owner October 28, 2023 21:49
@github-actions github-actions bot added 🧪 tests 🥗🔍 Ingredients analysis https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis labels Oct 28, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2023

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (d3f8740) 44.30% compared to head (c18191f) 49.01%.
Report is 4 commits behind head on main.

Files Patch % Lines
lib/ProductOpener/Display.pm 33.33% 13 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9224      +/-   ##
==========================================
+ Coverage   44.30%   49.01%   +4.70%     
==========================================
  Files          64       66       +2     
  Lines       20333    20422      +89     
  Branches     4891     4904      +13     
==========================================
+ Hits         9008    10009    +1001     
+ Misses      10150     9144    -1006     
- Partials     1175     1269      +94     

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

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great !

lib/ProductOpener/Ingredients.pm Outdated Show resolved Hide resolved
Co-authored-by: Alex Garel <alex@openfoodfacts.org>
Copy link

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

Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stephanegigandet stephanegigandet merged commit e2e66a2 into main Dec 5, 2023
14 checks passed
@stephanegigandet stephanegigandet deleted the feat_allow_range_in_percentage branch December 5, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants