front-end-monorepo
front-end-monorepo copied to clipboard
Collection search issues and improvements
Package
Choose from the list:
- [x] app-project
Largely duplicate of zooniverse/Panoptes-Front-End/issues/7159
Expected behavior
- I can search for and select a collection with a display name of 3 or less characters that is not one of my most recent 100 collections
Current behavior
- collection search requests a user's most recent 100 collections (regardless of display name) and filters the 100 recent collections by display name as the first 3 characters are typed in the search input
- after 3 characters collection search makes a request to panoptes to search for the collection
- if a collection is not in a user's most recent 100 collections and is 3 or less characters it will not be selectable from collections search
Steps to replicate
- related Talk discussion: https://www.zooniverse.org/talk/17/3411492
- related FEM PRs/issues: #6127 , #6120
- related PFE PRs/issues: zooniverse/Panoptes-Front-End/pull/7150 , zooniverse/Panoptes-Front-End/pull/7124 , zooniverse/Panoptes-Front-End/issues/7121
Additional information
- related Slack thread noting Panoptes collections search code: https://zooniverse.slack.com/archives/C0DTP3L2K/p1723739207126769
- collections_controller: https://github.com/zooniverse/panoptes/blob/master/app/controllers/api/v1/collections_controller.rb#L19-L21
- index_search: https://github.com/zooniverse/panoptes/blob/master/app/controllers/concerns/index_search.rb