Commit graph

358 commits

Author SHA1 Message Date
Annie
c5dce43da7 Merge branch 'master' of github.com:nylas/K2 2016-07-11 18:30:19 -07:00
Annie
d575e63ede replaced console logs with new logger 2016-07-11 18:30:08 -07:00
Ben Gotow
73fc371825 Make the graphs on the dashboard retina 💄 2016-07-11 18:24:18 -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
Juan Tejada
413a77c323 Log unhandled errors in api and sync 2016-07-11 17:42:49 -07:00
Juan Tejada
039648bae8 Add bunyan-prettystream to regular dependencies 2016-07-11 17:04:30 -07:00
Ben Gotow
826db2e6f4 Remove redis from pm2 2016-07-11 16:57:27 -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
Annie
caee5dbef0 Merge branch 'master' of github.com:nylas/K2 into contacts 2016-07-11 16:42:15 -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
Annie
1fc30fa810 Merge branch 'master' of github.com:nylas/K2 2016-07-11 16:37:44 -07:00
Annie
e673573fcd added folder view api route 2016-07-11 16:37:39 -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
8e0cd92bad Require a logger when instantiating a connection 2016-07-11 16:02:53 -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
d4cd2510db Fix pm2 run scripts 2016-07-11 15:46:52 -07:00
Juan Tejada
960dbdeb8f Update logger for sync process manager
- Log identity data always
2016-07-11 15:40:36 -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
bc10ff453e Change stop script to use pm2 stop command instead of delete 2016-07-11 15:06: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
Annie
5868fb5207 make changes requested before pull 2016-07-11 13:48:00 -07:00
Juan Tejada
6ff596b5a7 Properly log uncaight errors in sync worker 2016-07-11 13:46:50 -07:00
Halla Moore
8a63ace9e3 Change config to watch just the 'packages' directory 2016-07-11 13:27:44 -07:00
Halla Moore
877a6bf612 Add SyncbackRequest details to dashboard 2016-07-11 12:57:18 -07:00
Juan Tejada
1c4434c136 Re-emit error events on bunyan log streams 2016-07-11 12:12:38 -07:00
Evan Morikawa
84815ce2fa Add file watching to restart server 2016-07-11 12:00:20 -07:00
Evan Morikawa
c0d7902f9f Add npm run restart 2016-07-11 11:49:11 -07:00
Juan Tejada
98c17c9780 Fix api logger decorator 2016-07-11 11:47:42 -07:00
Juan Tejada
ff334e169c Make npm start log output logs too 2016-07-11 11:43:51 -07:00
Juan Tejada
f648016c62 Lock logger versions 2016-07-11 11:28:53 -07:00
Juan Tejada
600245ebcb Fix cloudwatch config 2016-07-11 11:28:53 -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
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
Ben Gotow
016bad67b9 Temporarily patch /account to not check schema 2016-07-08 16:53:01 -07:00
Ben Gotow
26ac02e0bf Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-08 15:36:56 -07:00
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
4a341b6f02 Merge branch 'master' of ssh://github.com/nylas/k2 2016-07-08 13:49:56 -07:00