Commit graph

126 commits

Author SHA1 Message Date
Juan Tejada
f2dbb2144b feat(labels): Add functioning endpoint for updating labels for messages & threads
- This commit also correctly sets the labels on the corresponding thread
whenever a message has its labels updated
- Fix removing labels from messages
2016-11-22 09:58:41 -08:00
Juan Tejada
45d682c957 feat(api): Can now set labels for messages 2016-11-21 17:41:57 -08:00
Ben Gotow
5095f0626f Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-15 13:29:25 -07:00
Evan Morikawa
dffb87bd4a Report errors earlier 2016-07-15 13:15:26 -07:00
Ben Gotow
e13097045b Log boxname and category name as well 2016-07-15 12:39:28 -07:00
Ben Gotow
579fe43fdf Log when recovering from uidvalidity, don’t do it on first sync 2016-07-15 11:47:26 -07:00
Ben Gotow
95793877c6 Do file creation in a transaction, and with fewer saves 2016-07-15 11:14:35 -07:00
Ben Gotow
ac3f96e2d4 Fix accounts syncing in a hard loop due to redis loopback 2016-07-15 10:07:33 -07:00
Ben Gotow
08c7ca8b0d Use EC2 instance ID instead of hostname 2016-07-14 18:52:30 -07:00
Evan Morikawa
45f132b746 Fix thread moving to support new Promises 2016-07-14 17:37:38 -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
Juan Tejada
099e200ec5 Only log sync errors if they are permanent errors 2016-07-14 13:44:43 -07:00
Juan Tejada
37b2323cc7 Add metric for sync errors 2016-07-14 12:00:05 -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
592b2af986 Update metric type for accounts_syncing_count 2016-07-14 10:49:40 -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
Ben Gotow
66951b4b1a Add more logging to process claiming 2016-07-13 18:26:46 -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 Tejada
ab9c01a249 Remove bluebird
- Implement `each` and `promisifyAll` + other bluebird fns
2016-07-13 16:35:22 -07:00
Evan Morikawa
8c33c4976f Better IMAP Error handling 2016-07-13 15:57:59 -07:00
Ben Gotow
ffc2593c4e Log all box attributes to help track down bug 2016-07-13 11:42:34 -07:00
Ben Gotow
7056a4b8f4 Fix bug with accounts that have uidmin=0, not 1 2016-07-13 11:30:22 -07:00
Ben Gotow
e89975456b Fix scenario where sync worker is re-assigned the same account before fully releasing it 2016-07-12 18:31:55 -07:00
Ben Gotow
562cedf971 Fix sync worker stopping forever on errors 2016-07-12 16:46:14 -07:00
Ben Gotow
ae082c5b53 Fix support for Gmail accts with non-english folders 2016-07-12 16:12:04 -07:00
Ben Gotow
8b1e9564cf Fix UTF7 support — module didn’t support Node6 2016-07-12 16:11:29 -07:00
Ben Gotow
dfa16fb5fc Allow firstSyncCompletion to be null 2016-07-12 15:04:12 -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
b44272621d Misc cleanup, put account ids on dashboard 2016-07-12 00:59:41 -07:00
Juan Tejada
413a77c323 Log unhandled errors in api and sync 2016-07-11 17:42:49 -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
ae51646de6 Comment out new relic for now 2016-07-11 16:33:56 -07:00
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