Autocomplete not working with aggregation is used

Created on 23 February 2021, almost 4 years ago
Updated 12 March 2024, 9 months ago

Problem/Motivation

I have relationship to taxonomy and added field with taxonomy term name from this relationship. So, this is duplicating results, so I need to use aggregation on this field, and when I do so the autocomplete doesn't work.

On different View I have similar thing, but with addition of combine fields filter where I combine title and term name from reference, again need to use aggregation on term name field, and same here, autocomplete showing title but not term name.

Steps to reproduce

  1. Use default Drupal content type (Article) for example
  2. Create View with fields from this content type
  3. Add relationship to taxonomy term
  4. Add field with taxonomy term name from relationship
  5. Add title field
  6. Add filter Global: Combine fields, select term name and title field, enable autocomplete, and expose it //everything's good to this step
  7. Enable aggregation
  8. Aggregate term name field you added (Count DISTINCT for example)
  9. Test filter autocomplete again //here's the issue, you'll got autocompleted titles, but without term name

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇷🇸Serbia mixerowsky

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.

  • 🇷🇴Romania vasike Ramnicu Valcea

    this sounds like an "edge case" ... more info and examples and participants could help here.

    just updating the issue - not to be "lost again" ... clean-up queue.

Production build 0.71.5 2024