Commit Graph

390 Commits

Author SHA1 Message Date
7569798b00 upgrade sqlx to 0.7 Fixes #76 restructure registrations
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m57s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
2023-11-22 13:19:31 +01:00
2dd3885ba0 fix query
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m53s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
2023-11-20 23:44:13 +01:00
4199fadc0a use current year in test_db
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m10s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
2023-11-19 22:19:28 +01:00
7bc8293c65 add routes for different years
Some checks failed
CI/CD Pipeline / test (push) Failing after 11m0s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
2023-11-19 22:02:43 +01:00
53ed032c25 Merge branch 'staging' into 'log-2022'
# Conflicts:
#   src/model/logbook.rs
2023-11-18 11:22:50 +00:00
f001aaf90f add routes for different years 2023-11-18 12:21:37 +01:00
5b4238da92 update tests to use current date 2023-11-16 15:35:52 +01:00
a3c7461c2b don't allow to add entry which is not completed today 2023-11-14 23:09:33 +01:00
f4a278030f fix 2023-11-10 16:55:57 +01:00
8f3774dfc1 fix tests 2023-11-09 09:13:32 +01:00
715fae59fc implement default destination for boats 2023-11-09 08:56:08 +01:00
144bcefcab update deps, switch to newest rocket version 2023-11-08 17:39:39 +01:00
9331b2001d improve code with clippy 2023-11-02 22:19:13 +01:00
039f9fbddf switch order 2023-11-02 16:00:41 +01:00
4726c25d20 migration + better ordering 2023-11-02 15:04:08 +01:00
e1a7bdae65 fix ci 2023-11-02 12:25:13 +01:00
1ff050a247 add ergo tool 2023-11-02 12:15:10 +01:00
56ae0ae429 fix 1x no cox stuff 2023-10-31 22:16:14 +01:00
2d7c86f323 aaaaah 2023-10-31 21:02:56 +01:00
d9c7c218bc allow no cox in 1x; require them in >2x 2023-10-31 20:57:05 +01:00
a6519d7b7b Merge branch 'boat-stats' into 'staging'
add boat stats Fixes #50

Closes #50

See merge request PhilippHofer/rot!58
2023-10-31 15:20:36 +00:00
730f9e5dff add boat stats Fixes #50 2023-10-31 16:07:15 +01:00
6e6b6eafa3 fix stat query 2023-10-30 15:32:17 +01:00
2d520298e7 frontend for new db 2023-10-30 15:32:17 +01:00
1d7f95e522 finish backend tests of new db layout 2023-10-30 15:32:17 +01:00
09075989e3 first draft 2023-10-30 15:32:17 +01:00
9497116265 add first draft of notifications 2023-10-29 17:31:07 +01:00
08a1d16f88 add functionality to show log 2023-10-28 14:48:08 +02:00
3f5fc85a8b fix 2023-10-26 20:37:48 +02:00
816425c158 fix ci 2023-10-24 14:56:59 +02:00
ff6184e343 fix boat update error 2023-10-24 14:44:31 +02:00
1f35be88ad scheckbuch can't see logbuch 2023-10-24 10:16:26 +02:00
c015a672ea don't show scheckbuch-people in stat 2023-10-24 09:07:20 +02:00
76a05b6107 add verified for boats 2023-10-23 22:26:33 +02:00
4cb374e246 remove debug statements 2023-10-23 09:36:38 +02:00
1581570d97 fix off-by-one error of not showing 'always show' trips 7 days before the event 2023-10-09 20:42:01 +02:00
1386ba05c2 log important events 2023-10-05 08:59:13 +02:00
88833b9f4b fix ci 2023-10-02 12:40:20 +02:00
bb142a0969 clean code with clippy 2023-10-02 12:39:05 +02:00
826402cd41 give proper results for stats 2023-10-01 20:52:42 +02:00
af81920a47 fake personal history 2023-10-01 20:52:42 +02:00
02e1546f0e complete tests for logbook 2023-10-01 20:52:41 +02:00
6d0501d3b0 add tests 2023-10-01 20:52:41 +02:00
7500b90b22 fix ci 2023-10-01 20:52:41 +02:00
22db993767 remove unused variable 2023-10-01 20:52:41 +02:00
e41aa9b4e7 fun with timezones 2023-10-01 20:52:41 +02:00
665cbe7aae remove debugging statement 2023-10-01 20:52:41 +02:00
bf63313515 debug none 2023-10-01 20:52:41 +02:00
09af9981df fix multi-select; only show private boats owner + kiosk 2023-10-01 20:52:41 +02:00
57e540f450 allow users to delete trips 2023-10-01 20:52:41 +02:00
fd4d097d72 verify that arrivaldate > departuredate 2023-10-01 20:52:41 +02:00
e849b6f5f9 error if same person selected as cox + rower 2023-10-01 20:52:41 +02:00
d102e57b09 disable rowers in logbook if they are on water 2023-10-01 20:52:41 +02:00
90155dbc0f fix ci 2023-10-01 20:52:41 +02:00
1f801b0436 add debug trait; switch to proper name of form field (rowerS) 2023-10-01 20:52:41 +02:00
8b0264d181 clean code with clippy 2023-10-01 20:52:41 +02:00
fe4c0bebfc
Staging 2023-09-05 21:03:18 +00:00
709411ce5c remove deprecated function 2023-09-05 16:13:36 +02:00
590b41aa33 Allow to add real guests 2023-08-09 20:30:37 +00:00
bd4ee5954c implement is_locked for trip_details 2023-08-09 11:54:18 +02:00
94a9d285be clean db 2023-08-05 16:27:51 +02:00
64aefde8bc fix stat query 2023-08-05 15:58:17 +02:00
7309b1f2b2 update unit tests; add location name in kiosk settting to cookie (to avoid specific redirects) 2023-08-05 13:21:35 +02:00
8a40dfe017 allow filter for kiosk, to only show boats at specific location 2023-08-05 12:59:02 +02:00
ff31ad83fe add boatdamages functionality 2023-08-02 14:29:19 +02:00
da6a16cd66 add tests for tera/admin/planned_event
Closes #20
2023-07-31 21:29:03 +02:00
8fa8e17c5a add tests for tera/admin/planned_event
Closes #24
2023-07-31 21:15:28 +02:00
3730940aed add tests for tera/log.rs
Closes #34
2023-07-31 20:09:03 +02:00
8b5be3fb41 add test for tera/admin/boat.rs
Fixes #33
2023-07-31 19:38:53 +02:00
47b534f8c3 create tests for model/logbook
Closes #31
2023-07-31 19:10:34 +02:00
adb26f6b91 create tests for model/rower.rs, Closes #32 2023-07-31 16:59:15 +02:00
32e6148844 use query_as instead of manual mapping 2023-07-31 16:33:44 +02:00
dc4b4b3499 add tests; Closes #30 2023-07-31 16:25:07 +02:00
bbb78cbc44 move todos to gitlab; write tests for /cox/remove/<id>; Closes #9 2023-07-31 13:34:02 +02:00
b2e84d727c use local timestamp for log 2023-07-31 09:10:26 +02:00
332b505955 Merge branch 'verify-rower-on-water' into 'staging'
push

See merge request PhilippHofer/rot!21
2023-07-30 21:11:51 +00:00
1bff814811 push 2023-07-30 22:59:47 +02:00
7e09c81d5e fix error on diff sqlite version 2023-07-30 22:17:47 +02:00
f3590c1437 fix parsing of sqlite timestamp (arrival) 2023-07-30 20:50:28 +02:00
dee228dce8 send departure as timestamp 2023-07-30 20:40:15 +02:00
e2b5495da6 lowercase baotdamage 2023-07-30 20:25:59 +02:00
aba8bc7749 add light damage 2023-07-30 20:21:59 +02:00
d5033ccf44 fix ci 2023-07-30 20:19:25 +02:00
aeefd9e43f add details to boat 2023-07-30 20:13:00 +02:00
e30dae68ad remove not unseful logging 2023-07-28 11:50:11 +02:00
2e9ad2215f remove unused import 2023-07-27 22:18:00 +02:00
16a0654e1f only save (encrypted) user_id in cookie 2023-07-27 22:16:12 +02:00
b5fd4018ff extract common functionality to functoin 2023-07-27 15:24:29 +02:00
0c906f2bda check if shipmaster is already on the water 2023-07-27 15:00:52 +02:00
48eb1b7dc2 clean ui for logbook 2023-07-26 12:56:19 +02:00
e5f22ae070 more clippy :-) 2023-07-25 13:32:20 +02:00
a7789af713 clean code with clippy 2023-07-25 13:22:11 +02:00
3765541674 even show who's logging in 2023-07-25 11:36:36 +02:00
1436feaffd create logs for login 2023-07-25 11:31:51 +02:00
290e05dc4c add todo 2023-07-24 21:17:51 +02:00
Philipp
2dc70fa629 use function (instead of macro) to work with older sqlite 2023-07-24 21:16:43 +02:00
082fac9789 add stats 2023-07-24 20:56:46 +02:00
c42cd2cd9c allow adding rowers to logbook 2023-07-24 13:01:39 +02:00
c32c8bb643 move always_show to tripdetails 2023-07-23 19:45:48 +02:00
9fa70b1411 add functionality to finish logbook trips 2023-07-23 16:49:14 +02:00
3259582aab create new tests for /cox/trip/<id> 2023-07-23 14:21:27 +02:00
1d4c5f356d add first draft of logbook 2023-07-23 12:17:57 +02:00
b2f626f906 allow creating all fields for new boats 2023-07-22 16:36:02 +02:00
524d1acee2 add full CRUD for boats 2023-07-22 15:34:42 +02:00
c0bb6d51de create create/delete/view function for boats 2023-07-22 13:57:17 +02:00
4ad6caa26c trim string 2023-07-11 14:37:48 +02:00
a0afce344f add debug log for auth 2023-07-11 09:16:13 +02:00
52f1c3c026 push 2023-06-08 17:23:23 +02:00
47920305c4 allow updating pinning an planned_trip 2023-06-08 11:28:25 +02:00
87ed710f66 add is_pinned functionality 2023-06-08 10:57:42 +02:00
d7417804a0 renew cookies on every action; increase cookie timeout to 3 months 2023-06-07 00:07:11 +02:00
2420b69d43 fix tests 2023-06-06 12:26:48 +02:00
2159802cca remove unused import 2023-06-06 10:09:48 +02:00
eccf224a40 order names by last access 2023-06-06 10:08:54 +02:00
ca93bc93c2 push 2023-06-05 14:56:15 +02:00
030fcd1c6f push 2023-06-05 14:50:01 +02:00
e8e84e8d37 push 2023-06-05 14:43:31 +02:00
5230762190 push 2023-06-05 14:25:23 +02:00
b6057f066d push 2023-06-05 14:07:46 +02:00
a72e19d8e1 push 2023-06-05 14:01:55 +02:00
51b0ba8cf4 fix ics 2023-06-05 13:29:55 +02:00
f64128e0b1 Use crlf 2023-06-05 13:27:08 +02:00
2530d6343d add dtstamp 2023-06-05 13:21:41 +02:00
b237ff3850 add timezone information in ics feed 2023-06-05 13:18:40 +02:00
bae288cb43 clean code with clippy 2023-05-30 14:47:44 +02:00
9c30cda326 clean code with clippy 2023-05-30 14:36:23 +02:00
273239ef34 add nice name of calendar 2023-05-28 20:05:51 +02:00
d688faf579 name calendar 2023-05-24 15:44:43 +02:00
05b65b2f67 restructre 2023-05-24 15:36:38 +02:00
aa2d5bc7dd add first draft of cal 2023-05-24 15:09:38 +02:00
478ce329e3 Push 2023-05-24 13:11:47 +02:00
c91db80ce5 no more clones! 2023-05-24 12:18:14 +02:00
1c74d11e96 fix clones() 2023-05-24 12:16:13 +02:00
99296d4060 fix many clones() 2023-05-24 12:11:55 +02:00
cf45036642 clean rss string 2023-05-24 09:39:49 +02:00
abf720ed36 push 2023-05-24 09:36:48 +02:00
e9d0ffd189 try sth 2023-05-24 09:31:18 +02:00
26f1ad785e fix feed 2023-05-24 09:21:22 +02:00
33aeb28140 properly close rss feed 2023-05-24 09:11:34 +02:00
1ff5fb9a43 fix 2023-05-24 09:07:20 +02:00
bfdc815a36 remove rss dep 2023-05-24 09:05:07 +02:00
968ab00cc0 show last access time 2023-05-10 09:04:09 +02:00
8c38a2faf6 add last_access column for user table 2023-05-10 08:57:20 +02:00
c89a199a33 use proper field 2023-05-03 22:54:10 +02:00
9f7fa6b8c4 add edit option of planned_events 2023-05-03 22:40:22 +02:00
2fd5b65994 fix tests and add new one 2023-05-03 16:53:36 +02:00
787b28cc23 allow trip_type edit of trip 2023-05-03 16:51:37 +02:00
3f01bf39b3 deduplicate code 2023-05-03 16:06:27 +02:00
0b34b776ac remove unwrap :-) 2023-05-03 15:59:28 +02:00
913d0ac78e push 2023-05-03 13:32:23 +02:00
bb4dba7bc9 only allow guests to register for specific events; don't even show them the other trips 2023-04-29 18:57:01 +02:00
3d5ad30904 send triptype to frontend 2023-04-28 21:19:51 +02:00
bd5a28b342 send triptype to frontend 2023-04-28 21:19:30 +02:00
734bbd434e fix bug 2023-04-28 19:43:59 +02:00
055c330a3e allow 'deletion' of user 2023-04-28 19:29:20 +02:00
0ff64c5c9e finish tests 2023-04-28 19:08:17 +02:00
4d532e5846 add final tests for trip.rs 2023-04-28 18:18:00 +02:00
38732df6c8 add test; fix bug 2023-04-28 18:08:01 +02:00
ef921314d2 clean function 2023-04-26 17:02:47 +02:00
346a9b1d91 add unit tests 2023-04-26 16:54:53 +02:00
9236113507 clean code with clippy 2023-04-26 12:52:19 +02:00
a49de71a5d even more tests! 2023-04-26 12:21:30 +02:00
1e92b166c7 add tests for trip_details 2023-04-26 11:31:02 +02:00
7a2639bbb1 remove unused users 2023-04-26 11:25:29 +02:00
153d7f84e1 add tests for usre 2023-04-26 11:22:22 +02:00
daf8afd731 clean code with clippy 2023-04-24 14:34:06 +02:00
a3ac83228c add rss feed with common actions 2023-04-18 12:10:11 +02:00
494ec31c8d use proper result for finding user 2023-04-10 14:25:31 +02:00
1d03dd59b2 allow cox to edit own trips 2023-04-07 11:54:56 +02:00
3f9d5bb4c7 allow trip to be deleted if noone has registered yet 2023-04-07 11:16:39 +02:00
4d49574ebb add cox_needed attribute 2023-04-06 20:08:58 +02:00
f034a780a2 send loggedin_user in /admin/user 2023-04-06 18:57:10 +02:00
194577f9bd check if already cox on planned events 2023-04-06 18:48:18 +02:00
82c4680684 restructure code 2023-04-06 08:06:50 +02:00
2ede4af500 sort user by name 2023-04-05 22:09:24 +02:00
92040e7eac move todo to proper location 2023-04-05 22:04:05 +02:00
8f05d1bdf4 don't allow to join as user if already cox 2023-04-05 22:01:50 +02:00
9ab1572b15 don't allow cox to help if cox is already registered as rower for event 2023-04-05 21:49:48 +02:00
f609ee1cb4 allow admin to create user 2023-04-05 20:56:36 +02:00
f7c7f9aaf8 show registration time for rowers 2023-04-05 17:25:22 +02:00
da31c36c70 clean code with clippy 2023-04-04 19:49:27 +02:00
476c4db255 allow to show full year 2023-04-04 15:38:47 +02:00
cedaba5709 push 2023-04-04 15:16:21 +02:00
0bdd073d7f fix bug 2023-04-04 12:23:41 +02:00
3d907487a1 add planned_trip functionality 2023-04-04 12:19:56 +02:00
3dfc64071c finish admin tasks 2023-04-04 10:44:14 +02:00
387d93bbaf add tests; add authentication cookie 2023-04-03 22:03:45 +02:00
79f22b9217 clean code with clippy 2023-04-03 17:32:41 +02:00
ff73accb52 craete login tests 2023-04-03 17:21:34 +02:00
d50f3d9746 start working on auth 2023-04-03 16:11:26 +02:00