Closed teolemon closed 3 weeks ago
To clarify what is required here:
@monsieurtanuki Before implementing anything, I would like to know if you have some recommendations/advices for this flow. More specifically, we have to call the getProduct
method for each environment.
- First check if it's available in the OFF galaxy (OBF, OPF…) -> if true, open the website
I just see a loop on all "flavors" (except OFF of course).
- If it's not available at all, ask the type of product to the user
OK
* If it's food -> "Fast track"
OK
* Otherwise -> Only take photos
Not convinced. Anyway we should save the name, brands too. We'd still put products with the wrong flavor in OFF server and locally, with no means to discriminate them.
This is what I suggest - maybe you had that already in mind but this was not explicit.
DaoProduct
, defaulting to 'off'
(for history + SQFlite limitations reasons only)Quickly said.
FYI @g123k @monsieurtanuki @stephanegigandet is now getting the server ready for this, and you can actually test the new data structure using the DEV mode and https://world.new.openproductsfacts.org/ For development purposes (to avoid waiting for server support), we could add the product_type key to all products when you have https://world.new.openproductsfacts.org/ as root url in dev mode (assuming devs wipe their DB each time they switch projects)
The servers for OPF, OBF, OPFF are now live at https://world.openproductsfacts.org/ https://world.openbeautyfacts.org/ https://world.openpetfoodfacts.org/
What
Why
Mockup
Part of
1378
4543