Compare commits

..

17 Commits

Author SHA1 Message Date
Hannes Braun d863f4fb1e
TimetableParser: parse year
continuous-integration/woodpecker the build was successful Details
This also adds the parsed year to the meta object included in the timetable response
2021-10-24 14:39:22 +02:00
Jannik dc57a0d0c1 Merge pull request 'Various improvements' (#17) from hannesbraun/TheCitadelofRicks:fix/timeout-resilience into master
continuous-integration/woodpecker the build was successful Details
Reviewed-on: #17
2021-10-24 14:38:12 +02:00
Hannes Braun 5ba9dfc263
Better null checks 2021-10-24 14:34:00 +02:00
Hannes Braun ca8efdaa85
Only add timetable to cache on success 2021-10-24 14:34:00 +02:00
Hannes Braun 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
Hannes Braun 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
Hannes Braun 993b8f6a71
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
Hannes Braun f9cc9b5e14
Make the update scheduling more readable (hopefully) 2021-10-24 14:34:00 +02:00
Hannes Braun 460d1ee131
StatusController: use properties instead of getters 2021-10-24 14:33:59 +02:00
Hannes Braun 90847a2730
Also set JVM target to 11 for Java 2021-10-24 14:33:59 +02:00
Hannes Braun a292b45fcb
Dependency updates
This also replaces JCenter with Maven Central since JCenter is now read-only
2021-10-24 14:33:59 +02:00
Hannes Braun 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
Hannes Braun ae9bf2a562
Update Kotlin to 1.5.31 2021-10-24 14:33:58 +02:00
Jannik 6394a7c880
fix secrets (1st try)
continuous-integration/drone the build was successful Details
2021-10-16 15:48:34 +02:00
Jannik 5ab5e850bd
execute the docker build/deploy image with privileged: true
continuous-integration/drone the build failed Details
2021-10-16 15:21:01 +02:00
Jannik a97a464a83 Merge pull request 'use techknowlogick's drone-docker image' (#20) from fix/docker-build into master
continuous-integration/drone the build failed Details
Reviewed-on: #20
2021-10-16 14:39:38 +02:00
Jannik 2b06efeece
use techknowlogick's drone-docker image
continuous-integration/drone the build was successful Details
this should fix the docker build issues
2021-10-16 14:35:37 +02:00
2 changed files with 4 additions and 5 deletions

View File

@ -11,12 +11,11 @@ pipeline:
event:
- tag
docker:
image: plugins/docker
image: techknowlogick/drone-docker
privileged: true
repo: mosadxyz/tcor
secrets: [docker_username, docker_password]
tags: latest
secrets:
- username: docker_username
password: docker_password
when:
event:
- tag

View File

@ -6,7 +6,7 @@ plugins {
}
group 'org.mosad'
version '1.2.7'
version '1.2.8'
repositories {
mavenCentral()