Merge lp:~jamesh/bindwood/recording-observer into lp:bindwood
Status: | Merged |
---|---|
Approved by: | dobey |
Approved revision: | 35 |
Merged at revision: | 29 |
Proposed branch: | lp:~jamesh/bindwood/recording-observer |
Merge into: | lp:bindwood |
Prerequisite: | lp:~jamesh/bindwood/refactor-desktopcouch-access |
Diff against target: |
312 lines (+288/-0) 4 files modified
modules/sync.jsm (+119/-0) mozmill/shared-modules/bookmarks.js (+1/-0) mozmill/test-files/feed.atom (+18/-0) mozmill/tests/test_sync_observer.js (+150/-0) |
To merge this branch: | bzr merge lp:~jamesh/bindwood/recording-observer |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zachery Bir (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+49335@code.launchpad.net |
Commit message
Add a bookmark observer implementation that just records the GUIDs of changed items.
Description of the change
This is part of the refactoring work on Bindwood. Rather than directly updating CouchDB as bookmarks change, I want to delay those updates so they can be done together with the main synchronisation process.
This branch includes a new bookmarks observer implementation that simply records the GUIDs of changed items as the bookmarks change. Unlike the existing Bindwood schema, I want to store parent GUID references with bookmarks, so reparenting a bookmark should imply that the bookmark has changed, rather than just its parent.
The observer depends on another object to handle the local ID -> GUID mapping, which is not included in this branch: that will come later. For now, I've just worked with a fake implementation in the tests that derives GUIDs from local IDs in a simple way.
This looks great