Commit Graph

44 Commits

Author SHA1 Message Date
Christoph Lienhard f7a56a0bed Rename candymat -> kandimat everywhere
Furthermore, submodule link to new public repo
2022-02-02 15:06:13 +01:00
Christoph Lienhard 8ec2158f95
#20 Fix database start-up 2021-05-29 17:34:25 +02:00
Christoph Lienhard 4a2ba8406d
#20 Return person on change role mutation
Return the whole person object on calling the changeRole mutation.
This enables the apollo cache in the frontend to automatically
update the role of the given user.

Furthermore, made all create function statements idempotent by
deleting them first if existing.
2021-05-28 23:41:30 +02:00
Christoph Lienhard e26a154518
#20 Add UserManagement page
Connects to backend and gets all registered users by role.
Enabled editors to see all registered users which wasn't possible.
2021-03-30 18:24:41 +02:00
Christoph Lienhard 8afea80dd2
Add eslint to redaktionsapp 2021-01-30 16:12:10 +01:00
Christoph Lienhard 5e219089f6
#14 Implement possibility to answer questions for canditates 2021-01-05 18:28:24 +01:00
Christoph Lienhard 9a1dc02a7f
#11 Finally align structure of question on category in db 2020-12-29 17:58:20 +01:00
Christoph Lienhard dd2f414f00
#11 backend: nodeId -> id and id -> rowId
To be more in sync with typical graphql servers.
2020-12-29 11:35:34 +01:00
Christoph Lienhard b6f6adac22
#7 Disable empty First- and Last Names as well as empty Passwords on Sign-Up 2020-12-27 21:18:15 +01:00
Christoph Lienhard 584e21d5c1 Add more test data 2020-08-22 21:39:19 +02:00
Christoph Lienhard 5e69a5f31e Move password related env variables to docker compose .env file 2020-05-31 14:45:20 +02:00
Christoph Lienhard 2068dfd1af Massively extend documentation 2020-05-31 14:45:20 +02:00
Christoph Lienhard 02845e65db Introduce JWT Authentication
Added features:
* register
* authenticate
* RLS as summarized in security_considerations.md

Improve
* Use enhanced graphiql version to be able to set authentication headers

Remove:
* docker-compose.prod.yml since it is not updated for now (and we do not have a production env)
2020-05-31 14:29:17 +02:00
Christoph Lienhard 74e282a92b Fix docker compose setup and add redaktions app 2020-01-31 23:01:08 +01:00
Pit-Storm e1c8b38d0f running graphQL instance in compose file 2019-11-02 18:24:59 +01:00
Pit-Storm 795d6567b1 working database in docker-compose 2019-11-02 17:44:57 +01:00
Pit-Storm 1f5a5ab95e prepared for postgres in docker 2019-11-02 16:28:22 +01:00
Christoph Lienhard 0c24b93605 #18 fix typos 2019-10-13 22:54:31 +02:00
Christoph Lienhard 1015341009 #18 Introduce basic table setup 2019-10-13 22:48:27 +02:00
Christoph Lienhard 93b67d12ee replace wrong tabs 2019-09-20 19:10:00 +02:00
Christoph Lienhard d1481a24ba Add an overview and an /api prefix to every endpoint 2019-09-20 19:05:39 +02:00
Christoph Lienhard 1e37264ce7 Move and adapt api documentation for antworten 2019-09-20 18:42:47 +02:00
Christoph Lienhard eb87d876e3 Move and adapt api documentation for fragen 2019-09-20 16:29:02 +02:00
Christoph Lienhard c7d81ccb3a Move and adapt api documentation for kategorien 2019-09-20 16:15:23 +02:00
Christoph Lienhard fdff6b3013 Move and adapt api documentation for kandidaten 2019-09-20 16:05:57 +02:00
Christoph Lienhard e25fcf3442 Merge remote-tracking branch 'origin' into start-redaktions-app 2019-09-18 00:10:00 +02:00
Christoph Lienhard aaec295ba4 Get local development setup working 2019-09-17 23:48:44 +02:00
Pit-Storm 6c2b6db11c finally request query kat_id for fragen 2019-08-31 23:23:41 +02:00
Pit-Storm d86e9d0d6f added request query kat_id for /fragen 2019-08-31 22:25:45 +02:00
Pit-Storm 17872668db edited test to have real examples 2019-08-31 19:00:53 +02:00
Pit-Storm fcdc758f60 added route /antworten 2019-08-31 17:39:12 +02:00
Christoph Lienhard 9257812d96 Add a script for running tests 2019-08-31 17:27:45 +02:00
Christoph Lienhard d1978854a9 Merge branch 'setup-flask' of github.com:netzbegruenung/candymat into setup-flask 2019-08-31 17:03:48 +02:00
Christoph Lienhard b4d277acd9 Add tests for backend 2019-08-31 17:01:42 +02:00
Christoph Lienhard 690e99718c Add kategorien as valid url path 2019-08-31 17:00:49 +02:00
Christoph Lienhard abf64adc90 Added Kategorien for Fragen 2019-08-31 15:28:55 +02:00
Pit-Storm 36689fb26c updated backend/README.md for Windows and Conda 2019-08-31 15:17:04 +02:00
Christoph Lienhard cf70183c68 Update backend Readme 2019-08-31 14:56:04 +02:00
Christoph Lienhard 967ac0a493 Merge branch 'setup-flask' of github.com:netzbegruenung/candymat into setup-flask 2019-08-31 14:55:11 +02:00
Christoph Lienhard 3401847e9b Update backend README 2019-08-31 14:52:04 +02:00
Pit-Storm 7e7a3089b3 Merge branch 'setup-flask' of github.com:netzbegruenung/candymat into setup-flask 2019-08-31 14:48:09 +02:00
Christoph Lienhard 99f3171d0d Added simple flask API server
* Can respond to very basic requests with dummy data
* added editorconfig
* added scripts for starting the flask-server in dev mode
2019-08-31 14:46:07 +02:00
Pit-Storm 94ac85dad1 updated backend/README.md for conda users 2019-08-31 14:45:47 +02:00
Christoph Lienhard ee6ff8e9aa Add basic dev setup for back-end 2019-08-31 13:56:07 +02:00