Commit graph

3958 commits

Author SHA1 Message Date
Ben Gotow
ce14e3b12e fix(specs): Fix AccountStore specs 2016-12-01 13:50:31 -08:00
Ben Gotow
6fb08f55c5 fix(accounts): Save both local and cloud tokens per account 2016-12-01 13:35:20 -08:00
Evan Morikawa
d722e6c224 bump(k2) 2016-12-01 15:45:51 -05:00
Evan Morikawa
77799519e4 fix(spec): fixed specs for nylas-sync-worker 2016-12-01 14:00:20 -05:00
Juan Tejada
527de80ad2 fix(categories): Fix tasks for moving threads in Gmail
Since our backend now reflects the actual gmail model, a thread actually
has folder and labels. Updating our N1 data model to reflect that would
take too much time right now.

Instead, I updated the task factory to generate both ChangeLabel and
ChangeFolder tasks when moving threads for gmail, by detecting if its
moving to all, trash, or spam, or returning to inbox (if moving
something to inbox, just makes sure we move to all as well)

TODO: there are still inconsistencies because k2 doesn't generate unique
ids across the entire database, which causes 3 labels and 3 folders to
have the same ids. In our code, we expect all categories to have
distinct ids
2016-12-01 10:39:53 -08:00
Evan Morikawa
278a4d16d4 fix(spec): progress on spec fixes for sync worker 2016-12-01 13:17:55 -05:00
Juan Tejada
d409a5a3f9 fix(delats): Warn when receiving unkown obejct class 2016-12-01 09:14:02 -08:00
Evan Morikawa
380f370e7d fix(sync): Support N1Cloud auth errors. Fix LongConnection cleanup 2016-12-01 12:04:37 -05:00
Evan Morikawa
58874e8ad3 fix(delta): JSON blob persist failed to save properly 2016-12-01 11:04:19 -05:00
Evan Morikawa
b51c6e0bd3 bump(k2) 2016-12-01 10:31:14 -05:00
Ben Gotow
ed74e454d2 fix(deltas): Fix deltaProcessor handling deletes wrong 2016-11-30 17:00:11 -08:00
Ben Gotow
daed7146b5 fix(deltas): Delta.id is now a transaction id, need objectId 2016-11-30 16:53:52 -08:00
Ben Gotow
063f38f211 fix(deltas): We’ve been flipping deltas by accident for a while! 2016-11-30 16:51:51 -08:00
Jackie Luo
b7b451bdff (nylas-api): Convert to ES6 2016-11-30 16:27:25 -08:00
Juan Tejada
dfee7ea9b6 fix(k2) fix local sync deltas 2016-11-30 16:13:26 -08:00
Juan Tejada
e4460d3577 bump submoduels 2016-11-30 15:09:17 -08:00
Evan Morikawa
3a72987f4d fix(delta): default cursor to 0 if no transactions exist yet 2016-11-30 17:56:59 -05:00
Evan Morikawa
3d4035ac64 fix(delta): fix issues with delta sync 2016-11-30 17:55:45 -05:00
Jackie Luo
a177146a6f fix(auth): Make N1 Cloud API request correctly 2016-11-30 14:13:46 -08:00
Jackie Luo
2f8a1d2b6e fix(identity): Require NylasAPIRequest correctly 2016-11-30 14:13:06 -08:00
Evan Morikawa
5582782ddd refactor(delta): add a second delta stream, convert to es6, and cleanup
This reverts commit ee5609bdb0.

Updates to nylas sync worker to support multiple cursors

Convert NylasSyncWorker to es6

Convert NylasSyncWorkerPool to es6

Extract into deltaProcessor

Update names to NylasSyncWorker state

Working on spec fixes

More spec fixes

Delta stream refactor fixes
2016-11-30 13:42:10 -05:00
Jackie Luo
96c4a4cb5d spec(nylas-api): Update tests to use NylasAPIRequest 2016-11-29 16:40:53 -08:00
Jackie Luo
7b7fbb3b1b refactor(nylas-api): Create API requests from tasks 2016-11-29 16:33:44 -08:00
Jackie Luo
bab39a5c21 fix(nylas-api): Send API and options as object 2016-11-29 16:33:44 -08:00
Jackie Luo
385e729a3b bump(submodule): Update Salesforce API requests 2016-11-29 16:33:44 -08:00
Jackie Luo
8818ad1957 spec(nylas-api): Update tests to use NylasAPIRequest 2016-11-29 16:32:23 -08:00
Ben Gotow
3dfe4d1ba0 [local-sync] Synchronize K2 accounts with N1 accounts 2016-11-29 16:07:47 -08:00
Ben Gotow
7f2455a524 fix(reload): When reload is interrupted by beforeunload, continue reload afterwards 2016-11-29 15:34:21 -08:00
Ben Gotow
4baf80ac21 rm(*): Internal packages don’t need engine version locking 2016-11-29 15:12:52 -08:00
Juan Tejada
ac851d1677 bump submodule 2016-11-29 15:10:50 -08:00
Jackie Luo
ecc98c697c refactor(nylas-api): Create API requests from tasks 2016-11-29 14:54:54 -08:00
Jackie Luo
623b6a7c7c fix(nylas-api): Send API and options as object 2016-11-29 14:51:41 -08:00
Jackie Luo
5eb401d5ed bump(submodule): Update Salesforce API requests 2016-11-29 14:51:13 -08:00
Ben Gotow
848feaad60 fix(sync-worker): Missing binding arrow… 2016-11-29 12:44:02 -08:00
Juan Tejada
0b5f2841d5 fix(deltas) Update syncworker signature 2016-11-29 12:39:36 -08:00
Ben Gotow
e1fc9d7002 fix(kill): Don’t attempt to re-open windows on killed 2016-11-29 12:14:11 -08:00
Ben Gotow
56fded79c7 fix(sync): Put K2 dashboard into work window 2016-11-28 18:03:27 -08:00
Evan Morikawa
ee5609bdb0 Rename DeltaStreamingConnection -> LocalDeltaSyncConnection 2016-11-28 17:13:18 -08:00
Evan Morikawa
caba64d39d Update nylas-sync-worker to better fetch metadata 2016-11-28 16:59:04 -08:00
Evan Morikawa
9cbc284ed5 Fetch folders and labels at the same time 2016-11-28 16:11:10 -08:00
Evan Morikawa
a2e3c98d84 Deprecate LocalSyncRoot 2016-11-28 15:44:36 -08:00
Evan Morikawa
e1f1c23626 Introduce N1CloudAPI as endpoint 2016-11-28 15:38:53 -08:00
Halla Moore
8332068faf bump(k2) 2016-11-28 14:47:47 -08:00
Ben Gotow
ae9550379b fix(sync): Sync again immediately if more emails remain 2016-11-28 12:05:49 -08:00
Ben Gotow
864766d463 fix(sync): Throttle instead of debounce for better initial sync 2016-11-28 12:05:41 -08:00
Ben Gotow
cd30afd191 fix(sync): Remove the “SYNC” window type 2016-11-28 11:25:20 -08:00
Ben Gotow
d3bfe3fa71 fix(auth): Stop sending other crap with key 2016-11-28 11:05:00 -08:00
Juan Tejada
a9dcdaba4a 🎨(k2) Move non shared-models to local sync / remove duplicate DatabaseTypes 2016-11-26 12:51:18 -08:00
Ben Gotow
120d019eb2 fix(storage): Move to ~/.nylas-k2 2016-11-23 17:09:16 -08:00
Evan Morikawa
69861049f0 fix(thread): handles new API with both folders and labels 2016-11-23 17:08:38 -08:00