-
Notifications
You must be signed in to change notification settings - Fork 80
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
CIF-2982 - Support product filter hooks in ProductList component #966
Conversation
Codecov Report
@@ Coverage Diff @@
## master #966 +/- ##
=========================================
Coverage 89.14% 89.15%
- Complexity 2208 2211 +3
=========================================
Files 354 354
Lines 9980 9985 +5
Branches 1437 1437
=========================================
+ Hits 8897 8902 +5
Misses 787 787
Partials 296 296
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
With this approach we now have two ways to extend the query of the product list component: by using the productQueryHook of the Wouldn't it make more sense to add the product filter hook to the AbstractCategoryRetriever? That way the extension pattern remains the same. Also that the SearchResults and the ProductList use the same queries is an implementation detail, it does not mean that any ProductCollection would allow to do that. |
@buuhuu I think we have a few consistency issues here:
I don't have a good answer here, since frankly the |
Description
CategoryRetriever
fromProductList
component public.CategoryRetriever
with product filter extension. This is for setting and getting only, not actually used by this retriever.How Has This Been Tested?
Types of changes
Checklist: