Ben Gotow
b43b623ca6
Expand promise utils
2016-07-13 17:22:02 -07:00
Juan
b60595f0f8
Merge pull request #3 from nylas/remove-bluebird
...
Remove bluebird
2016-07-13 16:54:21 -07:00
Ben Gotow
35c32a3645
After authing an account, close IMAP connection
2016-07-13 16:42:13 -07:00
Juan Tejada
ab9c01a249
Remove bluebird
...
- Implement `each` and `promisifyAll` + other bluebird fns
2016-07-13 16:35:22 -07:00
Evan Morikawa
87905d0145
Fix transaction log to ignore syncState changes
2016-07-13 16:31:34 -07:00
Ben Gotow
93942e792d
Also conert imap errors in createConnectionPromise
2016-07-13 16:20:43 -07:00
Evan Morikawa
8c33c4976f
Better IMAP Error handling
2016-07-13 15:57:59 -07:00
Ben Gotow
a5e3ddb445
Merge branch 'master' of ssh://github.com/nylas/k2
2016-07-13 12:39:11 -07:00
Ben Gotow
a11ee2987b
Change proxy to honor null values, create helper for open box name
2016-07-13 12:39:07 -07:00
Evan Morikawa
3d64affc52
Delta stream adhere to old Nylas spec
2016-07-13 12:37:38 -07:00
Juan Tejada
7f72ab7f14
Add loggly logging service to test it out
...
- Adds env to all logs, cleans up code a bit
2016-07-13 11:58:46 -07:00
Evan Morikawa
e658f066dd
Change transaction schema to match current API
2016-07-12 18:31:00 -07:00
Ben Gotow
3e8623d383
Move charset definition to single location
2016-07-12 18:03:08 -07:00
Ben Gotow
a62e858389
Make charset explicit on connection and models
2016-07-12 17:41:16 -07:00
Annie
83a6a8008b
Add thread id to message model
2016-07-12 16:27:57 -07:00
Ben Gotow
9d7343eb91
Fix UTF7 reference - prod will not use ssh
2016-07-12 16:24:03 -07:00
Ben Gotow
8b1e9564cf
Fix UTF7 support — module didn’t support Node6
2016-07-12 16:11:29 -07:00
Ben Gotow
7d92438d57
Change firstSyncCompletion to string, cast to int for JSON
2016-07-12 15:23:55 -07:00
Ben Gotow
dfa16fb5fc
Allow firstSyncCompletion to be null
2016-07-12 15:04:12 -07:00
Ben Gotow
674da27296
Fix flipped errored / ended handlers
2016-07-12 12:15:46 -07:00
Ben Gotow
b0a6ec066b
Sync non-active accounts more infrequently
2016-07-12 09:53:04 -07:00
Ben Gotow
ac627f1580
Remove use of Rx.toPromise(), which wasn't behaving as expected
2016-07-12 01:33:56 -07:00
Ben Gotow
4fb848e91f
fix for re-authing the same account
2016-07-11 21:38:05 -07:00
Juan Tejada
afeb0e7b27
Create one CloudWatch stream per host
...
- This prevents `InvalidSequenceTokenException` when running in
production with multiple machines in an elastic beanstalk environment
- See
https://github.com/mirkokiefer/bunyan-cloudwatch/issues/1#issuecomment-193116799
2016-07-11 17:57:43 -07:00
Ben Gotow
74430dd80e
Merge branch 'master' of ssh://github.com/nylas/k2
2016-07-11 16:56:27 -07:00
Ben Gotow
492ac21bb6
Primitive account deletion via DELETE /account
2016-07-11 16:56:18 -07:00
Juan Tejada
f8b8dfb87f
Revert to running pm2 in no-daemon mode in dev
...
- Add a stream for pretty logging in dev mode
2016-07-11 16:40:48 -07:00
Ben Gotow
8e0cd92bad
Require a logger when instantiating a connection
2016-07-11 16:02:53 -07:00
Ben Gotow
3c63268eec
Return a new token for existing account instead of duplicating accounts
2016-07-11 16:01:18 -07:00
Ben Gotow
5085730902
Merge pull request #1 from nylas/contacts
...
Build(contacts): built contact model, added routes and processor
2016-07-11 15:22:04 -07:00
Halla Moore
04ab0d9034
Change firstSyncCompletedAt to firstSyncCompletion, now explicitly 14 bytes.
2016-07-11 14:23:46 -07:00
Juan Tejada
1c4434c136
Re-emit error events on bunyan log streams
2016-07-11 12:12:38 -07:00
Juan Tejada
600245ebcb
Fix cloudwatch config
2016-07-11 11:28:53 -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
Annie
cb20f8cecd
resolved merge -- Accounts and contacts are now both added to serilaization
2016-07-08 17:09:57 -07:00
Annie
2a776e6cff
Build(contacts): built contact model, added routes and processor
2016-07-08 17:06:21 -07:00
Ben Gotow
14b5bef0a7
Fix error handling on connection close
2016-07-08 16:59:00 -07:00
Evan Morikawa
ab8f1b4fbf
Silent transactions if only syncState changes
2016-07-08 18:33:37 -04: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
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
Ben Gotow
822b8e54e6
Allow usage with mysql in addition to SQLite
2016-07-07 11:37:55 -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
Halla Moore
9c342c0c77
Add ability to edit sync policy from dashboard
2016-07-05 15:41:56 -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
Jackie Luo
0af1a43794
Add first sync completion time
2016-07-01 13:15:55 -07:00
Evan Morikawa
fd0c4d734c
Fix delta sync to properly includes sub models
2016-07-01 11:27:20 -07:00