Uploaded image for project: 'Social Justice Repair Kit'
  1. Social Justice Repair Kit
  2. SJRK-443

Improve CouchDB view datasource to make the reusable with different filtering options

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jobara Justin Obara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: