Commit graph

203 commits

Author SHA1 Message Date
Ben Gotow
8c122a57a3 Stop syncing in a hard loop 2016-07-08 15:36:50 -07:00
Evan Morikawa
ab8f1b4fbf Silent transactions if only syncState changes 2016-07-08 18:33:37 -04:00
Ben Gotow
53a2e7e56b Add ping to dashboard, wait to get shared db 2016-07-08 14:55:12 -07:00
Ben Gotow
3e348252ab Fix issue with default values — just implement in getters 2016-07-08 14:41:53 -07:00
Ben Gotow
17df581105 Use TEXT vs STRING, specify string column lengths 2016-07-08 13:49:51 -07:00
Evan Morikawa
1ff61beec9 package json fixed 2016-07-07 16:08:19 -07:00
Evan Morikawa
0972592aa5 Add ports to pm2-dev 2016-07-07 16:05:44 -07:00
Ben Gotow
0bfa8023f2 Merge branch 'master' of ssh://github.com/nylas/k2
Conflicts:
	Dockerfile
2016-07-07 15:27:56 -07:00
Ben Gotow
63f66fb7e7 Switch to PM2 for dev + prod 2016-07-07 15:25:45 -07:00
Halla Moore
a71e5c6a63 Merge branch 'master' of github.com:nylas/k2 2016-07-07 14:31:08 -07:00
Halla Moore
2db11d7dec Enhance sync stats on dashboard 2016-07-07 14:30:51 -07:00
Evan Morikawa
3820521d62 Dockerfile successfully building ping endpoint 2016-07-07 12:10:01 -07:00
Ben Gotow
822b8e54e6 Allow usage with mysql in addition to SQLite 2016-07-07 11:37:55 -07:00
Halla Moore
40ab07cfdf Add account filtering (by error status) to dashboard 2016-07-06 16:49:16 -07:00
Halla Moore
44e377eb80 Merge branch 'master' of github.com:nylas/k2 2016-07-06 15:48:47 -07:00
Halla Moore
12560ab711 Add ability to apply a sync policy to all accounts from dashboard 2016-07-06 15:48:25 -07:00
Evan Morikawa
2e4427d96e Add console to ping 2016-07-06 14:59:56 -07:00
Halla Moore
3bfc5aff60 Merge branch 'master' of github.com:nylas/k2 2016-07-05 15:45:18 -07:00
Halla Moore
9c342c0c77 Add ability to edit sync policy from dashboard 2016-07-05 15:41:56 -07:00
Evan Morikawa
e2e827297c Add authless /ping endpoint that returns "pong" 2016-07-05 14:09:44 -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
81145eae32 Change error styling 2016-07-01 13:24:08 -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
Evan Morikawa
fd0c4d734c Fix delta sync to properly includes sub models 2016-07-01 11:27:20 -07:00
Juan Tejada
05091a4447 Update thrown errors to use serializable NylasError 2016-07-01 10:24:39 -07:00
Juan Tejada
80f9ff38e3 Remove dead code 2016-07-01 10:19:25 -07:00
Jackie Luo
a99ffbce3c Add favicon :snow_capped_mountain: 2016-06-30 17:31:52 -07:00
Jackie Luo
27eba6dfaa Add sync times and update styles 2016-06-30 17:24:25 -07:00
Halla Moore
84ce3bdeb3 Merge branch 'master' of github.com:nylas/k2 2016-06-30 17:11:05 -07:00
Halla Moore
c5157b3553 Fixed 'in' filter for threads endpoint 2016-06-30 17:10:48 -07:00
Jackie Luo
ddf73b6b02 Keep track of sync completion timestamps 2016-06-30 17:04:13 -07:00
Halla Moore
ce61326f7c Make query keys not camel case 2016-06-30 16:23:55 -07:00
Halla Moore
7221ae3bb9 Added File filtering 2016-06-30 16:19:57 -07:00
Halla Moore
f94acfcb9b Added filename query to threads endpoint 2016-06-30 16:09:02 -07:00
Halla Moore
d68151a684 Merge branch 'master' of github.com:nylas/k2 2016-06-30 15:49:03 -07:00
Halla Moore
aec946f7de Added 'in' query to messages endpoint 2016-06-30 15:23:34 -07:00
Halla Moore
6225f09018 Added some filter queries for Messages 2016-06-30 14:22:23 -07:00
Ben Gotow
04d482650c Fix processor running out of file descriptors due to re-creating redis connections 2016-06-30 13:28:41 -07:00
Ben Gotow
65a6ea4546 Redis takes seconds, not milliseconds 2016-06-30 13:28:26 -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
Ben Gotow
f9952f9fa7 Fix 500 error when account token does not resolve to account 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
a1419a65a5 Update folderId => folderImapUID, rename messageI to uid 2016-06-30 09:33:04 -07:00
Ben Gotow
b033b94091 Break Category into Folder, Label, populate Gmail lables for messages 2016-06-30 09:29:21 -07:00
Ben Gotow
5a6daf9556 Stop sqlite from waiting 1sec to retry table locks 2016-06-30 00:19:57 -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
c7fa9a782f Merge branch 'master' of github.com:nylas/k2 2016-06-29 16:12:44 -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
Ben Gotow
b00b1e6d21 Add replyTo to message model 2016-06-29 16:10:45 -07:00
Halla Moore
da27959009 Changed some variables so that first letter is lowercase 2016-06-29 15:07:29 -07:00
Evan Morikawa
fc3796ff66 Fix transaction case issue 2016-06-29 14:58:38 -07:00
Evan Morikawa
5a56c9a4e4 AccountId -> accountId 2016-06-29 14:43:20 -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
a45306729f Merge branch 'syncback' of github.com:nylas/k2 into syncback 2016-06-29 14:01:01 -07:00
Halla Moore
bf39b51e08 Correct some function names/params 2016-06-29 14:00:47 -07:00
Evan Morikawa
6a6e1f4f60 Remove loggin in api 2016-06-29 12:29:21 -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
Ben Gotow
a25c399652 Downcase remaining model names 2016-06-29 12:04:22 -07:00
Ben Gotow
53d6c6284e Support for /threads?view=count/expanded, thread & message JSON includes folders 2016-06-29 12:02:31 -07:00
Evan Morikawa
941180c1df Syncback WIP 2016-06-29 11:44:30 -07:00
Ben Gotow
9ff7d3aea5 Add folders and labels to /threads response, version numbers to all models 2016-06-29 11:22:38 -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
Evan Morikawa
cf87325c5d Fix syncback request object 2016-06-29 10:13:56 -07:00
Halla Moore
8a53dca755 Merge branch 'master' of github.com:nylas/k2 2016-06-29 10:10:49 -07:00
Evan Morikawa
ba2d865a5d Cleanup syncback request 2016-06-28 19:07:49 -07:00
Evan Morikawa
11a3a8f58e Cleanup syncback task 2016-06-28 19:02:24 -07:00
Ben Gotow
c7422ffaea Fix bug where always closing connection after sync 2016-06-28 18:43:53 -07:00
Ben Gotow
0189e3e77d Break Gmail mailboxes into folders and labels 2016-06-28 18:31:40 -07:00
Evan Morikawa
7180ebbb70 PUT route works on threads to create SyncbackRequests 2016-06-28 18:17:11 -07:00
Ben Gotow
ad484e8ae1 Add object key to all JSON responses 2016-06-28 18:14:54 -07:00
Evan Morikawa
306086091d syncbackMessageActions refactor 2016-06-28 18:13:49 -07:00
Halla Moore
f5af9c0cb5 Added a syncback task to mark a thread as read, untested 2016-06-28 18:13:49 -07:00
Ben Gotow
222c68a598 Deprecate thread.cleanedSubject, since the only subject is the clean one 2016-06-28 18:11:55 -07:00
Ben Gotow
1d1186cb34 Add more attributes to /threads, move processor to it's own process 2016-06-28 18:10:52 -07:00
Evan Morikawa
cea7783a5f syncbackMessageActions refactor 2016-06-28 17:12:45 -07:00
Halla Moore
b867bcb31e Merge branch 'master' of github.com:nylas/k2 2016-06-28 15:56:35 -07:00
Evan Morikawa
2d90c5bb14 Fixes to sync worker 2016-06-28 15:44:38 -07:00
Ben Gotow
ca0120a824 Allow sync after errors with env var 2016-06-28 15:37:22 -07:00
Evan Morikawa
14cffcf8a5 Change to notify / observe for syncback requests 2016-06-28 15:35:59 -07:00
Ben Gotow
a10543c1c8 Chunk sync of large mailboxes, keep track of synced UID range, not just uidnext 2016-06-28 15:30:56 -07:00