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

Implement collection.drop_collection and drop_scope

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta.2
    • None
    • None
    • 1

    Description

      While at it, I'm curious if libcouchbase will implement the admin functions? If so we should use it, rather than the rest interface.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Ellis.Breen Ellis Breen added a comment -

          The REST operations are all done through libcouchbase, in fact - it offers an lcb_http call that is already used in PYCBC to implement REST functionality.

          Ellis.Breen Ellis Breen added a comment - The REST operations are all done through libcouchbase, in fact - it offers an lcb_http call that is already used in PYCBC to implement REST functionality.
          david.kelly David Kelly added a comment - - edited

          Sure - but if there are libcouchbase apis specifically for the management stuff, we should remember to use it rather than the http interface from libcouchbase. I was worried about circuit breakers, retry logic, etc.. Though maybe they will work with the http calls too?

          Also - there are a bunch of other methods in couchbase/management/collections.py that need implementation. Here's a list: drop_collection, drop_scope, get_scope, get_all_scopes, scope_exists, flush_collection. And the IScopeSpec, along with all the options. Also – maybe we get rid of those non-idiomatic names for the Specs while we are there.

          david.kelly David Kelly added a comment - - edited Sure - but if there are libcouchbase apis specifically for the management stuff, we should remember to use it rather than the http interface from libcouchbase. I was worried about circuit breakers, retry logic, etc.. Though maybe they will work with the http calls too? Also - there are a bunch of other methods in couchbase/management/collections.py that need implementation. Here's a list: drop_collection, drop_scope, get_scope, get_all_scopes, scope_exists, flush_collection. And the IScopeSpec, along with all the options. Also – maybe we get rid of those non-idiomatic names for the Specs while we are there.

          People

            david.kelly David Kelly
            david.kelly David Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty