Commit Graph

131 Commits

Author SHA1 Message Date
f865544e49 add getStopById test for getEtasForStopId 2025-01-08 17:26:05 -08:00
91d020a7bc update caching behavior temporarily for updateEtasForSystemIfTTL 2025-01-08 17:18:12 -08:00
a4e359b19b update stopByStopId in cache 2025-01-08 16:50:14 -08:00
eef414cdb7 implemnet getStopById method 2025-01-08 16:49:00 -08:00
17b6f93f0e add implementation for getEtasForStopId and getEtasForShuttleId 2025-01-08 16:44:06 -08:00
eeadfa62cb fix id in conditional and return milleseconds for eta 2025-01-08 16:39:11 -08:00
638d15ccd8 fix incorrect ID used for eta filter 2025-01-08 16:30:07 -08:00
a7efda6fba fix conditional check for getEtaForShuttleAndStopId 2025-01-08 16:25:56 -08:00
88dbce007d implement getStopsBySystemId and updateStopsForSystemId 2025-01-08 16:19:11 -08:00
3829286ec4 in RepositoryDataLoader, fix hardcoded value 2025-01-08 16:15:59 -08:00
97c3376cf7 fix incorrect inheritance for IOrderedStop 2025-01-08 16:13:46 -08:00
90f9710a8e finish up implementation for updateEtasForSystemIfTTL 2025-01-08 16:08:53 -08:00
0996be0ce3 add implementation for updateShuttlesForSystemIfTTL 2025-01-08 15:55:39 -08:00
65211df3b7 remove redundant TODO 2025-01-08 15:55:29 -08:00
16c6f48a1d extract method to update shuttle data 2025-01-07 21:11:53 -08:00
e59a3808c0 update type definition for getShuttlesBySystemId 2025-01-07 21:04:12 -08:00
9a80bde10e add fields for cache and ttls 2025-01-07 20:56:06 -08:00
ae20bb9bb9 add implementation for getShuttleById 2025-01-07 20:47:37 -08:00
effd3928f0 update cache and ttls interface 2025-01-07 20:32:54 -08:00
4ba16bb7c2 add method to seed the cache for the system id 2025-01-07 20:17:55 -08:00
f442c6b279 Revert "change caching and repository api to include system id initializer"
This reverts commit e7e915a8b1.
2025-01-07 20:07:05 -08:00
e7e915a8b1 change caching and repository api to include system id initializer 2025-01-07 20:02:12 -08:00
1958af2593 write logic to get eta for shuttle and stop id 2025-01-07 19:55:03 -08:00
e19e14cce7 update types for api based repository 2025-01-07 19:35:10 -08:00
9d7e53bdc8 add stopsBySystemId and shuttlesBySystemId to cache 2025-01-07 16:09:25 -08:00
38c3362793 make cache properties optional for ease of testing 2025-01-07 15:55:03 -08:00
d7d54ec5e6 create empty method updateEtasForSystemIfTTL 2025-01-07 15:52:56 -08:00
d52eb4d655 add TTLs object and update initialization 2025-01-07 15:24:06 -08:00
f3ee83d195 export ApiBasedRepositoryCache 2025-01-07 15:14:21 -08:00
caab43125d rename to IEntityWithId 2025-01-07 15:13:48 -08:00
8c9920e91b split IEntityWithOptionalTimestamp into a separate interface 2025-01-07 15:11:24 -08:00
3d033eaa58 clarify functionality gap by to-do 2025-01-07 14:49:22 -08:00
f6e62cc5e2 add cache initialization 2025-01-07 14:46:24 -08:00
32bbbf6fdf add caching intreface 2025-01-07 14:44:37 -08:00
440bdc9edd add mocking functions for tests 2025-01-07 14:24:21 -08:00
d10ad92907 update imports and create ApiBasedRepository.ts stub 2025-01-06 21:01:22 -08:00
359f8fe192 add timestamp to all interfaces 2025-01-06 20:53:49 -08:00
413a943c28 move entities to separate file 2025-01-06 20:52:48 -08:00
9a5bceedc1 use GetterRepository in the context 2025-01-06 20:50:30 -08:00
56b721e3d7 move getter methods to GetterRepository 2025-01-06 20:49:46 -08:00
fcf0f01715 rename files for consistency 2025-01-06 20:46:09 -08:00
588a2b18ad move repositories and loaders to directories 2025-01-06 18:13:09 -08:00
e3746a942b read environment variable port with fallback to 4000 2024-12-27 13:45:44 -08:00
7df8903762 disable introspection when environment is set to production 2024-12-27 13:41:20 -08:00
4b16790525 add orderedStop property for Route 2024-12-26 18:22:40 -08:00
442179b805 implement shuttle/route resolvers 2024-12-26 18:05:07 -08:00
014a2ce50f add colors to test data routes 2024-12-26 18:04:52 -08:00
85f448a2d9 rename schema definition 2024-12-26 18:04:43 -08:00
4d21f02bcb add notes and todo on data reloads 2024-12-23 15:04:06 -08:00
74d45057db remove shared memory and shared memory updater files 2024-12-23 14:59:09 -08:00