146 Commits

Author SHA1 Message Date
42bda32985 Use EntitySchemas in comments-server, Fix duplicate migrations 2019-09-23 11:29:23 +07:00
960fc96d28 Use entity-schemas as entities 2019-09-18 15:54:56 +07:00
2ad72d2925 Fix cannot read property joinColumns of undefined 2019-09-18 15:37:35 +07:00
d4378719c5 Use EntitySchema and interfaces over typeorm decorators 2019-09-18 15:25:27 +07:00
9c9c41aeaf Extract packages/server/src/database to packages/{db,db-typeorm} 2019-09-18 12:49:55 +07:00
c8d22278a5 Use run() instead of CLI class 2019-09-17 11:30:16 +07:00
f51b41c576 Add packages/server/cli 2019-09-17 10:55:25 +07:00
12aa397350 Remove tslint.json 2019-09-16 21:04:55 +07:00
73c27aec6a Fix packages/comments-common 2019-09-16 11:39:36 +07:00
7631f085ef Fix packages/server 2019-09-16 10:46:17 +07:00
6cbcf3c69c Update TODO.md 2019-09-14 12:59:08 +07:00
0d1fddf512 Fix linting errors 2019-09-14 12:53:30 +07:00
ac8f1d9ff3 Run rondo syncEsmConfig 2019-09-14 12:01:29 +07:00
c14456b606 Move validator into separate package 2019-09-14 11:41:21 +07:00
103f6d1e7a Remove BaseService 2019-09-14 11:14:28 +07:00
1fde923dbf Fix concurrency issue in TeamService.test.ts 2019-09-14 10:30:44 +07:00
d532ac82f0 Fix broken tests 2019-09-14 10:05:35 +07:00
195d7226e8 Rename jsonrpc types 2019-09-13 23:49:05 +07:00
25589b870c Refactor common/team 2019-09-11 13:34:41 +07:00
ae2ed21f05 Remove unused routes
TBD: fix comments-server
2019-09-11 12:18:13 +07:00
055d9588bf Use JSONRPC in TeamService (needs more testing) 2019-09-11 00:40:10 +07:00
eebe26f706 Extract redux, http-types, http-client and test-utils 2019-09-10 17:56:25 +07:00
f509004dac Add rpc/TeamService.test.ts 2019-09-07 19:44:29 +07:00
b813916c19 Use simpler interface for Bootstrap app server 2019-09-07 19:27:21 +07:00
4f533e7fff Return headers from login/registerAccount test methods 2019-09-07 09:44:00 +07:00
3739f27ebe Add first test for JSONRPC service 2019-09-07 09:38:43 +07:00
5cf54d0be9 Rename old UserService to AuthService, LoginRoutes to AuthRoutes 2019-09-05 10:19:27 +07:00
5b5adb6408 Update dependencies
TypeScript 3.6 cannot be updated because of a current bug with
FindConditions<?>.

https://github.com/typeorm/typeorm/pull/4470
https://github.com/typeorm/typeorm/issues/4662

https://github.com/microsoft/TypeScript/pull/33144
2019-09-01 14:17:08 +07:00
dcc5b52725 Do not subclass Bootstrap.ts 2019-08-31 15:29:37 +07:00
5688a65cb0 Rename configureApplication to configureServer 2019-08-31 14:19:56 +07:00
8ca6107ce6 Replace Application class w/ configureApplication 2019-08-31 14:14:11 +07:00
64f5f2f642 Replace Application.ts with createAppication and configureApplication 2019-08-31 11:42:12 +07:00
67e3da3246 Add ability to configure rpc services. Needs further testing 2019-08-31 09:12:10 +07:00
5b9f4b9321 Create transaction for JSONRPC middleware 2019-08-30 13:21:16 +07:00
2f35b65f48 Add jsonrpc services to server(s) 2019-08-30 11:02:31 +07:00
7434c9fb42 Add UserService (RPC version) 2019-08-28 18:26:26 +07:00
cd5ff9b5da Generate @rondo.dev/common entities 2019-08-28 08:08:00 +07:00
22f0b15e3a Add debounce.cancel, cancel session cleanup 2019-08-27 14:54:47 +07:00
2256fbc1e8 Fix SessionStore concurrency in tests by debouncing fn 2019-08-26 20:13:35 +07:00
359c6afd08 Add test for doInNewTransaction (mysql) 2019-08-26 19:25:54 +07:00
76bf7d8d47 Add transactionId to SqlLogger 2019-08-26 19:08:35 +07:00
02d072a361 Add TransactionManager.doInNewTransaction 2019-08-26 19:07:21 +07:00
67ae8dac57 Replace unnecessary DB with IDatabase 2019-08-26 18:53:52 +07:00
291d05e2be Expose bootstrap in test.ts 2019-08-26 18:46:06 +07:00
772c3f6682 Use real cls-hooked in tests instead of NamespaceMock
https://github.com/Jeff-Lewis/cls-hooked/issues/17#issuecomment-510168720

Note: uses undocumented methods ns.enter(context) and ns.exit(context)
2019-08-26 11:14:11 +07:00
e2c8fca29b TODO: fix deadlock caused by SessionStore#cleanup 2019-08-26 09:10:27 +07:00
d8ab2decef Fix correlation id for tests 2019-08-25 23:37:27 +07:00
040af18765 Use process.env.JEST_WORKER_ID when creating username 2019-08-25 23:08:16 +07:00
1762dad4d1 Add ability to run @rondo/server tests in parallel 2019-08-25 23:07:47 +07:00
1e53f55cfa Check if date is valid before calling toISOString() 2019-08-25 22:21:34 +07:00