Commit Graph

145 Commits

Author SHA1 Message Date
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
e2d1b697b7 add missing parameters in openApi definition for "GET /workgroups" route 2020-06-14 00:30:24 +02:00
2ee8b80596 Add descriptions on OpenAPI 2020-06-02 15:08:12 +02:00
10928251e6 Can update roles of one citizen on workgroup 2020-06-02 14:20:35 +02:00
9b79301662 update workgroup in OpenApi 2020-06-02 01:01:29 +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
eca5d1fe33 #39 I must be notified by email when an article is changed
add function CitizenI.Name.getFullName()
2020-05-12 16:15:35 +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
8640d9146d Update postgres-json to Add ShadowJar compatibility
Add .env for redis and ES
change group name of project
2020-05-11 01:50:40 +02:00
575752cdc7 Add workgroups routes to openapi 2020-03-25 00:24:50 +01: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
90e7e0254d #15 Count total view
Create Viewable interface
Set Article as Viewable
Create ES client
Now view article increment view count
Create index on start application

add an extention in ApplicationCall, to get citizen or return null
2020-03-11 12:55:39 +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
967b370a41 implement route /articles/{article}/follows
create repository for find_follow
2020-02-27 17:14:56 +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
af33ed9ec3 Publish message into rabbitmq on create article
Create Redis and Rabbit in docker-compose
2020-02-22 02:26:52 +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
f622dbeecd Add opinion on find_article_by_id & find_articles request
create request for find_citizen_opinions_by_target_id
create fixture for opinions
2020-02-08 01:01:32 +01:00
de6ca63165 Add opinion Tables and request 2020-02-07 02:06:06 +01:00
a4dbd43cfb Fix get comments by target 2020-02-06 01:45:21 +01:00
eb7a0c7210 Add sort on comments -> findByTarget 2020-02-05 15:20:38 +01:00
24bc1520f7 Improve change password 2020-01-30 14:18:40 +01:00
41a98f23b8 Clean code 2020-01-28 22:35:50 +01:00