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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      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

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

        Activity

        BigBlueHat Benjamin Young created issue -
        BigBlueHat Benjamin Young made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 18667 ] Couchbase SDK Workflow [ 44576 ]

          People

          • Assignee:
            BigBlueHat Benjamin Young
            Reporter:
            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