Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.8, 3.0.9, 3.0.10
-
None
-
None
-
1
Description
couchbase/subdocument.py > array_insert() needs to have the xattr keyword argument moved after the *values argument:
def array_insert(path, # type: str
|
xattr=False, # type: bool
|
*values # type: JSON
|
):
|
# type: (...) -> Spec
|
Currently, in order for this method to work the xattr keyword argument must be passed in before the values.
collection.upsert("array", []) |
collection.mutate_in("array", [SD.array_append("", "hello", "world")]) |
collection.mutate_in("array", [SD.array_insert("[1]", False, "cruel")]) |
Attachments
For Gerrit Dashboard: PYCBC-1110 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
157129,7 | PYCBC-1110: Fix sub-doc API array_append() method definition | master | couchbase-python-client | Status: MERGED | +2 | +1 |
Activity
Field | Original Value | New Value |
---|---|---|
Status | New [ 10003 ] | Open [ 1 ] |
Fix Version/s | 3.2.1 [ 17471 ] |
Fix Version/s | 3.2.0 [ 17249 ] | |
Fix Version/s | 3.2.1 [ 17471 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Workflow | Couchbase SDK Workflow [ 197595 ] | Couchbase SDK Workflow with Review [ 257545 ] |
I have commented out the docs where appropriate until the fix is merged.