Dan Mills
c8f1c3219e
disable unused engines; fix trackers trying to call enable which is gone now; improve bookmarks tracker logging
2009-01-13 16:55:51 -08:00
Dan Mills
2729d012ee
make tracker return true/false when adding a changed ID to indicate if it was a valid add or not; change bookmarks & history trackers to match; fix some problems in bookmarks tracker
2009-01-13 15:55:35 -08:00
Dan Mills
5a6cb633ba
ignore/unignore specific weave IDs instead of a blanket enable/disable of the tracker during sync.
2009-01-13 14:43:21 -08:00
Dan Mills
f5012bd4b8
small getchildren/getsiblings cleanup
2009-01-13 13:40:40 -08:00
Dan Mills
f93e31391a
when an orphan bookmark is found, reparent it to the unfiled bookmarks folder
2009-01-08 21:33:59 -08:00
Dan Mills
3079faacf5
add clients sync (list of clients with names and types); make it simpler to create Engine subclasses; remove the 2nd 'authenticator' parameter for Resources; resetServer is now wipeServer; consider 0 an invalid place ID (fixes bug when calculating item depths); add a Svc global exported from utils.js where commonly used services can live
2009-01-06 13:54:18 -08:00
Dan Mills
f706c5158c
fix depth/index record generation
2009-01-02 21:13:32 -08:00
Dan Mills
ff90a20ee7
extra debugging to catch getFolderIdForItem errors
2009-01-02 19:35:23 -08:00
Dan Mills
5968d4080e
fix tracker's onItemRemoved
2009-01-02 16:16:38 -08:00
Dan Mills
3a796fb008
add a _getWeaveParentIdForItem method; fix getAllIDs; add a createMetadataRecord method
2009-01-02 13:49:19 -08:00
Dan Mills
08400bd281
add a generic cache class for storing records during reconciliation. cache has 100 item limit, and is cleared before and after reconciliation so the OS can reclaim memory after GC
2008-12-30 23:52:20 -08:00
Dan Mills
90bae8f088
make engine keep less records in memory by limiting the outgoing queue to a maximum of 100 records, and fetch the rest from the store each time
2008-12-29 23:28:17 -08:00
Dan Mills
bf5efd53ba
switch to generating individual bookmark records directly from the places store, without using a cache (to improve memory performance); create objects for bookmark types; temporarily disable history sync
2008-12-28 19:59:44 -08:00
Dan Mills
3bf24e2364
Various engine/bookmark changes:
...
* Rely on the server to sort incoming records, remove all sorting code client-side.
* Streamline sync to be able to process incoming records one at a time, as soon as they are downloaded. This changes reconciliation to be able to process a single incoming record.
* Engine base class will automatically convert parentid, depth, and sortindex into toplevel WBO objects. This is good for now but kinda broken, engine subclasses should really be generating WBO records themselves.
* Since index is now a toplevel WBO property, there is no need for the bookmarks sync code to subclass recordLike.
* Refactor bookmarks store to be a little cleaner and work directly with records instead of "commands".
2008-12-23 11:30:31 -08:00
Dan Mills
b043c0298e
change engine to process (download, reconcile, apply changes) incoming records one by one
2008-12-19 11:48:09 -08:00
Dan Mills
027993146e
typo fix
2008-12-18 01:09:17 -08:00
Dan Mills
55a9524e8c
override _itemExists, itemExists (no _) checks for cached items, then calls that
2008-12-17 02:29:28 -08:00
Dan Mills
9c65c6203d
api change for stores, deal with records not 'commands'
2008-12-16 17:06:45 -08:00
Dan Mills
b1e7e421bc
merge upstream changes
2008-12-12 13:57:05 -08:00
Dan Mills
0b0cd0ecfc
remove slightly misleading comment
2008-12-12 13:54:19 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
a77aeb9f4c
On Fennec there is no microsummaries service, so I made the BookmarksEngine catch the exception if the service is undefined, and skip commands that would require it to create a microsummary, logging warnings instead.
2008-12-11 14:26:20 -08:00
Dan Mills
6bf68420c8
enable history sync (not working yet)
2008-12-09 12:26:14 -08:00
Dan Mills
8e9523ee72
make changeItemID exclusively a store method
2008-12-08 13:21:25 -08:00
Dan Mills
e11a3250a5
remove sync cores, they are no longer used; remove sharing code from bookmarks (we can bring it back when we need it again, needs work); have the engine give hints to the store about when to wrap all items and cache them (to make subsequent calls to wrap one item fast); move serializeItem/getAllIDs into the store
2008-12-08 09:53:32 -08:00
Dan Mills
52ee1c18f5
tracker now caches places id -> guid mappings, since otherwise it can't retrieve the correct guid on item removal (because the callback happens after the item is removed)
2008-12-06 00:12:40 -08:00
Dan Mills
0d6ea4b75d
disable tracker for entire sync run. make sure tracker is re-enabled at the end
2008-12-05 00:55:19 -08:00
Dan Mills
a7fe7a2dff
use callbacks instead of snapshot diffs to figure out what changes to send to the server
2008-12-05 00:39:54 -08:00
Dan Mills
a068015870
fix bookmarks tracker by removing yield calls (which of course don't work as callbacks for nsIBookmarksObserver)
2008-12-02 16:46:24 -08:00
Dan Mills
a10a4d3bfd
add logic to detect when the same item is in both incoming & outgoing queues, but with different IDs - change the local ID in that case
2008-11-27 00:25:28 +09:00
Dan Mills
669b52e0de
decrypt incoming items all in one go so as to sort them by index (which is inside the payload); don't attempt to change the index of an item if we're also changing its folder; only change index/parent if it's different from current value
2008-11-26 14:07:18 +09:00
Dan Mills
d2b71a81ea
query the bookmarks service to find out if we have an item (instead of our snapshot cache)
2008-11-25 14:49:18 +09:00
Dan Mills
4e0bcf16b3
fix bookmark deletion sync
2008-11-25 01:49:02 +09:00
Dan Mills
529df21f87
work with NewEngine
2008-11-20 09:21:12 +09:00
Dan Mills
bcc82d82b7
remove some sharing code, derive from NewEngine
2008-11-06 19:18:46 -08:00
Dan Mills
777ac672ee
hg merge
2008-11-03 15:02:00 -08:00
Dan Mills
25a8c72d97
fix log4moz calls (new api), fix module imports for renamed modules
2008-11-03 15:00:38 -08:00
Dan Mills
84f34f44c7
disable bookmark sharing hooks
2008-10-16 12:30:30 -07:00
Dan Mills
54aa798d98
catch exceptions from microsummaries that don't have a static title set
2008-08-13 15:23:15 -07:00
Anant Narayanan
b5905c72cf
Automated merge with ssh://anarayanan@mozilla.com@hg.mozilla.org/labs/weave
2008-08-04 17:23:36 -07:00
Anant Narayanan
b5847e6adf
Asynchronous bookmark sharing (bug 449113, r=thunder)
2008-08-04 17:23:23 -07:00
Dan Mills
92d6278f39
filter out invalid tags when applying edit commands
2008-07-31 00:21:22 -07:00
Dan Mills
cadfaec0d3
split Engine into SyncEngine and FileEngine
2008-07-25 01:06:23 -07:00
Chris Beard
d8dd14adc2
* major revision to the login dialog to be more robust, adding error handling, styling and a help link
...
* some minor hacking of the login progress to improve performance
* expanded the application exit sync dialog to be a general modal sync dialog that will display whenever appropriate (e.g. during initial setup, on manual "sync now" requests, and on application exit)
* added a progress meter and status messages to the modal sync dialog to provide users with a better understanding of what's going on, and to assist in debugging
* added ability to cancel a modal sync request, including on application exit. when cancel is clicked on by the user, it will attempt to cancel the sync at the next opportunity (i.e. before the next sync engine is processed)
2008-07-09 17:17:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3958272f2f
Made bookmarkSharingManager._updateOutgoingShare tolerant of outgoing shares that are lacking a server path annotation: it will warn that they're invalid and return, rather than dying.
2008-07-09 16:57:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3b9c5862fe
Made wrapping of outgoing shares not crash if an outgoing share is missing an exptected annotation.
2008-07-09 13:45:10 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
641eb1a7b6
Restored a line in bookmarkSharingManager.js which I took out by accident when removing debugging dumps and stuff, changeset 969. It should not have been taken out; without it you get 'mounts undefined' error.
2008-07-09 13:24:49 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f85ccd8e03
I think I have fixed updateIncomingShare now. So everything should work, if I share with a user not myself.
2008-07-08 22:39:05 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
ce41859570
Removed a bunch of dump statements that were in bookmarkSharingManager for old debugging stuff that is now done; they were just cluttering up the log.
2008-07-08 15:05:24 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
03f88e3999
updateOutgoingShare now explicitly encodes data to json before encrypting and uploading.
2008-07-08 14:52:31 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
d8efbc2d3a
Fixed a typo in sendXmppNotification call
2008-07-08 14:51:14 -07:00