Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-7

An interface to access Couchbase Views is needed

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0 Beta
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Need an interface to be able to access Couchbase Views. Even without the ability to create and delete views, accessing view results is important, as views can be created through the Web UI interface.

      The specific implementation should be specific to, and familiar to the surrounding language and library, but it should have some general capabilities:

      • List views from a given cluster
      • Instantiate an Object that represents a view on a given cluster
      • Assemble query parameters for a View
      • Retrieve non-reduced results from a View
      • Be able to get the underlying document from the non-reduced results (this request should flow over binprot)
      • Retrieve reduced results from a View (the format is the same, but there is no associated docid)
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        looking at the readme files now seems like some view functionalities are already implemented :

        1. save a design document
        2. right now with no _rev, we can only create, we can't update
          try:
          doc_id = newbucket.save(design)
          except:
          doc_id = "_design/testing"

        rows = newbucket.view("_design/testing/_view/all")
        for row in rows:
        print row

        Keith,
        can you please go through this checklist and let us know which features need to be worked on ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - looking at the readme files now seems like some view functionalities are already implemented : save a design document right now with no _rev, we can only create, we can't update try: doc_id = newbucket.save(design) except: doc_id = "_design/testing" rows = newbucket.view("_design/testing/_view/all") for row in rows: print row Keith, can you please go through this checklist and let us know which features need to be worked on ?
        Hide
        BigBlueHat Benjamin Young added a comment -

        Keith, can you get us an update on the status of this issue?

        Much thanks!

        Show
        BigBlueHat Benjamin Young added a comment - Keith, can you get us an update on the status of this issue? Much thanks!
        Hide
        BigBlueHat Benjamin Young added a comment -

        Think you're leading this charge. Thanks!

        Show
        BigBlueHat Benjamin Young added a comment - Think you're leading this charge. Thanks!
        Hide
        ingenthr Matt Ingenthron added a comment -

        @benjamin is completing this in 0.8

        Show
        ingenthr Matt Ingenthron added a comment - @benjamin is completing this in 0.8
        Hide
        BigBlueHat Benjamin Young added a comment -

        The one remaining piece--"include docs over binary protocol" is stalled due to get_multi()

        However, the API can still handle include_docs over HTTP, so I'm closing this one, and adding another one for include docs over binary protocol.

        Show
        BigBlueHat Benjamin Young added a comment - The one remaining piece--"include docs over binary protocol" is stalled due to get_multi() However, the API can still handle include_docs over HTTP, so I'm closing this one, and adding another one for include docs over binary protocol.
        Hide
        BigBlueHat Benjamin Young added a comment -

        http://www.couchbase.com/issues/browse/PYCBC-63
        Binary protocol improvements related to this API & include_docs

        Show
        BigBlueHat Benjamin Young added a comment - http://www.couchbase.com/issues/browse/PYCBC-63 Binary protocol improvements related to this API & include_docs

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes