Metadata
- Source
- SJRK-443
- Type
- Improvement
- Priority
- Major
- Status
- Open
- Resolution
- N/A
- Assignee
- N/A
- Reporter
- Justin Obara
- Created
2020-12-14T11:36:19.030-0500 - Updated
2021-02-04T08:06:44.537-0500 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Storytelling Tool Server
Description
Currently he couchDB view datasources are quite specific in that if filtering needs to be applied the datasources cannot be reused easily, in particular if the filtering is very different. For example:
/%db/_design/%designDoc/_view/%viewId?key=[%22%authorID%22%2C%22%storyId%22]
In the above example you can only use the datasource with the specified key values interpolated. However, you could use this same view with a range of keys using the {{startkey}} parameter instead.
Should investigate overriding the resolveUrl invoker to allow for providing the query paramters via the directModel completely. In that way the view can be used for different filtering on the same view.