Ben Gotow
1ce7787632
Disable sequelize logging
2016-07-14 17:21:21 -07:00
Ben Gotow
1d08faece3
Fixes to still support sqlite
2016-07-14 17:21:02 -07:00
Ben Gotow
2f3ca2a906
Merge branch 'master' of ssh://github.com/nylas/k2
...
# Conflicts:
# packages/nylas-core/hook-transaction-log.js
# packages/nylas-core/models/account/transaction.js
2016-07-14 17:17:22 -07:00
Ben Gotow
de3151cab4
Move to single database with many tables for accts
2016-07-14 17:14:16 -07:00
Evan Morikawa
1eef4c3428
Remove logs and rename variables
2016-07-14 16:36:13 -07:00
Annie
5b3f5c8a91
fixed thread syncing
2016-07-14 16:28:09 -07:00
Ben Gotow
ea497f7ea2
A few changes for upcoming db refactoring
2016-07-14 15:48:48 -07:00
Evan Morikawa
6ce54c2a34
Add send endpoint
2016-07-14 11:34:30 -07:00
Juan Tejada
b58c11605c
Moves metrics into its own pkg to be able to instrument other services
...
- With the Metrics module inside nylas-core, and bc of our current lerna
setup, we required other modules like sequelize and redis before requiring
newrelic, thus preventing them from being properly instrumented
2016-07-14 11:20:58 -07:00
Juan Tejada
16b91ea394
Update metrics with signalfx - report # of syncing accts per host
2016-07-14 10:39:05 -07:00
Juan Tejada
0c900b072d
Add new relic to all pkgs + Revert to PromiseUtils methods
...
- PromiseUtils does not conflict with newrelics changes to Promise
- Other misc fixes
2016-07-13 19:08:24 -07:00
Annie
a07174cc4e
fixed json parsing of message
2016-07-13 18:19:13 -07:00
Juan Tejada
5c1704ac8e
Fix thenReturn + misc logger fixes
2016-07-13 17:41:07 -07:00
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