Commit Graph

138 Commits

Author SHA1 Message Date
hannesbraun 5dd11bbe6c Update required Java version to 21
Also update Spring to 3.2.4.
This is required as the old spring version does not support Java 21.
2024-04-09 19:08:47 +02:00
hannesbraun 25390e2132 Update Kotlin to 1.9.23 2024-04-09 19:04:47 +02:00
hannesbraun bc7d6e5146 Update Gradle to 8.7 2024-04-09 19:02:23 +02:00
Seil0 bfd301e3a5 Merge pull request 'Unescape parts in MensaParser' (#31) from unescape-mensa-parts into master
Reviewed-on: #31
Reviewed-by: Jannik <seil0@mosad.xyz>
2024-02-13 17:40:06 +01:00
hannesbraun 9bdb14896b Unescape parts in MensaParser 2024-01-28 18:30:31 +01:00
hannesbraun f40afe84ed Fix TimetableParserTest 2023-12-05 19:31:03 +01:00
Seil0 3c1d5ac6c7 update gradle wrapper to version 8.4 2023-11-14 22:26:25 +01:00
Seil0 302e1c7307 Merge pull request 'Parse course name for room occupancies' (#30) from parse-lessoncourse into master
Reviewed-on: #30
2023-09-29 23:12:06 +02:00
hannesbraun 22ba5d5f7f Parse course name for room occupancies 2023-09-29 16:39:46 +02:00
Seil0 b2a429cc48 Merge pull request 'Add API for room occupancy' (#29) from room-api into master
Reviewed-on: #29
2023-09-29 12:36:06 +02:00
hannesbraun 1a768e1188 Add API for room occupancy 2023-09-25 15:33:42 +02:00
hannesbraun b78d28a6d3 Fix some more typos 2023-09-15 18:59:11 +02:00
hannesbraun 954e8ec359 Fix typo in comment about mensa menu update 2023-08-24 23:26:57 +02:00
Seil0 a5d13629e5 Merge pull request 'CourseListParser: don't replace https with httpss' (#28) from fix-course-list-parser into master
Reviewed-on: #28
2023-06-30 13:18:24 +02:00
hannesbraun a3b3c40d77 CourseListParser: don't replace https with httpss 2023-05-15 14:35:55 +02:00
Seil0 0f59fb51b4 Merge pull request 'Remove -Xopt-in compiler argument' (#27) from opt-out into master
Reviewed-on: #27
2023-04-05 11:06:34 +02:00
hannesbraun 97f32069fa Remove -Xopt-in compiler argument
We don't need to opt in to the experimental Time class any longer.
2023-04-03 21:17:54 +02:00
Seil0 9f8ca744bc Merge pull request 'Fix permissions of TCoR volume in Docker container' (#26) from fix-docker-permissions into master
Reviewed-on: #26
2023-02-19 14:23:17 +01:00
hannesbraun 14b212dcf8 Fix permissions of TCoR volume in Docker container 2023-01-31 18:53:41 +01:00
Seil0 be415a8ee4 Merge pull request 'Update year when updating cached timetables' (#25) from fix-year-update into master
Reviewed-on: #25
2023-01-14 12:45:31 +01:00
hannesbraun 7f7aaa180a Update year when updating cached timetables 2023-01-13 20:21:15 +01:00
Seil0 3e17a788d7 update gradle wrapper to version 7.6 2022-12-22 16:15:17 +01:00
Seil0 fb838f5a32 update dependencies
* kotlin 1.6.20 -> 1.7.20
* spring boot 2.6.6 -> 2.7.6
* coroutines 1.6.1 -> 1.6.4
* gson 2.9.0 -> 2.10
2022-12-22 15:56:10 +01:00
Seil0 7581dc058c Merge pull request 'Replace GlobalScope with CoroutineScope in CacheController' (#22) from feature/CoroutineScope into master
Reviewed-on: #22
2022-12-22 15:47:16 +01:00
Seil0 a212539366 replace GlobalScope with CoroutineScope in CacheController 2022-12-22 15:42:46 +01:00
Seil0 dc6c41578a Merge pull request 'Update MensaParser for new Mensa website' (#24) from fix-mensaparser into master
Reviewed-on: #24
2022-12-22 15:38:20 +01:00
hannesbraun a39da6deba Update MensaParser for new Mensa website 2022-12-19 21:02:50 +01:00
hannesbraun d457627e00 Update jsoup from 1.14.3 to 1.15.3
Version 1.14.3 also included a vulnerability (CVE-2022-36033) that got fixed with 1.15.3.
2022-12-19 20:30:14 +01:00
hannesbraun 795ddc516d Deduplicate default values in StartupController 2022-12-19 20:26:45 +01:00
Seil0 e6f09c11ba update libraries
* spring boot 2.5.5 -> 2.6.6
* kotlin 1.5.31 -> 1.6.20
* coroutines 1.5.2 -> 1.6.1
* gson 2.8.8 -> 2.9.0
* gradle wrapper 7.2 -> 7.4.2
1.3.1
2022-04-08 14:54:06 +02:00
Seil0 f7c8958d20 Merge pull request 'Fix CacheController lookup' (#23) from fix/cache-controller into master
continuous-integration/woodpecker the build was successful
Reviewed-on: #23
2022-01-14 18:46:24 +01:00
hannesbraun 006e962bf1 Fix CacheController lookup
continuous-integration/woodpecker the build was successful
2022-01-14 15:42:25 +01:00
Seil0 f49e600613 version 1.3.0
continuous-integration/woodpecker the build was successful
1.3.0
2021-10-31 22:09:12 +01:00
Seil0 940a30e9aa Merge pull request 'Parse the year of a timetable' (#21) from hannesbraun/TheCitadelofRicks:feature/parse-year into master
continuous-integration/woodpecker the build was successful
Reviewed-on: #21
2021-10-24 15:00:13 +02:00
hannesbraun d863f4fb1e TimetableParser: parse year
continuous-integration/woodpecker the build was successful
This also adds the parsed year to the meta object included in the timetable response
2021-10-24 14:39:22 +02:00
Seil0 dc57a0d0c1 Merge pull request 'Various improvements' (#17) from hannesbraun/TheCitadelofRicks:fix/timeout-resilience into master
continuous-integration/woodpecker the build was successful
Reviewed-on: #17
2021-10-24 14:38:12 +02:00
hannesbraun 5ba9dfc263 Better null checks 2021-10-24 14:34:00 +02:00
hannesbraun ca8efdaa85 Only add timetable to cache on success 2021-10-24 14:34:00 +02:00
hannesbraun 8e3af696e0 Limit sending timetable requests in parallel to 3
Otherwise, the requests may fail (from my experience). Also we don't want to look suspicious (flooding their server with tons of requests at the same time).
2021-10-24 14:34:00 +02:00
hannesbraun fb6291792d Use ConcurrentHashMap for timetableList
Multiple requests may be processed at the same time and could otherwise cause problems (concurrent write operations)
2021-10-24 14:34:00 +02:00
hannesbraun 993b8f6a71 Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
hannesbraun f9cc9b5e14 Make the update scheduling more readable (hopefully) 2021-10-24 14:34:00 +02:00
hannesbraun 460d1ee131 StatusController: use properties instead of getters 2021-10-24 14:33:59 +02:00
hannesbraun 90847a2730 Also set JVM target to 11 for Java 2021-10-24 14:33:59 +02:00
hannesbraun a292b45fcb Dependency updates
This also replaces JCenter with Maven Central since JCenter is now read-only
2021-10-24 14:33:59 +02:00
hannesbraun 22f17d10e0 Timetable fixes
- Only one request is made to get the timetable HTML document for parsing the timetable and the weekNumberYear
- On timeouts or other errors, the cached data won't be overwritten with emptiness anymore
- The scheduled updates will now also update the weekNumberYear
2021-10-24 14:33:59 +02:00
hannesbraun ae9bf2a562 Update Kotlin to 1.5.31 2021-10-24 14:33:58 +02:00
Seil0 6394a7c880 fix secrets (1st try)
continuous-integration/drone the build was successful
1.2.8
2021-10-16 15:48:34 +02:00
Seil0 5ab5e850bd execute the docker build/deploy image with privileged: true
continuous-integration/drone the build failed
2021-10-16 15:21:01 +02:00
Seil0 a97a464a83 Merge pull request 'use techknowlogick's drone-docker image' (#20) from fix/docker-build into master
continuous-integration/drone the build failed
Reviewed-on: #20
2021-10-16 14:39:38 +02:00