-
-
Notifications
You must be signed in to change notification settings - Fork 35
Description
On the backend, we now detect "duplicate" prices, i.e. price that have the same values for the following fields:
typelocation_iddatecurrencypriceprice_perprice_is_discountedprice_without_discountdiscount_typeproduct_codecategory_taglabels_tagsorigins_tags
See the issue on the backend repo for more information: openfoodfacts/open-prices#422).
To leverage this new feature on the front-end, we could hide by default the prices that are considered as duplicate.
In the product view (ex: https://prices.openfoodfacts.org/products/0013800105851) and location view (ex: https://prices.openfoodfacts.org/locations/4191), we could add a new filter "Hide duplicate prices" that would be toggled by default.
We should probably display the duplicate prices on other views by keeping the toggle off by default for other views (all prices: https://prices.openfoodfacts.org/prices, proof prices: https://prices.openfoodfacts.org/proofs/65997), to make the job easier for users and moderators to know what prices are linked to a specific proof, and to spot possible issues.
I also think we should be transparent to the user about this filtering step, and display the number of hidden duplicate prices.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status