Commit Graph
100 Commits
Author SHA1 Message Date
flecomte 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
flecomte f677cac779 Lint 2020-03-06 09:58:08 +01:00
flecomte 559890000d Refactoring: user fixtures in sql tests 2020-03-06 09:54:58 +01:00
flecomte 4a4e9651fd Move Notifications config from Application.kt to ConfigNotification.kt 2020-03-03 12:23:42 +01:00
flecomte 0421f3cb55 Can delete Notification
Add ID to notification
2020-02-28 23:43:51 +01:00
flecomte f3e0f64249 Improve Notification WS 2020-02-28 16:01:10 +01:00
flecomte d34ae52522 Fix unfollow on multiple version of article/constitution 2020-02-27 22:56:41 +01:00
flecomte e8d342a729 Fix CORS for delete request 2020-02-27 22:55:52 +01:00
flecomte 977d59b60b Add Test for get follow of article 2020-02-27 20:34:46 +01:00
flecomte 5d26497cdb Minor refactoring of cucumber steps 2020-02-27 20:34:29 +01:00
flecomte cd13f9a010 Improve Follow repository to split IN/OUT type 2020-02-27 20:31:25 +01:00
flecomte 3bf20a971a Fix find_citizen_votes_by_target_ids
lint
2020-02-27 19:09:25 +01:00
flecomte 967b370a41 implement route /articles/{article}/follows
create repository for find_follow
2020-02-27 17:14:56 +01:00
flecomte 3a08052728 Create find_follow.sql 2020-02-27 17:12:32 +01:00
flecomte 1418dd95bc Implement Websocket for push Notification
create auth with jwt in query string
2020-02-27 01:38:34 +01:00
flecomte b678f7f2cc Add consumer for Notification 2020-02-24 20:44:37 +01:00
flecomte af33ed9ec3 Publish message into rabbitmq on create article
Create Redis and Rabbit in docker-compose
2020-02-22 02:26:52 +01:00
flecomte 471013984c Continue to implement opinion
improve target reference
Improve Tests for Opinion
fix SQL:upsert_opinion
2020-02-19 12:33:29 +01:00
flecomte 60bd24e653 Add sonarqube (Docker server & gradle config) 2020-02-12 17:16:52 +01:00
flecomte 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
flecomte ec6e39b130 Create OpinionChoice 2020-02-11 23:03:12 +01:00
flecomte 42781565dd fix find_citizen_opinions_by_target_ids.sql
change opinion_list.target to array
2020-02-08 02:28:19 +01:00
flecomte 976f8fac6a Add find_opinions.sql 2020-02-08 01:24:16 +01:00
flecomte 7742287884 Add Opinion entity and add opinions on article 2020-02-08 01:03:16 +01:00
flecomte 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
flecomte 2048c71881 Fix sql test and add Command for lanch all sql test 2020-02-07 02:09:09 +01:00
flecomte de6ca63165 Add opinion Tables and request 2020-02-07 02:06:06 +01:00
flecomte a4dbd43cfb Fix get comments by target 2020-02-06 01:45:21 +01:00
flecomte eb7a0c7210 Add sort on comments -> findByTarget 2020-02-05 15:20:38 +01:00
flecomte 42a41da066 Add OpenAPI route and server 2020-02-04 16:45:54 +01:00
flecomte 77658c5f6b Fix get comments children 2020-01-30 17:30:11 +01:00
flecomte 5161dca1d5 Fix get all commet of article 2020-01-30 15:02:52 +01:00
flecomte 24bc1520f7 Improve change password 2020-01-30 14:18:40 +01:00
flecomte 3d2d3c2e14 Remove Extra class, and create CommentRef 2020-01-29 16:58:14 +01:00
flecomte 41a98f23b8 Clean code 2020-01-28 22:35:50 +01:00
flecomte 813d6857e9 Split Entities for remove nullable variables 2020-01-28 22:00:44 +01:00
flecomte 3cdd1f3a46 update postgresjson (mutable entity) 2020-01-22 23:08:58 +01:00
flecomte e68b5d87ce remove wrong line in sql file 2020-01-22 01:04:14 +01:00
flecomte ec99df1f6a update config 2020-01-22 00:55:22 +01:00
flecomte a3b35b6273 add more config 2020-01-22 00:38:33 +01:00
flecomte e97ac8368f catch WrongLoginOrPassword 2020-01-22 00:38:33 +01:00
flecomte db744e5f31 respond 404 on email not found on sso connect 2020-01-22 00:38:31 +01:00
flecomte 6746ca08e2 update config 2020-01-22 00:03:35 +01:00
flecomte 5b4d878f8a Can filter article by author 2019-10-28 23:02:16 +01:00
flecomte 846b23b550 Can sort by vote and popularity 2019-10-16 16:36:03 +02:00
flecomte 32417d3276 VoteAggregation return total votes and the score 2019-10-16 16:27:49 +02:00
flecomte 54393000b3 Fix comment::children_count 2019-10-16 14:40:21 +02:00
flecomte 8cb5c35296 Can Comment a Comment 2019-10-15 15:46:19 +02:00
flecomte 499fbd6dcf add 401 to OpenAPI 2019-10-15 15:00:13 +02:00
flecomte 11b0fad0ed define missin route "/citizens/{citizen}/comments/articles" into OpenAPI 2019-10-15 13:30:14 +02:00
flecomte e73a7b5a18 Add App into docker 2019-10-13 16:24:13 +02:00
flecomte f76f6f83bb Lint project 2019-10-10 22:50:24 +02:00
flecomte 194620e15b add Lint and test report 2019-10-10 22:50:03 +02:00
flecomte 95f6087b8f update gradle 2019-10-10 22:49:52 +02:00
flecomte 2d1d2d532a Fix link into SSO email 2019-10-10 00:01:00 +02:00
flecomte f5030933ef add openApi for sso and change password 2019-10-09 23:40:27 +02:00
flecomte 7e52808ccf Clean code after update postgresjson 2019-10-09 22:54:34 +02:00
flecomte a6f25bcbb2 Can login with SSO & change Password 2019-10-09 21:57:56 +02:00
flecomte 20416ce108 create SQL function "change_user_password" 2019-10-09 12:27:20 +02:00
flecomte f91b25b35b add email to citizen entity 2019-10-08 14:37:21 +02:00
flecomte ebc552a431 add email to citizen table 2019-10-08 14:36:45 +02:00
flecomte afb7f7a1a6 Implement Mailer 2019-10-08 02:31:23 +02:00
flecomte c156e2a7b1 SQL functions find_comments_* now return VotesAggregates
create Votable Interface
remove usless "resourceTarget" argument for SQL function "count_vote"
2019-10-08 00:26:41 +02:00
flecomte f20964878f Improve Vote Comment
Add "targetReference" field into Extra Entity
Add VoteCommentRoute to OpenApi
2019-10-07 14:15:43 +02:00
flecomte d90d3117d5 Can vote on Comment 2019-10-06 23:50:42 +02:00
flecomte 646c199292 Improve error message on sql function 2019-10-06 23:50:27 +02:00
flecomte 6d4339f2a5 Refactor SQL function Comment 2019-10-06 23:49:20 +02:00
flecomte 9cbba66a36 Can search article by tags 2019-10-06 00:01:28 +02:00
flecomte 5b44d4766d OpenApi: Add tags 2019-10-05 22:17:39 +02:00
flecomte f7feb513e0 OpenApi: move comment path parameter to generic type 2019-10-05 22:17:39 +02:00
flecomte bc8d187914 OpenApi: move constitution path parameter to generic type 2019-10-05 22:17:39 +02:00
flecomte e55e0aea44 OpenApi: move article path parameter to generic type 2019-10-05 22:17:38 +02:00
flecomte c5a2f92b19 create SQL function for get citizen votes with multiple target ids
add updated_at field on vote table
2019-10-05 22:17:38 +02:00
flecomte 51cc5b640d fix and improve cucumber step "findJsonElement" 2019-10-03 23:01:59 +02:00
flecomte fad625f204 Fix: get All vote of current citizen now return complete target 2019-10-03 15:43:31 +02:00
flecomte fc138790ea Can get current Citizen 2019-10-02 01:28:43 +02:00
flecomte 9de2c91191 Add openApi for /citizens/{citizen}/votes/articles 2019-10-01 17:13:11 +02:00
flecomte 5352c82bba Can get votes for one citizen 2019-10-01 13:58:25 +02:00
flecomte 5d1bed5f22 Improve test "the response should contain object" 2019-10-01 13:57:05 +02:00
flecomte 70c69bd626 Fix comment test 2019-10-01 13:55:41 +02:00
flecomte 47bdc349c5 create SQL function find_votes_by_citizen 2019-10-01 11:30:07 +02:00
flecomte be03bc4df8 GET comments of article is paginate 2019-10-01 09:54:18 +02:00
flecomte 3a77eff86e can get comment children of an other comment 2019-09-22 23:54:53 +02:00
flecomte dc490dcac3 change parent_id in comment 2019-09-22 22:39:04 +02:00
flecomte a37afc1ada return votes after vote 2019-09-20 22:42:50 +02:00
flecomte 2311d3986e add PUT in CORS 2019-09-20 02:37:16 +02:00
flecomte 68acd3b075 fix migration with function upsert_article 2019-09-18 01:07:37 +02:00
flecomte 93e32caa4c fix draft on SQL tests 2019-09-18 01:07:03 +02:00
flecomte acc6ecf114 add votes to article 2019-09-18 01:06:40 +02:00
flecomte a5b55c2d87 add draft to constitution 2019-09-16 22:55:09 +02:00
flecomte bb555ce69f docker elastic always restart 2019-09-16 22:50:17 +02:00
flecomte c2beed416e replace Article entity by Article request for the HTTP request
Add draft
2019-09-16 22:47:37 +02:00
flecomte 05c28a2f62 find only the last version of article on listing 2019-09-06 02:20:35 +02:00
flecomte 56ea1507f7 Add draft for article & constitution, auto set last_version column 2019-09-06 00:36:41 +02:00
flecomte d7d88a3295 fix sql test 2019-09-06 00:35:48 +02:00
flecomte 742927a590 Add route for get all versions of one article 2019-09-05 17:45:24 +02:00
flecomte 6423491be3 Add pagination on query find_articles_versions_by_* 2019-09-05 17:14:34 +02:00
flecomte 4990015769 fix openApi 2019-09-05 16:37:26 +02:00
flecomte 3533eb4a5c Add query for get all versions of one article 2019-09-05 16:37:15 +02:00
flecomte 369967d5f3 add versions on articles fixtures 2019-09-05 16:36:48 +02:00