Allow "Sort by active state" processor to include parents

Created on 17 December 2021, almost 3 years ago
Updated 4 October 2024, about 2 months ago

Problem/Motivation

When hierarchical facet widgets are sorted by their active state, the parent widget will not be sorted. This could be desired behavior for some, but in our case it is not.

Steps to reproduce

Enable "Sort by active state" for a hierarchical facet. Select a child widget, and notice that the parent is not sorted to the top of the list.

Proposed resolution

Attached is a patch (for 1.x-dev still) that modifies the ActiveWidgetOrderProcessor to add an option that also includes parents when sorting.

User interface changes

The ActiveWidgetOrderProcessor configuration form gains a new checkbox.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands dennis_meuwissen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada gordonio

    I ran into this issue as well with 2.x but it looks like it is still there with 3.x as well. Mainly an issue with a large facet set where not all facets options are visible immediately.

    Here's a re-roll to work with 2.x and 3.x.

Production build 0.71.5 2024