Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Database backend
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Sep 2024 at 13:02 UTC
Updated:
2 Nov 2024 at 18:59 UTC
Jump to comment: Most recent
Comments
Comment #2
strykaizerComment #3
strykaizerComment #6
drunken monkeyThanks a lot for posting this issue and the MR fixing it!
Seems very sensible to me. The fact that tags on nested condition groups are ignored is clearly an oversight.
However, your code would still ignore tags nested more than one level deep (even though there is currently no use case for that). Instead, I suggest adding a new helper method and just calling it recursively – I think that would also make the code a bit cleaner.
I’m also adding a regression test.
Updated the MR, please test/review.
Comment #7
drunken monkeyComment #8
drunken monkey(Test failure is due to #3480294: Fix test failures against Drupal 11.)
Comment #9
strykaizerTested and fixes the issue.
Recursion is of course the way to go
Thanks for looking into this so quickly Thomas!
This will make a new release for Facets 3.x go much smoother ;)
Comment #10
drunken monkeyGood to hear, thanks for reporting back so quickly!
Merged. Thanks again!