Commit Graph

112 Commits

Author SHA1 Message Date
371483ccde Improve query findFollowsByTarget & add tests 2021-04-27 18:52:36 +02:00
1c33c026f0 #60 Can follow citizen 2021-04-17 01:37:32 +02:00
359450ad8f #61 Fix version date returned for the article.createdAt 2021-04-16 21:23:43 +02:00
518b59e9aa Add validation on route GetWorkgroups 2021-04-15 22:20:16 +02:00
39c665b7a9 Add Test for Notification routes
Add @JsonSubTypes on Notification
return all creator on request find_follows_article_by_target
Add testNotifications task
2021-04-14 23:51:44 +02:00
6a5e00bb4d Add validation on Constitution routes 2021-04-11 00:54:09 +02:00
8223dd21bb Add validation on route CreateComments & EditComment
rename POST /comments/{comment}/children
method edit and create comment of repository return edited/created comment
2021-04-10 01:16:09 +02:00
f5c1aa29e8 Add validation on route GetArticleComments 2021-04-09 18:06:32 +02:00
13cdaaf01a Add validation on route FindCitizens 2021-04-08 22:25:43 +02:00
66fa1ba840 Test openapi schema of route /workgroup/*
add test and fix update workgroup
2021-03-24 01:15:19 +01:00
c9ce2a9dc7 Refactor constitution entity 2021-03-20 00:55: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
a27099177d Add SQL request find_citizen_by_name 2021-02-23 22:06:05 +01:00
f7b6cc4eb3 fix DB test script 2021-02-13 01:28:05 +01:00
dcf35eaccd Clean Citizen entities
Change plainPassword to just password
Add request Input for /login
2021-02-09 00:39:26 +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
46ee98c97f Increase article fixtures 2020-10-01 15:51:36 +02:00
5def84282d Improve vote count with cache 2020-09-04 15:22:15 +02:00
a3b44588a9 Can filter workgroup by members #58
add filterNotNull to toUUID() function
2020-08-25 15:30:36 +02:00
16feab9655 #57 I can filter articles by workgroup
update lib "postgres-json:1.2.1"
2020-08-24 16:55:18 +02:00
01c3d85a17 #54 Can create article under the name of the Workgroup 2020-07-10 15:41:39 +02:00
3d319605de Fix find_workgroups SQL query 2020-06-14 00:32:39 +02:00
63c4568aeb Fix find_citizens SQL query 2020-06-14 00:30:45 +02:00
10928251e6 Can update roles of one citizen on workgroup 2020-06-02 14:20:35 +02:00
32510652d1 Fix upsert_workgroup 2020-06-02 01:01:08 +02:00
a6c36c542e Fixture not delete table content before apply 2020-06-01 13:52:48 +02:00
7874f5cec4 #55 Can be assign a role to members of my Workgroup
Remove Owner on Workgroup (use role MASTER instead)
"find_citizen_by_id" not return user anymore, use "find_citizen_by_id_with_user" instead
2020-06-01 13:46:15 +02:00
bd123d03e9 Fix fixtures script 2020-05-14 13:46:55 +02:00
678a2f48d2 #48 Can view workgroup of citizen 2020-05-12 01:26:22 +02:00
460222bf69 Create bash script to insert fixtures 2020-05-12 01:25:01 +02:00
ecae3848ea Add script to launch fixtures 2020-05-11 01:51:30 +02:00
8c25f7633e Add delete workgroup query & repo 2020-03-24 23:48:11 +01:00
e85c8a3d55 find_workgroup_by_id return members
fix find_workgroup_members if no members
2020-03-24 23:38:07 +01:00
75af31ab73 Fix following in other version of article 2020-03-22 03:44:26 +01:00
589b6f5245 Refactoring of updateOpinions (route/repo/query)
Can nw be set multiple opinion on sigle query
fix OpinionVoter on CREATE
2020-03-22 00:53:08 +01:00
479793503c fix find_citizen_opinions_by_target_id if json is empty 2020-03-22 00:43:09 +01:00
64e3fb0134 Add script to launch SQL test 2020-03-18 02:18:10 +01:00
8c7e5bdf9b Refactoring Opinion Tests
upsert_opinion_choice
2020-03-17 00:31:24 +01:00
ca78db4155 #42 Add tests to ArticleVoter
Refactor ArticleVoter
2020-03-16 03:47:22 +01:00
f277613820 #29 Implement Workgroup members query 2020-03-13 23:33:51 +01:00
491ca13284 #29 Implement Workgroup (create query)
Create SQL query to get/set workgroup
Add workgroup to article query
2020-03-13 20:56:58 +01:00
d34ae52522 Fix unfollow on multiple version of article/constitution 2020-02-27 22:56:41 +01:00
3bf20a971a Fix find_citizen_votes_by_target_ids
lint
2020-02-27 19:09:25 +01:00
3a08052728 Create find_follow.sql 2020-02-27 17:12:32 +01:00
b678f7f2cc Add consumer for Notification 2020-02-24 20:44:37 +01:00
471013984c Continue to implement opinion
improve target reference
Improve Tests for Opinion
fix SQL:upsert_opinion
2020-02-19 12:33:29 +01:00
4a2d18ff87 Create route for Opinions
create OpinionRepository
create OpinionVoter
create OpinionChoiceRef
create extention String.toUUID() and List<String>.toUUID()
create OpinionAggregation
create interface RequestBuilderWithCreator for create entity by request
rename opinion_list to opinion_choice
create sql function find_citizen_opinions
fix sql function find_citizen_opinions_by_target_id
fix sql funciton find_opinion_choices
2020-02-12 14:47:18 +01:00
ec6e39b130 Create OpinionChoice 2020-02-11 23:03:12 +01:00
42781565dd fix find_citizen_opinions_by_target_ids.sql
change opinion_list.target to array
2020-02-08 02:28:19 +01:00
976f8fac6a Add find_opinions.sql 2020-02-08 01:24:16 +01:00