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: API V3 now supported for "get product" #633

Merged

Conversation

monsieurtanuki
Copy link
Contributor

New files:

  • LocalizedTag.dart: Tag with localizations (in English and an additional language).
  • LocalizedTag.g.dart: generated
  • ProductResultV3.dart: API V3 answer from a call to /api/v3/product/$barcode.
  • ProductResultV3.g.dart: generated
  • ProductResultField.dart: Field part of an API V3 answer.
  • ProductResultField.g.dart: generated
  • ProductResultFieldAnswer.dart: API V3 answer for one field.
  • ProductResultFieldAnswer.g.dart: generated

Delete file:

  • api_getProductRaw_test.dart

Impacted files:

  • api_addProductImage_test.dart: upgraded to getProductV3
  • api_getProduct_test.dart: upgraded to getProductV3
  • api_matchedProductV1_test.dart: upgraded to getProductV3
  • api_ocrIngredients_test.dart: upgraded to getProductV3
  • api_saveProduct_test.dart: upgraded to getProductV3
  • json_product_generation_test.dart: upgraded to getProductV3
  • main.dart: upgraded to getProductV3
  • openfoodfacts.dart: deprecated methods getProductRaw and getProduct in favor of new method getProductV3
  • product_from_json_test.dart: upgraded to getProductV3
  • ProductQueryConfigurations.dart: added ProductQueryVersion.v3 and its specific call settings
  • ProductResult.dart: deprecated, in favor of ProductResultV3

What

Part of

New files:
* `LocalizedTag.dart`: Tag with localizations (in English and an additional language).
* `LocalizedTag.g.dart`: generated
* `ProductResultV3.dart`: API V3 answer from a call to /api/v3/product/$barcode.
* `ProductResultV3.g.dart`: generated
* `ProductResultField.dart`: Field part of an API V3 answer.
* `ProductResultField.g.dart`: generated
* `ProductResultFieldAnswer.dart`: API V3 answer for one field.
* `ProductResultFieldAnswer.g.dart`: generated

Delete file:
* `api_getProductRaw_test.dart`

Impacted files:
* `api_addProductImage_test.dart`: upgraded to `getProductV3`
* `api_getProduct_test.dart`: upgraded to `getProductV3`
* `api_matchedProductV1_test.dart`: upgraded to `getProductV3`
* `api_ocrIngredients_test.dart`: upgraded to `getProductV3`
* `api_saveProduct_test.dart`: upgraded to `getProductV3`
* `json_product_generation_test.dart`: upgraded to `getProductV3`
* `main.dart`: upgraded to `getProductV3`
* `openfoodfacts.dart`: deprecated methods `getProductRaw` and `getProduct` in favor of new method `getProductV3
* `product_from_json_test.dart`: upgraded to `getProductV3`
* `ProductQueryConfigurations.dart`: added `ProductQueryVersion.v3` and its specific call settings
* `ProductResult.dart`: deprecated, in favor of `ProductResultV3`
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.

Looks really good, thanks @monsieurtanuki

@monsieurtanuki monsieurtanuki merged commit e118386 into openfoodfacts:master Dec 2, 2022
@monsieurtanuki
Copy link
Contributor Author

Thank you very much @M123-dev for your review!

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

Successfully merging this pull request may close these issues.

2 participants