|
|
c869091fff
|
add to-do for cleanup
|
2025-01-07 21:06:29 -08:00 |
|
|
|
01c4afc4f4
|
add tests for getShuttlesBySystemId
|
2025-01-07 21:04:41 -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 |
|
|
|
77c2d88ba2
|
add test cases for getShuttlesBySystemIzd
|
2025-01-07 20:47:26 -08:00 |
|
|
|
0a7b6ab510
|
add test for getting new data
|
2025-01-07 20:37:42 -08:00 |
|
|
|
12ebd97068
|
add test for old data
|
2025-01-07 20:34:46 -08:00 |
|
|
|
effd3928f0
|
update cache and ttls interface
|
2025-01-07 20:32:54 -08:00 |
|
|
|
4cfff7fcca
|
add mock api response and first test for getShuttleById
|
2025-01-07 20:29:54 -08:00 |
|
|
|
792476a59b
|
add tests for getShuttleById
|
2025-01-07 20:24:15 -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 |
|
|
|
9db745bd12
|
add test for updateEtasForSystemIfTTL for updating data
|
2025-01-07 19:41:01 -08:00 |
|
|
|
e19e14cce7
|
update types for api based repository
|
2025-01-07 19:35:10 -08:00 |
|
|
|
2e7ffa89a0
|
add test for updateEtasForSystemIfTTL if data is not TTL
|
2025-01-07 19:29:43 -08:00 |
|
|
|
b22aeef8cf
|
add test cases for updateEtasForSystemIfTTL
|
2025-01-07 16:16:19 -08:00 |
|
|
|
2e37249bd1
|
add tests for getEtasForStopId
|
2025-01-07 16:12:52 -08:00 |
|
|
|
e9864da680
|
add tests for getEtasForShuttleId
|
2025-01-07 16:10:50 -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 |
|
|
|
37909c8dbb
|
add test for getEtasForShuttleId cache
|
2025-01-07 15:53:25 -08:00 |
|
|
|
d7d54ec5e6
|
create empty method updateEtasForSystemIfTTL
|
2025-01-07 15:52:56 -08:00 |
|
|
|
c48fd0d604
|
use global fetch mock for old data test
|
2025-01-07 15:30:36 -08:00 |
|
|
|
0f7f02239c
|
fix incorrect value in test
|
2025-01-07 15:30:12 -08:00 |
|
|
|
535c24b2e4
|
add rest of tests
|
2025-01-07 15:29:01 -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 |
|
|
|
9f2b060c04
|
rename test file and add first ETA test
|
2025-01-07 15:06:16 -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 |
|
|
|
0f9ba4c3f0
|
add additional test cases for ETA data
|
2025-01-07 14:34:48 -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 |
|
|
|
a1f4beb762
|
Merge pull request #1 from brendan-ch/chore/setup-testing
chore/setup-testing
|
2024-12-30 15:09:29 -08:00 |
|
|
|
426ee8bd93
|
add GitHub workflow for Node.js 20
|
2024-12-30 15:07:11 -08:00 |
|
|
|
00c3a61095
|
add sample test
|
2024-12-30 15:06:53 -08:00 |
|
|
|
12ac84feae
|
set up Jest configuration file
|
2024-12-30 14:47:53 -08:00 |
|
|
|
e3746a942b
|
read environment variable port with fallback to 4000
|
2024-12-27 13:45:44 -08:00 |
|