-
-
Notifications
You must be signed in to change notification settings - Fork 381
fix: 6784 - readyForPriceTagValidation true only for priceTag and bulk #6794
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
base: develop
Are you sure you want to change the base?
Conversation
Impacted files: * `background_task_add_price.dart`: added field and parameter `bool bulkProofUpload`; set `readyForPriceTagValidation` as "priceTag and bulk" * `price_bulk_proof_card.dart`: added warning about AI and image validation * `price_model.dart`: added field `bool bulkProofUpload` * `proof_bulk_add_page.dart`: added parameter `bulkProofUpload: true`
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6794 +/- ##
============================================
- Coverage 9.54% 5.35% -4.19%
============================================
Files 325 648 +323
Lines 16411 218822 +202411
============================================
+ Hits 1567 11728 +10161
- Misses 14844 207094 +192250 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I don't understand the first warning message, does it mean that we can't delete selected images before the upload? Why is that? And I think we should allow the user to opt-out of the community validation. On the web version, we have a toggle for this: poke @raphodn for your opinion on the matter |
That's correct. The user does select images from the gallery. And then the images are sent to the server.
It doesn't look like a parameter in https://prices.openfoodfacts.org/api/docs#/proofs/proofs_upload_create |
Well this is the idea behind Instead of forcing |
Oh, understood, but that wasn't specified that way in the issue. So, let's clarify things:
@raphael0202 Is that correct? |
@raphael0202 Just checking: AI will always process the images, but the community will only if |
Yes indeed, AI will always process the image, but it will only be available for validation (for both the uploader and the community) if |
Impacted files: * `background_task_add_price.dart`: replaced parameter bulkProofUpload with readyForPriceTagValidation * `price_bulk_proof_card.dart`: added a switch to change the value of readyForPriceTagValidation * `price_model.dart`: readyForPriceTagValidation with getter and setter * `proof_bulk_add_page.dart`: start with the default user value for readyForPriceTagValidation * `user_preferences.dart`: storing the default user value for readyForPriceTagValidation
@raphael0202 I've just taken into account your latest comment. |
@monsieurtanuki @raphael0202 is on holidays for the week. |
What
readyForPriceTagValidation
totrue
if-and-only-if it's both a price tag and a bulk upload.Screenshot
Fixes bug(s)
Impacted files
background_task_add_price.dart
: added field and parameterbool bulkProofUpload
; setreadyForPriceTagValidation
as "priceTag and bulk"price_bulk_proof_card.dart
: added warning about AI and image validationprice_model.dart
: added fieldbool bulkProofUpload
proof_bulk_add_page.dart
: added parameterbulkProofUpload: true