Commit graph

226 commits

Author SHA1 Message Date
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
Halla Moore
0f64b6e58e Add category filtering to threads api endpoint 2016-06-28 15:01:41 -07:00
Evan Morikawa
0f4ed7f4a1 Fix package json 2016-06-28 14:09:56 -07:00
Ben Gotow
8108a875ee Allow trailing slashes on API endpoints 2016-06-28 13:57:07 -07:00
Jackie Luo
eaf19cc522 Add files endpoint for metadata 2016-06-28 13:55:00 -07:00
Jackie Luo
a00f86660c Create file objects from MIME parts 2016-06-28 11:32:18 -07:00
Juan Tejada
c5d753a434 Add /very/ basic initial error status to dashboard
- TODO: add option to solve the error
2016-06-27 23:59:22 -07:00
Ben Gotow
f68948c23f Fix population of db fields in processor 2016-06-27 16:38:40 -07:00
Ben Gotow
91887a6e11 Speed up sync by fetching preferred body block only 2016-06-27 16:11:36 -07:00
Juan Tejada
ed749e0f51 Add sync worker error handling
- Handles sync errors in a single place. For now, if error is not a
socket error, will treat as a permanent error, save the error to the
account object, and prevent any other syncing until the error is cleared
from the account object
- Adds a NylasError class that can be extended and serialized. Adds it
to global namespace on all packages and replaces all uses of regular
Error
2016-06-27 16:03:38 -07:00
Jackie Luo
cf421cbb2d Check In-Reply-To instead of References 2016-06-27 14:58:09 -07:00
Jackie Luo
179f24449b Refactor code and add test for threading 2016-06-27 14:52:05 -07:00