-
-
Notifications
You must be signed in to change notification settings - Fork 67
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: simplified access to raw product images #839
feat: simplified access to raw product images #839
Conversation
Impacted files: * `api_get_product_image_ids_test.dart`: used new method and extended tests to all/main/raw images * `api_get_product_test.dart`: minor refactoring * `api_json_to_from_test.dart`: extended tests to all/main/raw images * `image_helper.dart`: minor refactoring * `json_helper.dart`: integrated "raw" images in addition to "main" images * `open_food_api_client.dart`: deprecated method `getProductImageIds` * `product.dart`: integrated "raw" images in addition to "main" images * `product.g.dart`: generated * `product_helper.dart`: minor refactoring * `product_image.dart`: now can include "raw" images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @monsieurtanuki, I like the new implementation way more without the helper class.
I've clarified some comments as I was kinda confused by them without reading the doc comment for ProductImage
. Feel free to have a look at them
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #839 +/- ##
==========================================
- Coverage 75.93% 75.87% -0.07%
==========================================
Files 224 224
Lines 7817 7880 +63
==========================================
+ Hits 5936 5979 +43
- Misses 1881 1901 +20 ☔ View full report in Codecov by Sentry. |
Thank you @M123-dev for your review! I've changed the comments according to your suggestions. |
What
images
, that used to have only "main" pictures for historical reasons.IMAGES
product field.Part of
Impacted files
api_get_product_image_ids_test.dart
: used new method and extended tests to all/main/raw imagesapi_get_product_test.dart
: minor refactoringapi_json_to_from_test.dart
: extended tests to all/main/raw imagesimage_helper.dart
: minor refactoringjson_helper.dart
: integrated "raw" images in addition to "main" imagesopen_food_api_client.dart
: deprecated methodgetProductImageIds
product.dart
: integrated "raw" images in addition to "main" imagesproduct.g.dart
: generatedproduct_helper.dart
: minor refactoringproduct_image.dart
: now can include "raw" images