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

Remove Couchbase.save({'_id':'key', 'json':'doc'}) in favor of .set() doing key name detection

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 0.8.0
    • None
    • None
    • Security Level: Public
    • None
    • Release Note

    Description

      It seems .save() was added to do some special handling (_design/doc PUTing). It leans on doc._id which is going away in 2.0, so it "smells" if nothing else.

      Additionally, leaning on .set() and cb['bucket']['key'] = 'value' for the API will give us great consistency and less confusion.

      .save() should be deprecated
      .set() should use JSON by default
      .set() should handle keys named '_design/' via the HTTP API

      Attachments

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

        Activity

          People

            BigBlueHat Benjamin Young
            BigBlueHat Benjamin Young
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty