-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Detect (and ignore) duplicate prices #422
Comments
What happens when a duplicate price is sent to the API:
Should the user be informed that the price was ignored by the server ? |
What about duplicate proofs ? Related issue : openfoodfacts/open-prices-frontend#534 edit : created a dedicated issue : #514 |
For the moment in off-dart's We may return the "old" price and let the developer deal with it (checking field by field). If needed, the developer may then decide to delete the "old" price and add the new one. Possibly, you may also return Anyway, whatever you decide should probably take into account our low reactivity in Smoothie: coding can be fast, but the app roll out can take months. |
Story
I sometimes see "identical" prices. Reasons could be a mistake (scanning/adding the product twice), or adding a price from a receipt and then from another source like GDPR, API error...)
Identical price = same product + same location + same date
(not necessarily the same proof ; if 2 different proofs, which one to keep ?)
And should we allow 2 identical products on the same proof ? Only if the price is different (in which case would that happen ?) ?
Linked issues & comments
The text was updated successfully, but these errors were encountered: