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: new localized product fields for generic name #828

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

  • One test started to fail yesterday.
  • Obviously something changed on the server side regarding genericName, the same way it changed weeks ago about productName. In short, now you're supposed to be explicit regarding the language you use, which is a good news. I fixed the test.
  • En passant, I also added a localized version of "generic name".

Impacted files

  • api_get_save_product_test.dart: set explicit language for genericName test to pass; also tested new field genericNameInLanguages
  • product.dart: added field genericNameInLanguages
  • product.g.dart: generated
  • product_fields.dart: added fields GENERIC_NAME_IN_LANGUAGES and GENERIC_NAME_ALL_LANGUAGES

Impacted files:
* `api_get_save_product_test.dart`: set explicit language for `genericName` test to pass; also tested new field `genericNameInLanguages`
* `product.dart`: added field `genericNameInLanguages`
* `product.g.dart`: generated
* `product_fields.dart`: added fields `GENERIC_NAME_IN_LANGUAGES` and `GENERIC_NAME_ALL_LANGUAGES`
@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2023

Codecov Report

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

Comparison is base (415b07d) 76.35% compared to head (7beb6a0) 76.04%.
Report is 5 commits behind head on master.

Files Patch % Lines
lib/src/model/search_result.g.dart 50.00% 1 Missing ⚠️
...lized_search/available_preference_importances.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #828      +/-   ##
==========================================
- Coverage   76.35%   76.04%   -0.32%     
==========================================
  Files         205      205              
  Lines        7537     7546       +9     
==========================================
- Hits         5755     5738      -17     
- Misses       1782     1808      +26     

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

Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

👍🏼

@monsieurtanuki monsieurtanuki merged commit a98cfcb into openfoodfacts:master Nov 16, 2023
3 checks passed
@monsieurtanuki
Copy link
Contributor Author

👍🏼

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants