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
ea497f7ea2
A few changes for upcoming db refactoring
2016-07-14 15:48:48 -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 Tejada
ab9c01a249
Remove bluebird
...
- Implement `each` and `promisifyAll` + other bluebird fns
2016-07-13 16:35:22 -07:00
Annie
17f920fb90
Ordered inbox messages chronologically
2016-07-12 18:33:19 -07:00
Ben Gotow
b44272621d
Misc cleanup, put account ids on dashboard
2016-07-12 00:59:41 -07:00
Annie
d575e63ede
replaced console logs with new logger
2016-07-11 18:30:08 -07:00
Annie
caee5dbef0
Merge branch 'master' of github.com:nylas/K2 into contacts
2016-07-11 16:42:15 -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
Annie
5868fb5207
make changes requested before pull
2016-07-11 13:48:00 -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
2a776e6cff
Build(contacts): built contact model, added routes and processor
2016-07-08 17:06:21 -07:00
Evan Morikawa
1ff61beec9
package json fixed
2016-07-07 16:08:19 -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
Ben Gotow
04d482650c
Fix processor running out of file descriptors due to re-creating redis connections
2016-06-30 13:28:41 -07:00
Ben Gotow
b033b94091
Break Category into Folder, Label, populate Gmail lables for messages
2016-06-30 09:29:21 -07:00
Evan Morikawa
4d7f728a75
categoryUID -> categoryImapUID and messageId -> messageHeaderId
2016-06-29 17:10:34 -07:00
Ben Gotow
b00b1e6d21
Add replyTo to message model
2016-06-29 16:10:45 -07:00
Ben Gotow
6ecacdd591
Add account_id to all responses, downcase model ref columns
2016-06-29 10:36:35 -07:00
Ben Gotow
222c68a598
Deprecate thread.cleanedSubject, since the only subject is the clean one
2016-06-28 18:11:55 -07:00
Ben Gotow
1d1186cb34
Add more attributes to /threads, move processor to it's own process
2016-06-28 18:10:52 -07:00
Halla Moore
b867bcb31e
Merge branch 'master' of github.com:nylas/k2
2016-06-28 15:56:35 -07:00
Ben Gotow
a10543c1c8
Chunk sync of large mailboxes, keep track of synced UID range, not just uidnext
2016-06-28 15:30:56 -07:00
Halla Moore
0f64b6e58e
Add category filtering to threads api endpoint
2016-06-28 15:01:41 -07:00
Evan Morikawa
0f4ed7f4a1
Fix package json
2016-06-28 14:09:56 -07:00
Ben Gotow
f68948c23f
Fix population of db fields in processor
2016-06-27 16:38:40 -07:00
Ben Gotow
91887a6e11
Speed up sync by fetching preferred body block only
2016-06-27 16:11:36 -07:00
Juan Tejada
ed749e0f51
Add sync worker error handling
...
- Handles sync errors in a single place. For now, if error is not a
socket error, will treat as a permanent error, save the error to the
account object, and prevent any other syncing until the error is cleared
from the account object
- Adds a NylasError class that can be extended and serialized. Adds it
to global namespace on all packages and replaces all uses of regular
Error
2016-06-27 16:03:38 -07:00
Jackie Luo
cf421cbb2d
Check In-Reply-To instead of References
2016-06-27 14:58:09 -07:00
Jackie Luo
179f24449b
Refactor code and add test for threading
2016-06-27 14:52:05 -07:00
Halla Moore
2e56d3ced4
Add timestamp queries to threads route
2016-06-27 12:30:28 -07:00
Halla Moore
621f8b5c2b
Add starred query to threads route
2016-06-27 10:15:05 -07:00
Halla Moore
bc5a4ecf3c
Add unread query to threads route
2016-06-24 16:14:04 -07:00
Juan Tejada
8f945888e4
Add missing test fixtures and fix path for reading them
2016-06-24 10:39:30 -07:00
Juan Tejada
ee2dc6c3f6
Expect true to be true
2016-06-24 10:36:57 -07:00
Juan Tejada
0ac3c8c313
Add jasmine for message-processor
2016-06-24 10:35:34 -07:00
Ben Gotow
09bb7874f8
Dashboard with a sweet background. Also realtime assignment / policy view.
2016-06-23 15:52:53 -07:00
Jackie Luo
b6f57f3ce8
Add threading algorithm
2016-06-23 15:44:03 -07:00
Jackie Luo
f9fe836899
Fix syntax error
2016-06-23 15:21:54 -07:00
Jackie Luo
5cc4841ac6
Add check for Gmail thread ID
2016-06-23 15:19:20 -07:00
Evan Morikawa
6ad9cdd322
Fixing broken processors
2016-06-23 14:15:30 -06:00
Jackie Luo
ae54192ed6
Update threading and fix typo
2016-06-23 10:35:47 -07:00
Juan Tejada
a917022505
Update order of threading processor
2016-06-23 10:26:41 -07:00
Ben Gotow
ad1683c9a5
Fix reference to __base
2016-06-23 10:11:07 -07:00
Ben Gotow
12d9db8dd9
Redis coordination of sync processes / assignment
2016-06-23 00:49:26 -07:00
Jackie Luo
cb95574378
Fix associations
2016-06-22 17:34:29 -07:00
Jackie Luo
e64c2ae4c0
Add basic threading
2016-06-22 17:34:29 -07:00
Evan Morikawa
18f2925b43
Convert to monorepo
2016-06-22 14:41:32 -07:00