Hello,

I have notice some issues (probably bugs) about facet summary option "Show a summary of all selected facets".
Currently it adds in the list of items (li) output in facet summary block the raw values imploded - ex Categories: 5, 7
* First issue, it shows the raw values of the selected items - should use display value
* Second issue, it shows an empty item (li) for each facets that are rendered in the page but have no option selected. - should check for active results.

I can make a patch for this issues, if you confirm that this should be the behavior.

And I have one question about how this option should work - I was expecting to get an imploded list of active facets links i.e
* Categories: Category 1 (link), Category 2 (link)
But I get this list:
* Categories: 1, 2 (no link)
* Category 1 (link)
* Category 2 (link)
Is this the desired output, or it's a bug?

Comments

dragos-dumi created an issue. See original summary.

dragos-dumi’s picture

Issue summary: View changes
dragos-dumi’s picture

Issue summary: View changes
borisson_’s picture

Issue tags: +Needs tests

Not sure about the second part, the first part however does sound like actual bugs. This sounds like a good place to add test-coverage for summaries!

dragos-dumi’s picture

Attaching patch for the 2 bugs. Setting as needs work as it needs tests.

dragos-dumi’s picture

Status: Active » Needs work
borisson_’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new2.24 KB
new4.11 KB

This adds the required test.

The last submitted patch, 7: facet_summary_show_a-2878851-7--testonly.patch, failed testing.

edurenye’s picture

Status: Needs review » Reviewed & tested by the community

The patch looks fine and fixes the issue, so setting to RTBC.

For me also fixes this issue #2877004: Fatal error on first facet being empty and a similar case where the result was not empty but the URL of the result was empty, and when cloned null, it thrown and exception.

borisson_’s picture

Status: Reviewed & tested by the community » Needs work

Patch needs a reroll.

dragos-dumi’s picture

Assigned: Unassigned » dragos-dumi
dragos-dumi’s picture

Status: Needs work » Needs review
StatusFileSize
new4.17 KB

rerolled patch

borisson_’s picture

Status: Needs review » Fixed

Was RTBC earlier - now checked it again, so committing this.

  • borisson_ committed 2ed4825 on 8.x-1.x authored by dragos-dumi
    Issue #2878851 by dragos-dumi, borisson_: Facet summary "Show a summary...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.