putDoc should optionally take a revision
Bug #1276680 reported by
Cris Dywan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
Triaged
|
High
|
Unassigned |
Bug Description
Right now using putDoc to add a document with an existing docId will fail, so it can be used only to add new documents unless they are manually deleted first. For reliable sync behavior the API needs to take an optional known revision to make a decision to replace it if it's newer.
To post a comment you must log in.
See https:/ /one.ubuntu. com/developer/ data/u1db/ conflicts for relevant discussion of how revisions need to work.