Commit graph

742 commits

Author SHA1 Message Date
Birte Kristina Friesel
2d72ff8fc9
use 'maintenance' file to stop background jobs when running DB upgrades 2024-06-12 21:53:35 +02:00
Birte Kristina Friesel
0b725cbf66
history: it's Fahrten, not Zugfahrten. 2024-06-10 21:53:02 +02:00
Birte Kristina Friesel
c290077471
add journey: return HTTP 400 on input error 2024-06-10 21:51:56 +02:00
Birte Kristina Friesel
a74191efc3
Increate train_id length to account for DB HAFAS update 2024-06-09 09:23:26 +02:00
Birte Kristina Friesel
f71348a8a8
Store journey backend; do not rely on '|' in ID to distinguish IRIS/HAFAS
This is in preparation for supporting multiple HAFAS backends, and possibly
EFA and RIS::Journeys.
2024-06-08 22:18:31 +02:00
Birte Kristina Friesel
c969424c2d
... derp 2024-06-06 19:40:59 +02:00
Birte Kristina Friesel
14023ad185
traewelling pull sync requires user_name to be set 2024-06-06 18:01:34 +02:00
Birte Kristina Friesel
40cbfd62df
allow force checkouts even in case of route mismatches 2024-06-06 17:57:15 +02:00
Birte Kristina Friesel
c3a43725d4
traewelling: trace missing username bug 2024-06-06 06:41:52 +02:00
Birte Kristina Friesel
41cc5f3c25
work: check arr on arr, not on dep 2024-06-02 11:47:19 +02:00
Birte Kristina Friesel
f0e169cbfd
Profile: remove journeys from JSON fornow 2024-06-02 11:19:46 +02:00
Birte Kristina Friesel
7b8584473b
Profile: Add JSON renderer 2024-05-31 10:59:41 +02:00
Birte Kristina Friesel
5a72c60307
work: fix HAFAS arrival wagonorder/stationinfo request logic 2024-05-30 11:54:21 +02:00
Birte Kristina Friesel
918ed6ab1f
DBDB: Add some debug statements 2024-05-30 11:54:02 +02:00
Birte Kristina Friesel
9442572084
DBDB: use realtime cache for carriage composition requests 2024-05-30 11:53:33 +02:00
Birte Kristina Friesel
2576a463db
perform stationinfo requests for hafas checkins 2024-05-30 11:25:52 +02:00
Birte Kristina Friesel
85c7861bc1
request wagon orders for HAFAS checkins 2024-05-29 21:49:31 +02:00
Birte Kristina Friesel
1ad8fa3a51
Move wagonorder request to a separate helper
This is in preparation for HAFAS wagonorder support
2024-05-29 20:17:01 +02:00
Birte Kristina Friesel
5a2285bd59
check train/trip id when updating associated data
this avoid race conditions when a user changes their checkin between the time
of request (old trip id) and the time of data update (new trip id). These
could lead to funny effects such as buses suddenly having S-Bahn carriage
formations.
2024-05-24 21:39:09 +02:00
Birte Kristina Friesel
f7a9213961
add_route_timestamps: IRIS route may be shorter than HAFAS route 2024-05-22 19:20:39 +02:00
Birte Kristina Friesel
4764fd9a6b
route_after: handle passing the same stop more than once 2024-05-22 19:08:35 +02:00
Birte Kristina Friesel
cd6df2aa9b
Use HAFAS routes as single source of truth. Overwrite initial IRIS route. 2024-05-22 19:04:57 +02:00
Birte Kristina Friesel
dc4f61c2aa
InTransit: postprocess: simplify DateTime handling a bit 2024-05-09 08:33:55 +02:00
Birte Kristina Friesel
6d07d0a180
/status: return JSON for 404 errors as well 2024-04-26 17:48:04 +02:00
Birte Kristina Friesel
0a85971565
/status: respond to .json as well as "Accept: application/json" 2024-04-26 17:47:32 +02:00
Birte Kristina Friesel
a0bd839594
refactor polyline insertion into InTransit Model 2024-04-21 19:21:16 +02:00
Birte Kristina Friesel
2ff5f92bcc
Store HAFAS checkins with type/train/line number at checkin station 2024-04-16 18:08:21 +02:00
Birte Kristina Friesel
a72b6192ed
dumpstops: encode output as UTF-8 2024-04-07 11:23:47 +02:00
Birte Kristina Friesel
875ec1c3e5
Request polylines for HAFAS journeys as well; only store sensible ones
Decreases severity of #99
Fixes #108
2024-04-07 11:18:04 +02:00
Birte Kristina Friesel
c9e5bfae62
store tz_offset in route data if present 2024-04-03 13:58:48 +02:00
Birte Kristina Friesel
6e42d1dc29
lesson learned: do not deploy from easterhegg 2024-03-31 21:22:50 +02:00
Birte Kristina Friesel
b978ba6bc0
oops 2024-03-31 21:21:59 +02:00
Birte Kristina Friesel
970e30202d
HAFAS departures: add earlier / later links 2024-03-31 14:44:37 +02:00
Birte Kristina Friesel
9f0d72b9d1
HAFAS: correctly pass lookahead on to backend library
Closes #126

Note that this is more of a hotfix -- the underlying bug is in
Travel::Status::DE::HAFAS
2024-03-30 09:58:06 +01:00
Birte Kristina Friesel
9e073a0fe8
Traveling: work around empty evas list in HAFAS result 2024-03-05 21:35:08 +01:00
Birte Kristina Friesel
ab14df0b16
Berlin Hbf is cursed. 2024-02-25 06:50:03 +01:00
Birte Kristina Friesel
dafeb838dc
Use journeyMatch rather than legacy trainsearch.exe API to find tripIDs 2024-02-24 20:11:11 +01:00
Birte Kristina Friesel
4393751bcb
Journeys: adjust sanity_check for local transit stuff 2024-02-13 21:51:08 +01:00
Birte Kristina Friesel
39ebc84e5f
add dumpstops command 2024-02-09 19:09:16 +01:00
Birte Kristina Friesel
7eedd5149f
perltidy 2024-01-30 21:07:57 +01:00
Birte Kristina Friesel
40eb74887b
journey detail title: use departure date 2024-01-30 21:07:06 +01:00
Cassidy Dingenskirchen
5b3cfd3355
add title elements
(cherry picked from commit 5d8f6467dc00f03957784230983ed730ec421291)
Signed-off-by: Birte Kristina Friesel <derf@finalrewind.org>
2024-01-30 21:04:42 +01:00
Birte Kristina Friesel
827751e430
confirm_mail: work around funky MUAs 2024-01-14 13:33:14 +01:00
Birte Kristina Friesel
a474981f6a
work: Some HAFAS errors are not actionable and should not be logged as errors 2024-01-11 18:37:12 +01:00
Birte Kristina Friesel
1690a07d92
Rename filter_after/filter_before to filter_from/filter_to (they're inclusive) 2024-01-02 09:12:24 +01:00
Birte Kristina Friesel
2c229c0317
map: show year in headline if set 2024-01-01 12:58:59 +01:00
Birte Kristina Friesel
a2e1edbe8b
history_map: filter_until is inclusive 2023-12-31 12:24:51 +01:00
Birte Kristina Friesel
4d044fb98a
Fix connection display for Travel::Status::DE::HAFAS 5.x 2023-12-27 11:16:38 +01:00
Birte Kristina Friesel
d47195a0cf
Switch to Travel::Status::DE::HAFAS 5.x 2023-12-27 10:59:35 +01:00
Birte Kristina Friesel
6364751eb1
HAFAS: Use locationSearch rather than similar_stops_p
locationSearch uses mgate.exe, just like the regular departure board.
similar_stops_p relies on ajax-getstop.exe which may become unavailable sooner
rather than later.
2023-11-01 18:44:00 +01:00