-
Notifications
You must be signed in to change notification settings - Fork 121
[Local catalog] Don’t show unsupported products in search results #16389
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
[Local catalog] Don’t show unsupported products in search results #16389
Conversation
|
|
iamgabrielma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Products that have been searched before still will show under "popular searches" despite being unsupported after the action to change their status, not sure if should be part of the scope of this PR, handled separately, or not handled at all:
- search for a product
- trash it
- perform partial sync
- open the search, product will display there, then immediately be removed as soon as we start to type something
| Cached omelette | Trashed omelette |
|---|---|
![]() |
![]() |
Otherwise LGTM!
Good catch. The popular products aren't fed from the local catalog, so this is an existing issue. We could refresh them at the same time as we do an incremental sync, at least from PTR/purchase. I'll see if it's straightforward and do it here if it is... but I don't think it's a must have. Thanks for the review |
Generated by 🚫 Danger |
Done in 737641a – it's not the neatest thing in the world, but on the plus side it make the fix work with the non-local catalog approach as well, and we have other specific controller calls in the item list (e.g. coupon creation.) I suspect we'll eventually replace the popular products with something from the local catalog too |



Description
This PR prevents trashed/draft/pending products from being shown in search results.
Test Steps
RELEASE-NOTES.txtif necessary.