Commit graph

108 commits

Author SHA1 Message Date
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
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
0921df432b Uses default from address 2016-07-14 11:40:46 -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
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
8c33c4976f Better IMAP Error handling 2016-07-13 15:57:59 -07:00
Evan Morikawa
3d64affc52 Delta stream adhere to old Nylas spec 2016-07-13 12:37:38 -07:00
Annie
6e19cd84f5 Added view query param for contact and message routes 2016-07-13 11:37:35 -07:00
Evan Morikawa
e658f066dd Change transaction schema to match current API 2016-07-12 18:31:00 -07:00
Ben Gotow
84d8979265 Add ability to auth gmail account via /auth 2016-07-12 13:24:48 -07:00
Ben Gotow
4fb848e91f fix for re-authing the same account 2016-07-11 21:38:05 -07:00
Annie
87091a414a Merge branch 'master' into contacts 2016-07-11 18:30:28 -07:00
Annie
c5dce43da7 Merge branch 'master' of github.com:nylas/K2 2016-07-11 18:30:19 -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
Annie
caee5dbef0 Merge branch 'master' of github.com:nylas/K2 into contacts 2016-07-11 16:42:15 -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
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
Evan Morikawa
1360599ffc Fix deafult test account email address 2016-07-11 14:23:35 -07:00
Annie
5868fb5207 make changes requested before pull 2016-07-11 13:48:00 -07:00
Juan Tejada
98c17c9780 Fix api logger decorator 2016-07-11 11:47:42 -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
016bad67b9 Temporarily patch /account to not check schema 2016-07-08 16:53:01 -07:00
Evan Morikawa
0972592aa5 Add ports to pm2-dev 2016-07-07 16:05:44 -07:00
Evan Morikawa
3820521d62 Dockerfile successfully building ping endpoint 2016-07-07 12:10:01 -07:00
Ben Gotow
822b8e54e6 Allow usage with mysql in addition to SQLite 2016-07-07 11:37:55 -07:00
Evan Morikawa
2e4427d96e Add console to ping 2016-07-06 14:59:56 -07:00
Evan Morikawa
e2e827297c Add authless /ping endpoint that returns "pong" 2016-07-05 14:09:44 -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
Halla Moore
84ce3bdeb3 Merge branch 'master' of github.com:nylas/k2 2016-06-30 17:11:05 -07:00
Halla Moore
c5157b3553 Fixed 'in' filter for threads endpoint 2016-06-30 17:10:48 -07:00
Jackie Luo
ddf73b6b02 Keep track of sync completion timestamps 2016-06-30 17:04:13 -07:00