Merge lp:~vds/desktopcouch/remove_delete_flag into lp:desktopcouch
Status: | Merged |
---|---|
Approved by: | John Lenton |
Approved revision: | 198 |
Merged at revision: | 197 |
Proposed branch: | lp:~vds/desktopcouch/remove_delete_flag |
Merge into: | lp:desktopcouch |
Diff against target: |
316 lines (+81/-49) 3 files modified
desktopcouch/records/server.py (+41/-4) desktopcouch/records/server_base.py (+12/-13) desktopcouch/records/tests/test_server.py (+28/-32) |
To merge this branch: | bzr merge lp:~vds/desktopcouch/remove_delete_flag |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+40038@code.launchpad.net |
Commit message
Instead of deleting records we are marking as deleted in private application annotation, but we don't want to maintain "deleted" records in the database for ever, it's bad for couchdb both for views performance and coding the views.
What we want to do is move the records to a "trash" database that can be replicated and can offer undo functionalities.
Description of the change
Instead of deleting records we are marking as deleted in private application annotation, but we don't want to maintain "deleted" records in the database for ever, it's bad for couchdb both for views performance and coding the views.
What we want to do is move the records to a "trash" database that can be replicated and can offer undo functionalities.
I LOVE it! Also, the tests pass... +1000