Big refactoring #77

Merged
flecomte merged 166 commits from refactoring-component-and-immutable into master 2021-03-24 19:06:07 +01:00

166 Commits

Author SHA1 Message Date
03f68213e8 Test openapi schema of route /workgroup/*/members 2021-03-24 19:01:12 +01:00
66fa1ba840 Test openapi schema of route /workgroup/*
add test and fix update workgroup
2021-03-24 01:15:19 +01:00
89b2abc10e Test openapi schema of route /workgroup/* 2021-03-23 22:08:13 +01:00
b04408219d Test openapi schema of route /votes/* 2021-03-22 20:28:53 +01:00
5ef2345ea6 Test openapi schema of route /opinions/* 2021-03-22 02:57:33 +01:00
50b5ca03c6 Fix schema validator for parameters 2021-03-22 02:44:44 +01:00
9862e112eb Test openapi schema of GET /constitutions/{constitution}/follows 2021-03-22 00:52:23 +01:00
5dc1518cfc Test openapi schema of GET /citizens/{citizen}/follows/articles 2021-03-22 00:30:31 +01:00
fbd18e4c2e update wrapper 2021-03-21 22:36:52 +01:00
0e5943864d Test openapi schema of /follow/* 2021-03-20 02:43:53 +01:00
46cc61fc25 update kotlin 2021-03-20 02:00:05 +01:00
786b0bc949 create comment.toOutput() 2021-03-20 01:57:10 +01:00
8aa809c37e fix FindArticles schema 2021-03-20 01:25:23 +01:00
fdd69a687b create CitizenCreatorI.toOutput() 2021-03-20 01:20:58 +01:00
4c1ab796e4 Test openapi schema of /constitutions/* 2021-03-20 01:14:39 +01:00
c1a3590b2b Improve BitMaskI 2021-03-20 00:58:51 +01:00
c9ce2a9dc7 Refactor constitution entity 2021-03-20 00:55:39 +01:00
8701815288 Fix badRequest 2021-03-20 00:54:33 +01:00
d03b585372 Improve BitMaskI 2021-03-20 00:54:01 +01:00
c9879be72c create openapi schema ArticleListingResponse 2021-03-19 21:47:00 +01:00
ec8abf44b8 Idea config 2021-03-19 21:46:12 +01:00
776e0257fb add updatedAt for comment response 2021-03-19 21:19:53 +01:00
8f1f1f10d9 add required for paginated in openapi 2021-03-19 21:05:49 +01:00
cba3f1f4bc Change article.createdBy response 2021-03-19 21:04:55 +01:00
316b1e8318 Idea config 2021-03-18 21:09:55 +01:00
78a6cc417c Test openapi schema of
POST/GET /constitutions/{constitution}/comments
GET /citizens/{citizen}/comments/constitutions
2021-03-17 22:07:14 +01:00
564d612e9a Test openapi schema of GET /comments/{comment}/children 2021-03-17 20:55:58 +01:00
65bf9a75f0 Fix CommentConstitutionRepository repo 2021-03-17 18:37:39 +01:00
33ceb13cde Test openapi schema of GET /citizens/{citizen}/comments/articles 2021-03-17 18:30:46 +01:00
7765e6d27a Test openapi schema of PUT /comments/{comment} 2021-03-17 18:25:55 +01:00
ca402dbea7 Test openapi schema of /comments/{comment} 2021-03-17 18:09:05 +01:00
07ae50c40a Test openapi schema of /articles/{article}/comments 2021-03-17 17:48:42 +01:00
42dbd940a0 Test openapi schema of /articles/{article}/comments 2021-03-17 02:17:37 +01:00
0f768f3e4c Test openapi schema of /citizens/{citizen}/password/change 2021-03-17 00:46:05 +01:00
5fce37f269 Test openapi schema of /citizens/{id} 2021-03-17 00:28:01 +01:00
52bdcd0990 Test openapi schema of /citizens/current 2021-03-16 18:51:41 +01:00
1655f47044 Test openapi schema of /citizens 2021-03-16 18:23:40 +01:00
c07a57a591 Test openapi schema of Auth passwordless 2021-03-16 01:28:26 +01:00
0cf1aea9bf Test openapi schema of Register
Fix some routes
Improve Schema Validation
2021-03-16 00:53:10 +01:00
235de4e5ff Improve error on "no path found" in openapi file 2021-03-15 10:13:38 +01:00
869093ab25 Fix tests 2021-03-15 10:13:01 +01:00
189aa8d549 Test openapi schema response of Login 2021-03-15 02:02:26 +01:00
97b07fb424 Test openapi schema requestBody 2021-03-15 02:01:39 +01:00
9c88adbabd Test openapi schema response of FindArticlesVersion,GetOneArticle,UpsertArticle
change snack_case to camelCase
2021-03-12 23:32:32 +01:00
ed0873837b Test openapi schema parameters in path 2021-03-09 03:49:59 +01:00
6988365473 Test openapi schema parameters 2021-03-09 01:53:01 +01:00
4762275b5b Test openapi schema response of FindArticles 2021-03-08 23:13:48 +01:00
97c1e47db2 Fix openapi.yaml 2021-03-08 23:07:23 +01:00
bb637dd96a #71 Use response object for route FindArticles 2021-03-05 00:39:49 +01:00
9fc21f5459 clean warnings 2021-03-03 03:16:09 +01:00
d9deb4836e #72 Move Entity and repository on the same package 2021-03-03 02:46:51 +01:00
79feed54dd #68 Clean vote and citizen Entity
remove last warnings
2021-03-03 02:25:24 +01:00
2e8215eafc Add command to change vm.max_map_count before run docker 2021-03-03 01:25:23 +01:00
4c00095118 #68 Clean workgroup Entity 2021-03-02 23:25:00 +01:00
bc772f168f #68 Clean opinion Entity 2021-03-02 00:53:02 +01:00
8d93fc8b3c #68 Clean follow Entity 2021-03-01 22:44:17 +01:00
66dcff8f46 Fix sonar task 2021-02-28 23:31:11 +01:00
c61b31cc58 Change codestyle 2021-02-28 02:07:12 +01:00
78604301c3 Remove pitest 2021-02-28 02:05:19 +01:00
d382a89905 Fix tests 2021-02-28 01:42:11 +01:00
7446bd506a create gradle tasks "test", "testSql", "migrations" and run docker before tasks 2021-02-27 23:20:57 +01:00
c25cf64f4b #68 Clean Entities 2021-02-25 18:32:17 +01:00
c1af949204 fix sonarqube 2021-02-25 01:33:20 +01:00
7985ea67e5 remove cucumber 2021-02-25 01:09:44 +01:00
9a3a308841 Change code style 2021-02-25 00:53:20 +01:00
d83ba2d54d Add Integration test for workgroup routes 2021-02-25 00:48:52 +01:00
7b4066b928 Add Integration test for vote routes 2021-02-24 00:21:29 +01:00
9fb2262107 Add Integration test for opinion routes 2021-02-23 22:51:16 +01:00
a27099177d Add SQL request find_citizen_by_name 2021-02-23 22:06:05 +01:00
b0aec9bea0 Add Integration test for follow constitution routes 2021-02-23 17:24:12 +01:00
a17bd11e9e Add Integration test for follow article routes 2021-02-19 23:30:04 +01:00
8cf79a791e Rename annonymous to anonymous 2021-02-19 22:27:47 +01:00
bf4e01e318 Add Integration test for constitution routes 2021-02-19 22:27:47 +01:00
d29bb4467a Add/fix tags to integration tests 2021-02-19 21:58:06 +01:00
0ecf0c205f Add Integration test for comment 2021-02-19 00:42:10 +01:00
55aa512aa5 Change error text 2021-02-13 01:43:47 +01:00
addb3cddff refactor idea run's 2021-02-13 01:34:05 +01:00
f7b6cc4eb3 fix DB test script 2021-02-13 01:28:05 +01:00
28b9ac4e54 Install pitest 2021-02-13 01:27:40 +01:00
02879291e8 Sonarqube and detekt 2021-02-11 01:50:14 +01:00
066b01e86f Move all file in fr.dcproject. 2021-02-11 01:50:14 +01:00
c85401aa86 move createCitizen of Integration test 2021-02-10 18:10:21 +01:00
34a7310944 move Integration step test 2021-02-10 17:48:32 +01:00
e8716a1e7f Add Integration test for article 2021-02-10 14:37:57 +01:00
f8ecd69582 Rename tests 2021-02-10 01:24:34 +01:00
99438b1ff9 Fix engine start/stop for integration tests 2021-02-10 01:08:23 +01:00
ec0115d613 Add Integration test for citizen 2021-02-10 00:58:42 +01:00
55bfbb619d Add Integration test for Register 2021-02-09 20:56:27 +01:00
edf0c00cf1 Init Integration test without cucumber 2021-02-09 03:11:43 +01:00
dcf35eaccd Clean Citizen entities
Change plainPassword to just password
Add request Input for /login
2021-02-09 00:39:26 +01:00
905330a722 Move last package into common/component 2021-02-06 01:25:59 +01:00
5979337bc3 Remove last converter for Workgroup 2021-02-06 01:06:46 +01:00
8c228f666f Lint 2021-02-06 00:56:02 +01:00
678bdf7087 Remove converter for OpinionChoice 2021-02-06 00:45:54 +01:00
507698c7ea use always receiveOrBadRequest 2021-02-06 00:32:07 +01:00
fdd4742b28 Remove converter for Citizen
Add receiveOrBadRequest
2021-02-06 00:23:36 +01:00
0bbe37c6d5 Remove converter for CitizenRef 2021-02-05 23:13:37 +01:00
192411a69a Remove converter for Constitution 2021-02-05 22:18:32 +01:00
929d248841 Remove converter for ConstitutionRef 2021-02-05 21:52:10 +01:00
8ead83941f Remove converter for CommentRef 2021-02-05 21:48:33 +01:00
aeaab860b2 Remove converter for article 2021-02-05 00:32:19 +01:00
16eadc0921 Optimise GetOneArticle 2021-02-04 23:58:53 +01:00
f2445f3b25 Optimise ArticleVersionsRequest 2021-02-04 23:53:17 +01:00
bb212f9c6c move notification to component 2021-02-04 23:34:20 +01:00
89c15eb1cf cleanup and refactoring of notification
close rabbit and redis connexion on application close
Refactoring of Configuration class
fix notification id increment
Add builder for NotificationPush
Add close to notificationPush to remove listener
Clean tags of tests
purge queue before functional tests
2021-02-04 02:37:29 +01:00
a05b5edc86 update redis to stable version 2021-02-03 15:35:34 +01:00
5704eb9e07 Clean config in test 2021-02-03 15:35:14 +01:00
3580c33891 Rename NotificationConsumer 2021-02-03 01:49:12 +01:00
3b3a71f6eb Schema for notifications 2021-02-03 01:22:20 +01:00
d479cf6bca Refactor Notification System
Add Tests for notification system
2021-02-03 01:21:13 +01:00
b54a40cef4 Rename event to notification 2021-01-27 01:08:09 +01:00
1c644768e6 remove raiseEvent for notifications
Add Test for EventNotification
Add application.conf for test
2021-01-26 23:58:25 +01:00
aa95de7a6a move some part of KoinModule in components 2021-01-23 23:26:01 +01:00
dd6433306d Remove Configuration object to koin 2021-01-23 22:47:02 +01:00
bfc0b7e796 Move comment constitution to component 2021-01-23 22:38:47 +01:00
81e14f1a84 Move some interface to common package 2021-01-23 22:28:48 +01:00
d9f19a9c23 reword 2021-01-23 22:20:44 +01:00
1e5598cb91 Move constitution to component 2021-01-23 21:18:42 +01:00
f34407962b Remove Deprecated Article Entities 2021-01-23 00:54:53 +01:00
49a03a57cb Rename Voter to AccessControl 2021-01-22 22:07:25 +01:00
c1b8b508ac Move vote to component 2021-01-22 21:45:02 +01:00
c92d0b5640 Move opinions to component 2021-01-22 21:11:04 +01:00
73e96c0c46 Use interface PaginatedRequestI 2021-01-22 20:37:47 +01:00
fac27d0725 move database config env in object 2021-01-22 20:25:32 +01:00
97ccb6ee51 ktlint 2021-01-22 17:29:36 +01:00
93aa47c6cc move routes installation into component bis 2021-01-21 22:01:10 +01:00
667339979b move routes installation into component 2021-01-21 21:55:24 +01:00
3ba4a195ba Update gradle and dependencycheck 2021-01-21 16:26:15 +01:00
6a32895571 Move Follow to a component 2021-01-18 21:45:48 +01:00
6cdc526335 upgrade klint and format code (remove wildcard import 2021-01-18 17:23:16 +01:00
a79e1ec086 upgrade kotlin, ktor, sendgrid 2021-01-18 17:13:24 +01:00
4b435b925e upgrade java-jwt, kasechange-jvm, amqp-client, lettuce 2021-01-18 13:30:25 +01:00
78e01ba981 upgrade logback, corouties, json-path, mockk, junit-jupiter 2021-01-18 13:24:51 +01:00
56818189ae upgrade jackson 2021-01-18 13:17:11 +01:00
fbea05218b upgrade cucumber 2021-01-18 13:15:12 +01:00
c78dfc0f7f upgrade jasync-sql 2021-01-18 13:12:47 +01:00
425d01c0df Remove ktor-voter 2021-01-18 13:12:29 +01:00
64fa0912b8 Refactoring of OpinionChoiceVoter 2021-01-18 13:03:01 +01:00
ba673943d8 Refactoring of OpinionVoter 2021-01-18 09:51:48 +01:00
c196bfadbc Fix Move Views config into component 2021-01-18 01:08:11 +01:00
e9f56412c5 Move Views config into component 2021-01-18 01:07:02 +01:00
d12c9c2166 Move installation of JWT to external file in auth component 2021-01-18 00:09:23 +01:00
55cd97078a Refactoring of FollowVoter 2021-01-17 23:46:51 +01:00
d6840e8064 Refactoring of VoteVoter 2021-01-17 23:32:43 +01:00
308a284280 Refactoring of ConstitutionVoter 2021-01-17 23:06:18 +01:00
1b6549eae3 Rename wrong naming SSO to Passwordless 2021-01-17 22:46:43 +01:00
b028ff05b9 Move files
Move Application and configurations file to the application package
Move JWT files to the auth.jwt package
Move ApplicationContext to auth package an rename to CitizenContext
2021-01-17 22:29:32 +01:00
c380ba47a5 Refactoring of WorkgroupVoter 2021-01-17 15:01:49 +01:00
ecda29abe5 Move Workgroup to a component 2021-01-17 14:18:19 +01:00
bec73561e7 Fix IDEA commands 2021-01-17 14:17:53 +01:00
299495a03c ktlint 2021-01-17 00:10:51 +01:00
d87b433398 Move Comment article to a Component 2021-01-17 00:05:37 +01:00
b61fc3c7d1 Fix Auth request 2021-01-17 00:04:48 +01:00
b421b03575 Fix Double token generation in SSO 2021-01-15 23:43:49 +01:00
128510fe88 Add TODO's 2021-01-15 23:43:49 +01:00
ce90884758 Move Auth to a Component 2021-01-15 23:27:47 +01:00
42440c0041 Fix sql-test launcher 2021-01-15 02:46:10 +01:00
459397f8e7 Move tests and create a command to run all tests 2021-01-15 02:40:41 +01:00
7c106f7cf8 Refactoring of CommentVoter 2021-01-15 01:45:32 +01:00
caadc2a969 klint 2021-01-14 22:53:48 +01:00
91ab800272 Move comments classes into comment component 2021-01-14 22:51:33 +01:00
64f74d0449 fix namespace of article refactoring 2021-01-14 22:15:51 +01:00
6a8c5bf717 Refactors Citizen into component
Refactor CitizenVoter
Split citizens routes
2021-01-14 15:24:05 +01:00
a1c1accc87 Refactors Articles and Voter
- Move files into components (article)
- Split articles routes
- Refactoring for remove ktor-voter (ArticleVoter)
- Remove mutability
- Move DataConversion to separate file (Converter.kt)
- Add Schemas for Articles routes
- Fix SQL Query for Workgroup roles
- rename container_name in docker-compose
2021-01-14 13:06:13 +01:00
03401f711e Update ktor-voter to version 2.2.0 2020-10-05 15:32:44 +02:00
74923891d0 Fix security 2020-10-04 01:10:22 +02:00