onestop icon indicating copy to clipboard operation
onestop copied to clipboard

Saved search DB stores filter with a schema - not URL or collection filter

Open caesterlein opened this issue 4 years ago • 0 comments

Summary

As a developer
I want to be able to store a saved search with a well known schema
So that I can have a consistent and well defined search to operate against
  • [ ] Remove the value field from the saved search table.
  • [ ] when UI saves a search, convert current filter to the search query schema, defined by the OpenAPI spec. Note the UI should already have a util for this, since this is done every time a search is performed. (Important: make sure this version of it sets paging back to zero, as saving a later page doesn't make sense.)
  • [ ] UI must be able to convert from search schema to URL or reducer format (whichever is easier, since those can be translated between themselves easily) to display and apply saved searches on the dashboard
  • [ ] use data-common JsonUtils to do comparison for if this is the same-search or not (or if in context of UI for bookmark highlight, use UI util to convert to reducer format)

caesterlein avatar Aug 17 '20 16:08 caesterlein