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.
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
Added the fuzzy search parameter to state and as a FileExplorerURL parameter
Currently have a placeholder checkbox to allow users to toggle fuzzy search
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
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
FileExplorerURL
parameterHere'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