Enhance Taxonomy Depth Filtering: Support for Multiple Depth Values

Created on 29 March 2025, 21 days ago

Problem/Motivation

The existing module allows limiting taxonomy terms based on a single depth value. However, there is no support for specifying multiple depth values, which restricts flexibility in displaying taxonomy-based results.

Steps to reproduce

  1. Configure the module to limit taxonomy terms based on depth.
  2. Attempt to enter multiple depth values.
  3. Observe that only a single depth value is accepted, limiting the result display.

Proposed resolution

  • Extend the module to support multiple depth values for taxonomy term filtering.
  • Modify the processor logic to handle multiple depth inputs.
  • Ensure that the dependee facet functionality remains unaffected.

Remaining tasks

  • Implement patch to allow multiple depth values.
  • Test the updated functionality with different taxonomy configurations.
  • Update documentation to reflect the new feature.

User interface changes

  • Update settings form to accept multiple depth values instead of a single input.

API changes

  • Modify relevant functions to process multiple depth values.

Data model changes

  • No changes expected in the data model.
📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India DhruvR

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

Comments & Activities

  • Issue created by @DhruvR
  • 🇮🇳India Nayan Arora

    This patch adds support for specifying multiple depth values.

    Changes Included:

    1. Modified the settings form to accept multiple depth values.
    2. Updated the processor logic to handle multiple depths for taxonomy term filtering.

    Steps to Test:

    1. Apply this patch to the module.
    2. Navigate to the field facet settings and enter multiple depth values in a comma-separated list of values.
    3. Verify that the taxonomy terms are filtered correctly.

    Please review and provide feedback!

  • 🇮🇳India DhruvR

    Thank for the patch, working for me.

Production build 0.71.5 2024