openfoodfacts-server
openfoodfacts-server copied to clipboard
No more sold products should not be available for search
What
We promise to producer that if they mark a product as "taken off the market" they should not be found doing a search. But as you search them, you find them.
Steps to Reproduce
- Go to https://world.openfoodfacts.org/product/3760307950145/la-jucerie and see that it is "taken off the market"
- Go to front page and search "jucerie"
- you see the product in result page
Expected behavior
The product should not appear in a search (but maybe, a search on barcode). Still, it should be reachable by its url.
Part of
We downrank them, not make them disappear alltogether
This issue is stale because it has been open 90 days with no activity.
@manon-corneille this issue might be of interest to you.
I would like to work on this issue @alexgarel
@aakankshabhende this might be a difficult issue, just because the codebase is large ! Also because it's a bit controversial, and I think to make this resolution acceptable we should also add a "include unsold products" checkbox on the advanced search, and/or display the number of hidden unsold products on a search.
This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts
We finally separated in two collections : obsolete products and others.
See #8277