AllenInstitute / biofile-finder

An open-use web application created for easy access, collaboration, and sharing of datasets through rich metadata search, filter, sort, and direct viewing in common industry applications or in our web-based 3D Volume Viewer.
https://biofile-finder.allencell.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Feature/Make fuzzy search optional #102

Closed aswallace closed 5 months ago

aswallace commented 6 months ago

Description

This is a draft of the UI side of the work to have search be exact by default with the option to toggle fuzzy search in the search modal. This should not be merged until the FES changes are deployed, I'm just opening the PR to a stable state so it can be picked up again

Changes

Here's what the shareable link would look like now: fms-file-explorer://{"groupBy":[],"filters":[{"name":"uploaded","value":"RANGE(2023-05-13T07:00:00.000Z,2024-05-14T06:59:59.501Z)"},{"name":"file_name","value":"test"}],"fuzzyFilters":[{"annotationName":"file_name"}],"openFolders":[],"sort":{"annotationName":"uploaded","order":"DESC"}}

Which would generate the following url query: from=0&limit=56&file_name=test&uploaded=RANGE(2023-05-13T07:00:00.000Z,2024-05-14T06:59:59.501Z)&sort=uploaded(DESC)&fuzzy=file_name

Testing

Tested manually with an EC2 instance of FES (the local version has the fuzzy search changes, but hasn't been deployed) and staging version of Mongo. Updated unit tests

Screenshot

image
aswallace commented 5 months ago

Branch is deprecated, closing in favor of #154