-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent search for collections behavior #6120
Comments
@yshish I've copied your original collections search bug report here. Thanks again! |
I just realised that this is a really simple bug in my original collections search code. The text box isn’t waiting for search results to be fetched from Panoptes. #6127 fixes it. |
With five characters or more, you should be seeing whichever collections are sent back by the collections search here: My own experience is that the Panoptes full-text search doesn't always match what you'd expect for short search strings. That's also true for other full-text searches, such as searching projects by name, or Zooniverse users by login. |
Package
Choose from the list:
Describe the bug
The 'search for collections' feature is intended to return a list of a user's collections where the collection name matches the search text-input.
The search behavior is inconsistent and originally reported in this PFE Issue: zooniverse/Panoptes-Front-End#7121
To Reproduce
In the video below my account has six collections. Three have the word 'birds' in the name:
When I search three letters 'bir', all three collections appear. However, when I search with four letters 'bird', all six of my collections appear regardless if bird is in the name. When I type five letters 'birds', only the first two collections with birds in the name appear. When I type a space after the five letters 'birds ', the list of collections is filtered to the three with 'birds' in the name.
This behavior is unexpected and buggy. Users should be able to type a string of text into the search field and see list of their collections where the name of the collection matches the string of text.
Screenshots
birds.mov
Additional Info
Collections search last edited in #4867
Link to CollectionsModal search field in the codebase.
CollectionsModal Storybook
The text was updated successfully, but these errors were encountered: