Results are not unique

Created on 30 December 2022, over 1 year ago
Updated 22 January 2023, over 1 year ago

Problem/Motivation

If the field has the same value on different entities, the same result will appear multiple times.

Steps to reproduce

  1. Create a first node and set the searched field value to foo.
  2. Create a second node and set the searched field value to foo.
  3. Create a third node and start typing foo. Two identical results will be suggested.

Proposed resolution

Just adding distinct to the query is not enough, we have to group by the searched field.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.69.0 2024