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: 3490 - now accepting not cropped new pictures #3524

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • image_crop_page.dart: told the CropPage we're dealing with a brand new picture
  • new_crop_page.dart: new bool parameter brandNewPicture used when saving the picture; refactored the debug lines
  • product_image_viewer.dart: told the CropPage we're dealing with an already existing picture

What

  • Dealing differently with brand new and already existing pictures.

Fixes bug(s)

Impacted files:
* `image_crop_page.dart`: told the `CropPage` we're dealing with a brand new picture
* `new_crop_page.dart`: new `bool` parameter `brandNewPicture` used when saving the picture; refactored the debug lines
* `product_image_viewer.dart`: told the `CropPage` we're dealing with an already existing picture
@codecov-commenter
Copy link

Codecov Report

Merging #3524 (adf4f66) into develop (d61ca4b) will increase coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #3524      +/-   ##
===========================================
+ Coverage    11.05%   11.07%   +0.01%     
===========================================
  Files          262      262              
  Lines        12978    12955      -23     
===========================================
  Hits          1435     1435              
+ Misses       11543    11520      -23     
Impacted Files Coverage Δ
packages/smooth_app/lib/pages/image_crop_page.dart 0.00% <ø> (ø)
...th_app/lib/pages/product/product_image_viewer.dart 0.00% <ø> (ø)
...s/smooth_app/lib/tmp_crop_image/new_crop_page.dart 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@monsieurtanuki monsieurtanuki merged commit fac9afe into openfoodfacts:develop Jan 5, 2023
@monsieurtanuki
Copy link
Contributor Author

I had no way to test but that should be good now!
Sorry for that bug!

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.

Packaging and ingredient photo upload does not work on existing products
3 participants