Commit Graph

657 Commits

Author SHA1 Message Date
Dan Mills
f65179b732 set guid when creating history entries 2009-01-07 17:46:31 -08:00
Dan Mills
c8c5ae0467 fix Cache 2009-01-07 17:45:17 -08:00
Dan Mills
46e7f4e44c correctly maintain linked list pointers in cache 2009-01-07 16:43:49 -08:00
Dan Mills
7167b95ceb Bug 472480: catch errors when changing history item IDs 2009-01-07 15:01:12 -08:00
Dan Mills
90d45aefc0 catch undefined URIs in makeURI; use Svc global to cache IO service 2009-01-07 14:22:02 -08:00
Dan Mills
c3dc0195a6 fail recordLike if either record is null (deleted) 2009-01-07 13:05:05 -08:00
Dan Mills
ff240dd3ce 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
b707751a28 partially re-enable client data (guid,name,type) 2009-01-03 01:40:22 -08:00
Dan Mills
767ad5d9b3 update history engine to work again with latest engine changes, and re-enable history sync 2009-01-03 01:04:17 -08:00
Dan Mills
34a114606d fix depth/index record generation 2009-01-02 21:13:32 -08:00
Dan Mills
df54949485 extra debugging to catch getFolderIdForItem errors 2009-01-02 19:35:23 -08:00
Dan Mills
cc914050b2 drop _isEqual debug statements to trace level 2009-01-02 17:35:47 -08:00
Dan Mills
41bd8b02b9 consider sortindex when checking if a remote record is the same as a local one 2009-01-02 17:27:45 -08:00
Dan Mills
4cb774d408 remove extra debug code 2009-01-02 16:17:36 -08:00
Dan Mills
07caef3f67 warn when trying to add an undefined guid to the tracker's changes list 2009-01-02 16:17:09 -08:00
Dan Mills
fd1579088c fix tracker's onItemRemoved 2009-01-02 16:16:38 -08:00
Dan Mills
2754039971 fix/further simplify reconciliation 2009-01-02 15:51:35 -08:00
Dan Mills
62c5aa360c remove 'outgoing' record cache (generate outgoing records at send time); clear the store cache and force a GC after reconciliation; push depth+index (metadata) records after regular (full) records; simplify + better comment reconciliation function; fix low mem check 2009-01-02 13:51:38 -08:00
Dan Mills
5e7867a4de add a _getWeaveParentIdForItem method; fix getAllIDs; add a createMetadataRecord method 2009-01-02 13:49:19 -08:00
Dan Mills
f19e7c550a change pushDepthRecord to pushLiteral (takes an object instead of a resource; omits the resource upload filters step) 2009-01-02 13:46:55 -08:00
Dan Mills
0f96797713 fix cache typo. remove wrapDepth, it will be replaces with a different method 2009-01-02 13:36:28 -08:00
Dan Mills
4874eb740f limit json filter's debug output 2009-01-02 13:35:40 -08:00
Dan Mills
f5a1c1d230 improve WBORecord's toString() 2009-01-02 13:20:19 -08:00
Dan Mills
d04e52f8f5 typo fix 2008-12-30 23:56:53 -08:00
Dan Mills
5e3ac9586e 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
380b614133 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
6b260498e0 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
ff39e896cf really actually fix login errors this time 2008-12-27 12:15:45 -08:00
Dan Mills
e53b2d78b2 half baked replace by title method 2008-12-27 12:15:26 -08:00
Dan Mills
58b9b98990 print observer notifications to debug log 2008-12-27 12:15:04 -08:00
Dan Mills
141052a67a add some makefile magic for creating release & snapshot builds more easily 2008-12-27 00:11:41 -08:00
Dan Mills
58318f5332 remove commented-out code 2008-12-26 21:50:07 -08:00
Dan Mills
8a57024bf8 force GC, makes sync of many items possible on fennec 2008-12-26 21:49:17 -08:00
Dan Mills
9ac0dce95a Bug 471076: explicitly check login succeeded 2008-12-26 16:08:55 -08:00
Dan Mills
aff056726e change serverURL to use 0.3 url schema 2008-12-23 13:51:30 -08:00
Dan Mills
6479c553a7 bump version to 0.2.93 2008-12-23 12:17:40 -08:00
Dan Mills
62a45ad0ab 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
92a77b80e1 remove accidentally committed logging calls 2008-12-23 11:23:10 -08:00
Dan Mills
7d1322c001 add a method to wrap a depth-only record (just depth and guid, nothing else) 2008-12-23 11:22:29 -08:00
Dan Mills
9c44454330 add depth and sortindex getters, and a toString for nicer printing 2008-12-23 11:20:20 -08:00
Dan Mills
5fd4b9ed13 add a method to push a depth-only record into a collection 2008-12-23 11:19:33 -08:00
jonathandicarlo@user-64-9-236-168.googlewifi.com
8f14709c66 Removed extra debug code from service.js 2008-12-21 14:59:33 -08:00
jonathandicarlo@user-64-9-236-168.googlewifi.com
dc02f68f49 Weave on Fennec will no longer attempt to generate SSH keys -- for this release, you need to have a Weave account already and then connect Fennec to it. 2008-12-21 14:41:17 -08:00
jonathandicarlo@localhost
4e59b0d4d7 Wrote some scaffolding for the Fennec-weave UI -- doesn't do anything yet. 2008-12-21 14:08:33 -08:00
Dan Mills
f8683e6d3d merge upstream changes 2008-12-19 17:01:03 -08:00
Dan Mills
efdd9ff7cf fix typo in history sql queries, clarify valid sort order values for collections 2008-12-19 17:00:12 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
ad9eb3e4e1 Merged 2008-12-19 15:52:20 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
54d7de2ca4 Major rehaul/simplification of the Fennec UI for connecting to your Weave account 2008-12-19 15:48:40 -08:00
Dan Mills
676e05f069 don't filter downloads on a PUT; fail permanently on http status 400-499, 501, 505 2008-12-19 15:24:37 -08:00
Dan Mills
08512b99a5 change engine to process (download, reconcile, apply changes) incoming records one by one 2008-12-19 11:48:09 -08:00