Closed (fixed)
Project:
Facets
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Oct 2015 at 14:18 UTC
Updated:
28 Oct 2017 at 09:44 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
tom verhaeghe commentedComment #3
tom verhaeghe commentedThere is no getChildren() method in the \Drupal\facetapi\Result\Result class. I'd implement this, but right now I can't even debug this because saving facets doesn't work properly yet (error and page breaks). So I'm waiting until this works again ...
Comment #4
borisson_We need to figure out how to add the children for a result and how to implement
::getChildrenComment #5
borisson_Removing tag, was discussed in the facetapi hangout of 09/11.
I opened a new issue that we should fix before we can continue work on this. Postponed this issue on that one #2612078: Facet children
Comment #6
borisson_I think we can work on this more once #2807333: Implement hierarchical structures in facets is in.
Comment #7
borisson_The hierarchy is in - back to active.
Comment #8
tom verhaeghe commentedI've created ShowOnlyDeepestLevelItemsProcessor loosely based on what I found in the facetapi_bonus processor with the same name.
Comment #9
borisson_This has to be the longest time between assigning an issue and uploading a first patch for it :-) Thanks so much! This will need a test but at first glance this looks great!
This looks like a typo (/s/processpr/processor/)
Comment #10
tom verhaeghe commentedI was blocked by the other issue ;-)
Fixed the typo
Comment #11
tom verhaeghe commentedComment #12
j3ll3nlHow is this working for you. For me the logic of creating the hierarchy is (#2807333) is being run before this build code comes in. This results in an empty facet because of the missing children.
Comment #13
extravioar commentedI'm trying to understand how it all works:
why is hierarchy handled if a separate "if statement" in class DefaultFacetManager (line 310)
and not as a new Processor at STAGE_BUILD
Comment #14
borisson_Back to needs work, we need to really have tests before we commit this.
Comment #15
borisson_Start of tests.
Comment #16
brentgTested the patch and works for me. (used search_api and database search)
Scheduled the patch for a new testing since it has been a while.
Edit: looks like patch has failed and will need work. Fail related to http://cgit.drupalcode.org/facets/commit/?id=6cbf1565e6db9ede510dbc81a5a...
Comment #18
brentgUpdated the test to the changes in http://cgit.drupalcode.org/facets/commit/?id=6cbf1565e6db9ede510dbc81a5a...
Comment #19
borisson_