Commit graph

90 commits

Author SHA1 Message Date
Juan Tejada
2dc31cb576 Add number of syncing accounts to sync process manager heartbeat 2016-07-11 16:24:48 -07:00
Ben Gotow
06d31b4d49 Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-11 16:01:22 -07:00
Ben Gotow
3c63268eec Return a new token for existing account instead of duplicating accounts 2016-07-11 16:01:18 -07:00
Juan Tejada
960dbdeb8f Update logger for sync process manager
- Log identity data always
2016-07-11 15:40:36 -07:00
Halla Moore
04ab0d9034 Change firstSyncCompletedAt to firstSyncCompletion, now explicitly 14 bytes. 2016-07-11 14:23:46 -07:00
Halla Moore
0860f3027c Fix two small errors 2016-07-11 14:23:46 -07:00
Evan Morikawa
1360599ffc Fix deafult test account email address 2016-07-11 14:23:35 -07:00
Juan Tejada
b7301f5dc5 Fix more error handling in sync worker 2016-07-11 14:10:30 -07:00
Juan Tejada
6ff596b5a7 Properly log uncaight errors in sync worker 2016-07-11 13:46:50 -07:00
Ben Gotow
4ce68e3dd4 Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-11 10:56:11 -07:00
Ben Gotow
93189b0f22 Try adding newrelic logging 2016-07-11 10:56:08 -07:00
Juan Tejada
dce872fac8 Adds bunyan for json logging on every package!
- Bunyan logs json output, and added a stream to send our logs to
cloudwatch
- Replaces /all/ instances of console.log. Turned eslint rule back on,
so we don't use console.log ever again.
- Added npm scripts to view pretty logs
2016-07-08 17:30:24 -07:00
Ben Gotow
14b5bef0a7 Fix error handling on connection close 2016-07-08 16:59:00 -07:00
Ben Gotow
8c122a57a3 Stop syncing in a hard loop 2016-07-08 15:36:50 -07:00
Halla Moore
2db11d7dec Enhance sync stats on dashboard 2016-07-07 14:30:51 -07:00
Juan Tejada
8b1f012a3c Fix error serialization
- Remove cumbersome NylasError
- Add helper to serialize error when saving to account
2016-07-01 15:49:47 -07:00
Ben Gotow
a43b3fb015 Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-01 15:41:29 -07:00
Ben Gotow
8453985b1f Change worker removal so it waits for sync to complete 2016-07-01 15:41:22 -07:00
Jackie Luo
0af1a43794 Add first sync completion time 2016-07-01 13:15:55 -07:00
Ben Gotow
3ccb7f164b Fix closing connection twice 2016-07-01 11:36:14 -07:00
Juan Tejada
05091a4447 Update thrown errors to use serializable NylasError 2016-07-01 10:24:39 -07:00
Jackie Luo
ddf73b6b02 Keep track of sync completion timestamps 2016-06-30 17:04:13 -07:00
Ben Gotow
3c2b8bcb15 Fix account creation redis publish, rename to make more clear 2016-06-30 13:25:13 -07:00
Ben Gotow
ef5c4a29fe Fix redis keys, dashboard app, show account active state on dashboard 2016-06-30 12:33:10 -07:00
Halla Moore
d0666540b9 Added syncback tasks for folders 2016-06-30 11:54:12 -07:00
Ben Gotow
4d4a4cec32 Fix backwards logic preventing thread creation! 2016-06-30 11:04:51 -07:00
Ben Gotow
b033b94091 Break Category into Folder, Label, populate Gmail lables for messages 2016-06-30 09:29:21 -07:00
Jackie Luo
b3b5a5106c Add endpoint for file downloads 2016-06-29 19:14:04 -07:00
Halla Moore
fd7570f6c8 Add various syncback tasks for messages 2016-06-29 18:52:58 -07:00
Halla Moore
80d80eb306 Added StarThread and UnstarThread imap tasks 2016-06-29 17:36:34 -07:00
Halla Moore
2a77196fd9 Merge branch 'master' of github.com:nylas/k2 2016-06-29 17:23:27 -07:00
Halla Moore
ef11508b38 Added MarkThreadAsUnread task 2016-06-29 17:23:18 -07:00
Evan Morikawa
4d7f728a75 categoryUID -> categoryImapUID and messageId -> messageHeaderId 2016-06-29 17:10:34 -07:00
Halla Moore
d3fd671ff6 Update MarkThreadAsRead task 2016-06-29 17:01:30 -07:00
Evan Morikawa
6cb67e417c Fix to use Imap BOX and simplify move helper 2016-06-29 16:25:51 -07:00
Halla Moore
825ce2eba3 Use categoryUID instead of categoryId, change default value to match node-imap 2016-06-29 16:12:29 -07:00
Halla Moore
da27959009 Changed some variables so that first letter is lowercase 2016-06-29 15:07:29 -07:00
Evan Morikawa
9ba3ac1bfd Merge branch 'syncback' 2016-06-29 14:25:52 -07:00
Evan Morikawa
905d797fd2 Remove comments 2016-06-29 14:25:42 -07:00
Evan Morikawa
124f0a9579 Add sigterm 2016-06-29 14:19:04 -07:00
Halla Moore
bf39b51e08 Correct some function names/params 2016-06-29 14:00:47 -07:00
Halla Moore
2721617665 Use CategoryId instead of messageId 2016-06-29 12:28:22 -07:00
Evan Morikawa
0e80bce433 readonly false 2016-06-29 12:26:45 -07:00
Evan Morikawa
3753d9743a Fix return 2016-06-29 12:25:38 -07:00
Evan Morikawa
d26824771d Clean up loggin 2016-06-29 12:08:31 -07:00
Halla Moore
bdfee404e5 Add move imap wrapper, make sure wrapper methods are called 2016-06-29 12:07:28 -07:00
Evan Morikawa
7cf59c3c11 Fix retrun value in MoveToFolderIMAP task 2016-06-29 12:04:46 -07:00
Evan Morikawa
941180c1df Syncback WIP 2016-06-29 11:44:30 -07:00
Ben Gotow
6ecacdd591 Add account_id to all responses, downcase model ref columns 2016-06-29 10:36:35 -07:00
Evan Morikawa
ab19133b20 Add SyncbackTask super class 2016-06-29 10:13:56 -07:00