Commit Graph

60 Commits

Author SHA1 Message Date
e7b5eff04b
Use ConcurrentHashMap for timetableList
Multiple requests may be processed at the same time and could otherwise cause problems (concurrent write operations)
2021-10-14 00:32:28 +02:00
6f4cb9fd66
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-13 22:21:43 +02:00
1f1374f112
Make the update scheduling more readable (hopefully) 2021-10-13 22:21:43 +02:00
b783fb6c4f
StatusController: use properties instead of getters 2021-10-13 22:21:42 +02:00
c62f576ace
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-13 22:21:42 +02:00
bf71d62dc5
version 1.2.8
Some checks failed
continuous-integration/drone the build failed
2021-10-13 20:03:14 +02:00
a1dc5656b8
updated mensa URL, thanks to Hannes B.
All checks were successful
continuous-integration/drone the build was successful
2021-10-13 19:47:38 +02:00
1d614a06c4
version 1.2.7
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
* update coroutines 1.3.7 -> 1.3.8
2020-08-16 20:03:37 +02:00
3f10c8afaa
fix courseList sorting
All checks were successful
continuous-integration/drone/push Build is passing
closes #15
2020-08-16 19:56:13 +02:00
9de1e295dd
fix reading file from resources
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-08-06 17:27:49 +02:00
6287d4582d
update spring-boot
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
* add TEST_A and TEST_B courses for testing during summer break
2020-08-06 16:31:05 +02:00
c30306c163
fix courseList
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-11 17:22:31 +02:00
46c9a61124
remove the workaround introduced in 36acf1a00a and update the Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-08 17:49:38 +02:00
36acf1a00a
add workaround for ssl errors
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-08 11:57:20 +02:00
f9029bf1c3
use HashMap insted of ArrayList to store the timetables
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 23:07:23 +02:00
fe72c02562
remove unneeded dependency, use try catch when writing files
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 20:53:23 +02:00
8d9fcd3d7c
update gradle to version 6.5
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-05 19:16:39 +02:00
ec7a0a7a64
change some parameters
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
* fixes #13
* use a HashMap for timetableRequests count
* api version 1.2.0
* software version 1.2.3
2020-06-05 18:23:15 +02:00
efd8f9f9f5
update spring
All checks were successful
continuous-integration/drone/push Build is passing
* spring-boot 2.2.7 -> 2.3.0
2020-05-25 11:21:24 +02:00
678a97f140
fix MensaParser & update spring boot, kotlin
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
* fixed the MensaParser(), it should now work more reliable
* updated spring boot 2.2.4 -> 2.2.5
* updated kotlin 1.3.61 -> 1.3.70
* clean up MensaParserTest
2020-03-03 19:31:12 +01:00
c22f752788
ci test 2
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 22:34:10 +01:00
1798054580
ci test
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 18:28:02 +01:00
9a48b1a859
minor fixes
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 18:21:36 +01:00
2f1f65eba0
count courseList requests seperat 2020-02-27 17:42:19 +01:00
be95af43c2
made CacheCOntroller() static
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:17:39 +01:00
f20279a4b4
updated jsoup 1.12.1 -> 1.12.2
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 15:18:52 +01:00
3aa27dff4a
don't use lateinit in CacheController()
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-10 17:42:44 +01:00
a13203c477
use the current directory to store the config.xml and cached timetables
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-15 13:42:40 +01:00
d0d5e4b6d1
removed Java legacy code
All checks were successful
continuous-integration/drone/push Build is passing
the minimum is now Java 11
2019-12-30 01:36:21 +01:00
4ca79e6540
removed invalid TODOs
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-21 14:58:34 +01:00
9dd875fcb3
update softwareVersion/version to 1.2.0
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-21 14:49:22 +01:00
697f5e3167
added on disk cache for the timetables
All checks were successful
continuous-integration/drone/push Build is passing
* update spring-boot 2.1.9 -> 2.1.10
2019-11-14 18:43:00 +01:00
dd064d63af
added a configuration via config.xml file
All checks were successful
continuous-integration/drone/push Build is passing
* the config file contains the Mensa name and URL, the Cachet Base-URL and API-Key
2019-10-28 18:39:44 +01:00
3177be1bf0
use a FixedThreadPool to execute the timetable updates
All checks were successful
continuous-integration/drone/push Build is passing
closes #9
2019-10-27 13:51:08 +01:00
db57059727
version 1.1.6
All checks were successful
continuous-integration/drone/push Build is passing
* API version 1.1.4
* added /health, returns 200 (OK, for status checks)
* moved status code to a separate class
* added status.mosad.xyz reporting
2019-10-21 18:46:21 +02:00
132cf2df0e
reworked the CacheController Class
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-20 11:52:44 +02:00
238947a894
added java 8 support again
* added drone testing for java 8
2019-10-06 12:11:02 +02:00
6a687eb297
added more status metrics, api version 1.1.3 (/lesson -> /lessons)
Some checks failed
continuous-integration/drone/push Build is failing
* updated spring boot 2.1.8 -> 2.1.9
* closes #7
2019-10-05 17:17:26 +02:00
3be98f6129
added junit test for TimetableParser
All checks were successful
continuous-integration/drone/push Build is passing
* this also is release 1.1.4 (api version 1.1.2)
* closes issue #5
2019-09-14 00:43:59 +02:00
5e220225f6
parse the week number of the year too 2019-09-06 23:10:35 +02:00
a0fceccc2f
added junit test for MensaParser
* updated kotlin 1.3.31 -> 1.3.41
* updated spring boot 2.1.5 -> 2.1.7
* updated coroutines 1.2.1 -> 1.2.2
* reworked MensaParser to make it testable
2019-08-16 13:59:44 +02:00
e89201c951
added more metrics to the status request 2019-06-03 12:20:01 +02:00
a6bb0a7afe
an hour needs to bee an hour 2019-06-02 19:04:20 +02:00
13a55508d0
run the mensamenu update task every hour 2019-06-02 16:55:36 +02:00
754c8cb17b
clean up APICOntroller & new CacheController
* added a CacheController to hold all cache variables and clean up the APIController
* more consistent naming of variables
* update mensaMenu and courseList only if the request was successful
2019-05-28 12:49:25 +02:00
9efc7fe4b7
cacth all exceptions in MensaParser
there are many things that can go wrong
2019-05-25 20:23:31 +02:00
e804774970
cover some timeouts 2019-05-25 19:37:04 +02:00
62ad7a3b36
courses is now CourseList, added lessonSubjectList & lesson request
closes #1, #2
2019-05-23 14:56:16 +02:00
aa48668af1 fixed wrong lessonID 2019-04-06 11:33:21 +02:00
8dd385e52a removed requestCount from /status 2019-03-18 19:28:27 +01:00