zetkin / organize.zetk.in

Organizer front-end of the Zetkin system for organizing activism
21 stars 14 forks source link

PersonSelectWidget not supporting fuzzy search #1246

Closed richardolsson closed 3 years ago

richardolsson commented 3 years ago

PersonSelectWidget does not support fuzzy search, even though the search API used does. Steps to reproduce:

  1. Navigate to People > Views
  2. Create a view
  3. At the bottom of the view, type into the search field a misspelled name, e.g. "Chole" (for Chloe)

Expected results: Should find and suggest dummy persons named Chloe Actual results: Finds nothing

This is likely because PersonSelectWidget uses RelSelectInput, which performs client-side filtering for more rapid updates on type, and that filtering does not support fuzzy search.

I propose that the simplest solution is to allow RelSelectInput filtering to be disabled, and to do so for PersonSelectWidget, instead relying entirely on server-side search.