Two-way synchronization
Bug #549647 reported by
Benoit Garret
This bug affects 20 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tomdroid |
Fix Released
|
Wishlist
|
Unassigned | ||
Beta |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
The work I've done on the web-sync branch only works in the case of a one-way synchronization. Olivier is working on note editing, which will break the current synchronization code.
I'd rather plan this ahead than have to remove the sync feature. The current Tomboy code can be used as an example, it shouldn't be difficult to implement but some changes to the database schema will be needed.
Related branches
lp:~benoit.garret/tomdroid/web-sync
(Merged)
lp:~tomdroid-dev/tomdroid/two-way-sync
Rejected
for merging
into
lp:~tomdroid-maintainers/tomdroid/main
- Olivier Bilodeau: Pending requested
-
Diff: 3957 lines (+2175/-640)32 files modified.classpath (+1/-1)
AndroidManifest.xml (+3/-4)
res/layout/main.xml (+1/-0)
res/layout/note_view.xml (+42/-32)
res/menu/main.xml (+5/-0)
res/menu/view_note.xml (+48/-0)
res/values/strings.xml (+6/-6)
res/values/styles.xml (+14/-0)
res/xml/preferences.xml (+5/-6)
src/org/tomdroid/Note.java (+170/-42)
src/org/tomdroid/NoteManager.java (+93/-77)
src/org/tomdroid/NoteProvider.java (+5/-2)
src/org/tomdroid/sync/LocalStorage.java (+156/-0)
src/org/tomdroid/sync/SyncManager.java (+24/-22)
src/org/tomdroid/sync/SyncMethod.java (+62/-102)
src/org/tomdroid/sync/sd/SdCardSyncService.java (+71/-63)
src/org/tomdroid/sync/web/OAuthConnection.java (+2/-0)
src/org/tomdroid/sync/web/SnowySyncMethod.java (+116/-91)
src/org/tomdroid/sync/web/SyncServer.java (+205/-0)
src/org/tomdroid/ui/PreferencesActivity.java (+48/-45)
src/org/tomdroid/ui/Rotate3dAnimation.java (+92/-0)
src/org/tomdroid/ui/SyncMessageHandler.java (+8/-8)
src/org/tomdroid/ui/Tomdroid.java (+32/-23)
src/org/tomdroid/ui/ViewNote.java (+234/-109)
src/org/tomdroid/ui/ViewSwitcher.java (+152/-0)
src/org/tomdroid/util/NoteListCursorAdapter.java (+7/-5)
src/org/tomdroid/util/Preferences.java (+2/-2)
tests/org/tomdroid/sync/TestLocalStorage.java (+78/-0)
tests/org/tomdroid/sync/web/MockSyncServer.java (+167/-0)
tests/org/tomdroid/sync/web/MockedSyncServerTestCase.java (+81/-0)
tests/org/tomdroid/sync/web/TestFetchingFromServer.java (+119/-0)
tests/org/tomdroid/sync/web/TestUpdatingTheServer.java (+126/-0)
Changed in tomdroid: | |
status: | New → In Progress |
assignee: | nobody → Rodja (trappe) |
Changed in tomdroid: | |
importance: | Undecided → Wishlist |
Changed in tomdroid: | |
assignee: | Rodja (trappe) → nobody |
To post a comment you must log in.
Sandy Armstrong wrote on 2010/03/24 to the mailing list:
---------8<-----
The overall two-way sync algorithm is in this giant method:
http:// git.gnome. org/browse/ tomboy/ tree/Tomboy/ Synchronization /SyncManager. cs#n362
The code that is specific to syncing with the Tomboy Web REST API is
in the WebSyncService add-in, and perhaps the best place to start
looking is here:
http:// git.gnome. org/browse/ tomboy/ tree/Tomboy/ Addins/ WebSyncService/ WebSyncServer. cs
--------->8-----