69 Commits

Author SHA1 Message Date
77838e8e0c packages/comments-server: Migrate to mysql/mariadb
Currently mysql2 prints a warning every time a connection is
established. This should be fixed with soon:

https://github.com/typeorm/typeorm/pull/3753
2019-03-23 21:21:50 +08:00
93b048bc10 Add correlationId to SqlLogger 2019-03-23 21:16:20 +08:00
dca5374911 Use $typeorm in buildfile 2019-03-23 17:14:08 +08:00
a628082a73 Add packages/client/src/team 2019-03-20 15:01:15 +05:00
9aff78b7a9 Add ability to search users by email
This might be a security concern, even though the user will have to
provide an email to retrieve user information.

This functionality is needed by Team management functionality because
expecting users to add a user by id is hard.

TODO: explore other options. Maybe add public profiles and request the
user to go to the profile to invite a user to team?
2019-03-20 13:23:47 +05:00
7a0d44abe4 Return ITeam[] from /my/teams 2019-03-20 11:15:49 +05:00
46e56b7ad4 Add routes for managing users in teams 2019-03-19 17:51:16 +05:00
dfca6cf073 Remove 302 after logout 2019-03-19 10:59:45 +05:00
209378424c Increase default duration in SessionMiddleware 2019-03-19 10:50:51 +05:00
6ae5817529 Generate req.correlationId 2019-03-19 10:20:32 +05:00
c813407c95 Add LoginMenu.tsx 2019-03-18 20:18:52 +05:00
30a8c56119 Fix test for User firstName & lastName
Also fix CSRF token. This was probably broken since csurf middleware was
modified to use cookie instead of session storage to provide support for
single page app (SPA).
2019-03-18 15:53:05 +05:00
6fb69e40df Build tsc project before generating migration
This is especially important for comments-server, because ts-node will
use compiled js files from @rondo/server - that's just how node's module
resolution works and I do not think there's anything that we can do to
change that
2019-03-18 14:27:32 +05:00
49fc73a1c2 comments/server: Add migration for User 2019-03-18 14:00:29 +05:00
bc979c51c7 packages/server: Fix ormconfig.js 2019-03-18 13:57:41 +05:00
428630072c Fix (hopefully) CSRF for SPA 2019-03-17 15:04:15 +05:00
0c7af3538c Move LoginRoutes from /app to /api 2019-03-17 14:24:09 +05:00
491012a815 Update TypeScript to 3.3.3333
TODO: Remove cast this.router to any
2019-03-17 13:43:47 +05:00
360dc83ded Setup simple SSR, untested 2019-03-14 12:38:34 +05:00
949b008208 Update jest to 24 and set maxConcurrency 2019-03-14 12:08:37 +05:00
6ea422f340 Fix running jest from root directory 2019-03-13 22:19:51 +05:00
2fb77382c9 Log config files read 2019-03-13 22:18:58 +05:00
6d926894db Fix broken tests in new project 2019-03-13 11:53:42 +05:00
36c61646ed Fix UserService.test.ts 2019-03-13 11:33:02 +05:00
155c98d000 Extract comments functionality to packages/comments-server 2019-03-13 11:24:08 +05:00
2fc22f05b7 Add comments-server 2019-03-12 22:42:14 +05:00
0a7442a932 Replace node-config with packages/server/config 2019-03-12 17:09:21 +05:00
a5ef6bd981 Add ConfigReader.ts 2019-03-12 17:04:42 +05:00
694d1857b3 Export Bootstrap in packages/server/src/application/index.ts 2019-03-12 14:16:22 +05:00
406858cf2d Add unique constraint check to StoryService 2019-03-12 11:50:19 +05:00
a4be36d159 Add tests for CommentRoutes 2019-03-12 11:46:41 +05:00
cec34260ce Add test for PUT /comments/:commentId 2019-03-11 22:11:53 +05:00
051208753b Add more tests for Comments 2019-03-10 19:40:06 +05:00
234db553b1 Add ability to delete a Site 2019-03-10 16:05:20 +05:00
e18e00a6e5 Use UserPermissions in TeamRoutes 2019-03-10 15:42:58 +05:00
14e90f9559 Add put & delete team route 2019-03-09 22:56:55 +05:00
4cc03fe611 Add test for StoryRoutes 2019-01-27 16:19:35 +01:00
52dc876845 Add ability to specify query params in tests 2019-01-27 16:07:16 +01:00
04b3a7ca90 Add more tests for SiteRoutes 2019-01-27 15:48:47 +01:00
25574903ba Run process.chdir in jest.setup.js for packages/server 2019-01-27 15:39:41 +01:00
3b295b2e13 Add StoryRoutes.test.ts 2019-01-25 12:28:20 +01:00
2b431bee78 Separate services and routes into features 2019-01-25 10:12:40 +01:00
2ed3aeac26 Add Routes to application 2019-01-24 17:55:49 +01:00
f0943cfe80 Add SiteRoutes, StoryRoutes and TeamRoutes 2019-01-22 13:30:15 +01:00
d0e94808bb Fix CommentRoutes 2019-01-22 13:06:01 +01:00
8865b58747 Add basic Site, Story and TeamService 2019-01-22 12:29:47 +01:00
b8b7052d71 Make votes and spam reports unique per user/report 2019-01-22 12:07:52 +01:00
78056e53a0 Remove comment.id before inserting new ones 2019-01-22 12:06:45 +01:00
0c70a3b688 Move ICommentTree to @rondo/common 2019-01-22 11:59:23 +01:00
2e0402b189 Implement basic CommentService 2019-01-22 11:57:15 +01:00