- Issue created by @dewalt
- Status changed to Needs review
almost 2 years ago 2:32pm 21 September 2023 - last update
almost 2 years ago 424 pass, 2 fail - Status changed to Needs work
3 months ago 7:40pm 29 April 2025 - π§π·Brazil andre.bonon
I tested the patch on Facets 3.0, and it worked, but I had to make some changes. I had to implement the supportsFacet() method to work properly with facets_exposed_filters.
Iβll create a fork soon. - Merge request !301#3388894 Add processor to show parents in hierarchical facets. β (Open) created by andre.bonon
- π§π·Brazil andre.bonon
I assumed this new processor should only work with taxonomy terms, so I added the same check used in TermWeightWidgetOrderProcessor. To avoid duplicating code, I encapsulated the logic into a trait and updated that class to use it as well.
- πΊπΈUnited States damienmckenna NH, USA
IMHO this is a bug report, and when enabled is the expected behavior.
I've been pulling my hair out over this, trying to work out why the term hierarchy is not shown, only for it to be a problem with the module.
Thank you for this fix!
- πΊπΈUnited States damienmckenna NH, USA
This works great, once you set the processors to the correct order, e.g.:
* Show parents
* URL handler
* Transform entity ID to label
* Build hierarchy treeMarking RTBC to get the maintainer to take a look.
- πΊπΈUnited States damienmckenna NH, USA
On a local barebones 11.1.x install with the latest Facets 3.0.x I could not reproduce the problem that this resolves.
We might need to dig into it a little more and add test coverage to confirm exactly what behavior we're after, because I wonder how much of it is a data problem?
- πΊπΈUnited States damienmckenna NH, USA
On a website I'm using this with I'm seeing some unexpected behavior where terms are being placed under incorrect parent items. For example, I have one term which does not have a parent in the database, but it is placed under a term which isn't even in the vocabulary that the first term comes from.
- Status changed to Needs review
about 1 month ago 11:31pm 2 July 2025 - π§π·Brazil andre.bonon
I set up a new sandbox and was able to identify what was missing in the original one.
It turns out the Index hierarchy processor wasnβt enabled on the site where I encountered the issue.
I'm not sure if the ShowParents processor is still needed.