Support sorting by term weight for aggregated fields

Created on 15 May 2021, about 3 years ago
Updated 26 June 2024, 3 days ago

Problem/Motivation

When creating a facet from an aggregated field that is based on a taxonomy term it is no longer possible to order by taxonomy term weight.

Facets currently partially supports the use of entities in aggregation with the TranslateEntityAggregatedFieldProcessor so it feels like it could also be within the scope of the module to support ordering within aggregated fields.

Proposed resolution

Create a TermWeightAggregatedWidgetOrderProcessor processor which would only operate on aggregated fields where the fields attached referenced entitiy_reference taxonomy term fields.

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andy_w

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.

  • πŸ‡©πŸ‡ͺGermany jan kellermann

    Fixed little bug if $field_configurations contains no key fields (for 2.x-dev).

  • @jan-kellermann opened merge request.
  • Status changed to RTBC 8 months ago
  • πŸ‡©πŸ‡ͺGermany jan kellermann

    Unfortunalety I cannot test against 2.x (only 3.x is available). So I created a MR of existing code.
    The code is running on a complex drupal since several months without problems.
    Many thanks to @andy_w

  • Status changed to Closed: won't fix 3 days ago
  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    While I think this is interesting functionality, we're currently not at the stage where we want to add more to the facets module, especially without rigorous testing. I think we should create this as a contrib extension instead, we can link to it from the readme.

Production build 0.69.0 2024