Deleted documents show up in Query in a ListView

Bug #1213013 reported by Cris Dywan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB Qt/ QML
Fix Committed
Critical
Cris Dywan
u1db-qt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The informal way of deleting documents is this:

database.putDoc("", docId)

But Query currently wrongly includes these documents.

In a semi-related matter it may be worth having a remove() function but functionality would be the same then.

Related branches

Cris Dywan (kalikiana)
Changed in u1db-qt:
milestone: none → 1.0
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:u1db-qt at revision 104, scheduled for release in u1db-qt, milestone 1.0

Changed in u1db-qt:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package u1db-qt - 0.1.5+13.10.20130827-0ubuntu1

---------------
u1db-qt (0.1.5+13.10.20130827-0ubuntu1) saucy; urgency=low

  [ Christian Dywan ]
  * Always omit deleted/ empty Query results and update tests. (LP:
    #1213013)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 104
 -- Ubuntu daily release <email address hidden> Tue, 27 Aug 2013 19:11:29 +0000

Changed in u1db-qt (Ubuntu):
status: New → Fix Released
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Seems to me to still be the case with 0.1.5+15.04.20150327-0ubuntu1
using deleteDoc(docId).

The content is indeed vanished, but using db.listDocs() or using the db as a model returns all docs, including the one I deleted (with empty content, but still listed)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.