Service - Category Tree Standard
Revision as of 11:28, 19 December 2020 by Sven the Barbarian (talk | contribs)
Overview
Handler service for the standard category tree type.
Repository
https://bitbucket.org/stb_vit/category-tree-standard/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
..
CategoryTreeNode
Fields
- categoryTreeNodeId
- (partition key)
- ...
All child category results should show in a parents results
- A child category might include products that are not part of a parent category, but when browsing the parent category we want to show all results that return for child categories.
- We can do this by accumulating all child filters into the parents filter.
- If all children share the same catalog default filter this is not too difficult, we add an or filter that includes all child categoryId's.
- If some children have custom filters we will need to separate them out as a separate or filter that groups that child's categoryId with it's filter
- I believe processing these large filters can still be efficient because hash of filter exists for the full (or any partial) filter and we cache results for each part of the filter.
Adding client submitted filter
- Would get added as an and grouped filter.
Ideas
- This service could hold a list of Products for each category and do things like record popularity etc.. partial lists would be OK, anything we want to add.
- Our current structure allows one category to have multiple parents, that child category will have the same settings no matter what path you travel through the tree to reach it. Not sure how to handle presentation of the parent category/location for any category, maybe most popular, or simply first found?