Commit graph

40 commits

Author SHA1 Message Date
Tobias Reisinger ec461a1a14
Refactor drop privileges method 2023-11-27 19:36:53 +01:00
Tobias Reisinger 7ed3a9e52d
Add ability to drop privileges after binding to port 2023-11-27 17:36:44 +01:00
Tobias Reisinger 3b596de06f
Add ControllerWsAction 2023-11-27 17:21:40 +01:00
Tobias Reisinger cb47dcda5c
Add trait for db_model to model conversion 2023-11-27 15:09:14 +01:00
Tobias Reisinger 8dab4b9a50
Improve database errors (NotFound -> Option) 2023-11-27 13:33:04 +01:00
Tobias Reisinger be7f31906c
Refactor models names 2023-11-27 12:49:40 +01:00
Tobias Reisinger 76b14ce75b
Remove from_ref with unneeded clones 2023-11-26 23:27:15 +01:00
Tobias Reisinger 734f8b291c
Add WIP relays to database and api 2023-11-26 00:54:03 +01:00
Tobias Reisinger 4e3df272c3
Add self-creation for controller 2023-11-25 00:39:44 +01:00
Tobias Reisinger d193000aec
Add controller to database 2023-11-24 22:45:44 +01:00
Tobias Reisinger 9f64075f5a
Add better cors for core 2023-11-24 01:10:33 +01:00
Tobias Reisinger 32c75ad73a
Add WIP websocket to controller and refactor settings 2023-11-23 19:44:54 +01:00
Tobias Reisinger 452454f9e8
Flatten import for db-Schedule 2023-11-23 13:53:07 +01:00
Tobias Reisinger ee68405874
Add settings and constants 2023-11-23 03:36:14 +01:00
Tobias Reisinger e419923939
Move migrations around 2023-11-23 03:35:40 +01:00
Tobias Reisinger d5583e86bc Apply small fixes and prepare emgauwa-controller 2023-11-22 23:40:32 +01:00
Tobias Reisinger bacea1e3e9 Refactor project into workspaces 2023-11-22 20:06:20 +01:00
Tobias Reisinger 131bdeec78 Add WIP controller websocket 2023-11-22 16:28:46 +01:00
Tobias Reisinger ee5d4e2126 Add minor fixes 2023-11-22 16:15:15 +01:00
Tobias Reisinger 80d1fa32a0 Cleanup db/tag namespace 2023-11-21 16:46:12 +01:00
Tobias Reisinger effd3f3b18 Cleanup db/schedule namespace 2023-11-21 16:33:41 +01:00
Tobias Reisinger 09c50411d1 Switch from "impl Responder" to Result<> response 2023-11-21 15:30:30 +01:00
Tobias Reisinger a17a9868fa Reformat code 2023-11-21 15:00:14 +01:00
Tobias Reisinger 271b24b70d Make use of pool.acquire to prevent out-of-order db-actions 2023-11-21 14:56:14 +01:00
Tobias Reisinger f3d08aab80 Migrate to sqlx 2023-11-21 00:44:45 +01:00
Tobias Reisinger bd44dc3183 Add much stuff for rewrite 2023-11-19 20:52:24 +01:00
Tobias Reisinger 4261141c3a Switch spaces to tabs 2022-07-20 00:38:09 +02:00
Tobias Reisinger 07aca5293e Update run_tests.sh 2022-07-20 00:31:28 +02:00
Tobias Reisinger 467a98af43 Fix clippy warnings 2022-07-17 21:01:32 +02:00
Tobias Reisinger e3adc35221 Add function and prefer .iter() 2022-07-17 20:19:36 +02:00
Tobias Reisinger 53c6fcd917 Add wiring pi (for test and doc) 2022-04-15 02:11:34 +02:00
Tobias Reisinger e157a5d02d Add update and get-by-tag for schedules 2022-04-03 18:39:31 +02:00
Tobias Reisinger 2af71a8d84 Readd tests
Just copied from old version. Most will fail and run_tests.sh is not
working.
2022-04-03 01:36:18 +02:00
Tobias Reisinger 75f8afd624 Add tags for schedules 2022-04-03 01:35:51 +02:00
Tobias Reisinger f3f3d36eed Cleanup db stuff 2021-12-21 12:17:01 +01:00
Tobias Reisinger 53ead537ff Prepare pipeline 2021-11-09 16:43:43 +01:00
Tobias Reisinger 7254eddc6c Add delete handler and json-payload error response 2021-11-08 13:11:20 +01:00
Tobias Reisinger e6278176e4 Add middleware 2021-11-06 14:54:45 +01:00
Tobias Reisinger 483fd60daa Add saving periods 2021-11-05 16:32:30 +01:00
Tobias Reisinger 12d57d020f Start rust rewrite 2021-11-04 23:43:52 +01:00