Regression in Views argument plugins (date and all terms)

Created on 18 April 2023, over 1 year ago
Updated 9 November 2023, about 1 year ago

Problem/Motivation

I updated my site (drupal 9) from search_api 1.28 to 1.29 and think I discovered a bug relating to the changes in this issue: https://www.drupal.org/project/search_api/issues/3260862 ๐Ÿ“Œ Add a $add_directly parameter to QueryInterface::createConditionGroup() Fixed , specifically this line: https://git.drupalcode.org/project/search_api/-/commit/d80778b51e772572d....

My commerce catalog is created using the SearchApiAllTerms contextual filter and rendering the view on a taxonomy term page to show all products that belong to it. After updating, the view just shows EVERY product regardless of the taxonomy term you are viewing. The problem appears to be that the condition is never actually added to the query.

Steps to reproduce

  • Create a search api view.
  • Add the SearchApiAllTerms conextual filter
  • Enter an ID for the contextual filter in the preview area
  • The results are not filtered

Proposed resolution

  • Ensure the query condition is added to the query object in the SearchApiAllTerms.
  • Investigate whether other views plugins have the same issue.
๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Views integration

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States ericchew

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

Comments & Activities

Production build 0.71.5 2024