Commit graph

4123 commits

Author SHA1 Message Date
Evan Morikawa
fcb36abbe8 fix(account): Remove unsupported account types 2016-12-02 16:44:44 -05:00
Evan Morikawa
7b44583ddc fix(folder): fix returning db transaction promise 2016-12-02 16:26:09 -05:00
Evan Morikawa
2b2c998dee feat(sync): let N1 be aware of provider synback requests 2016-12-02 16:15:17 -05:00
Evan Morikawa
3f681ddced bump(k2) 2016-12-02 15:12:11 -05:00
Evan Morikawa
cee7d05017 debug(delta): add logs 2016-12-02 15:11:48 -05:00
Evan Morikawa
cfc605136b refactor(sync): sync workers only use delta syncs now 2016-12-02 14:48:56 -05:00
Ben Gotow
fb13abe8f4 fix(deltas): Process all deltas of each class in a single pass
Also changed the DeltaProcessor so it doesn’t query for models before sending out `Actions.didPassivelyReceiveCreateDeltas`, and renames it to be more clear it’s about deltas.
2016-12-02 11:41:49 -08:00
Jackie Luo
bd30adec15 (account-store): Convert to ES6 2016-12-02 11:00:32 -08:00
Evan Morikawa
30ce9be8d9 bump(k2) 2016-12-02 13:28:18 -05:00
Ben Gotow
e3b4fc859e fix(deltas): Remove extra params passed to streaming endpoint 2016-12-01 18:42:13 -08:00
Juan Tejada
6cfbb80403 fix(tasks): /Actually/ fix moving threads in Gmail
Moving to between gmail folders (all, spam, trash) or moving to inbox,
involves changing labels /and/ folders, simultaneously. For this I added
a task to perform both operations, and apply labels first before
attempting to move the folder

Revert "fix(categories): Fix tasks for moving threads in Gmail"

This reverts commit 527de80ad2.
2016-12-01 16:38:30 -08:00
Ben Gotow
6d85a8ef81 lint(*): Fix linter errors within K2, update eslint grunt task 2016-12-01 15:38:16 -08:00
Juan Tejada
b9511e75b2 🎨(task-factory) 2016-12-01 14:10:05 -08:00
Evan Morikawa
00832b5a83 fix(auth): now authing IMAP through n1-cloud 2016-12-01 16:56:02 -05:00
Evan Morikawa
2ee11006e9 feat(auth): IMAP request to both n1-cloud and local sync 2016-12-01 16:56:02 -05:00
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