|
|
c2f1a67a70
|
Remove unused ETA code from RedisShuttleRepository
|
2025-11-21 10:39:08 -08:00 |
|
|
|
f34f78aaea
|
Remove the delta argument in ShuttleGetterRepository.getArrivedStopIfExists
|
2025-11-20 19:07:30 -08:00 |
|
|
|
37fbc3ef45
|
Make checkIfShuttleIsAtStop part of the ShuttleGetterRepository interface
|
2025-11-20 17:48:49 -08:00 |
|
|
|
ddab9b96ff
|
Remove SHUTTLE_IS_NEAR_NEXT_STOP event and placeholder tests
|
2025-11-20 17:47:13 -08:00 |
|
|
|
22322e5f0a
|
Add a separate tsconfig for excluding tests/mocks from builds, while leaving them for type checks
|
2025-11-20 16:52:56 -08:00 |
|
|
|
a9db9b5d5c
|
Pass down the new arguments into the shuttle repositories
|
2025-11-20 16:47:50 -08:00 |
|
|
|
645fe1055b
|
Add createRedisClientForRepository method to deduplicate default Redis client in constructor
|
2025-11-20 16:41:14 -08:00 |
|
|
|
b202189ad6
|
Fix typo in "shuttle"
|
2025-11-20 16:29:28 -08:00 |
|
|
|
1d98e8450e
|
Update InterchangeSystemBuilderArguments with new properties for controlling event emitter degree delta
|
2025-11-20 16:26:25 -08:00 |
|
|
|
fb01406a29
|
Add placeholder test cases for SHUTTLE_IS_NEAR_NEXT_STOP event
|
2025-11-19 11:51:58 -08:00 |
|
|
|
2ff71b0dd1
|
Define a new event to indicate shuttle is near a stop
|
2025-11-19 11:48:22 -08:00 |
|
|
|
dbcc882a18
|
Only update ETAs in shuttle repository loader if repository was injected
|
2025-11-19 11:43:04 -08:00 |
|
|
|
545eaef74a
|
Add implementation and test for leaving stop event
|
2025-11-19 11:31:13 -08:00 |
|
|
|
b8c3f17510
|
Add test for ETA clearing
|
2025-11-19 10:57:27 -08:00 |
|
|
|
83671e2b22
|
Add logic to fire the SHUTTLE_WILL_LEAVE_STOP event
|
2025-11-18 21:06:10 -08:00 |
|
|
|
c8c5aa28c6
|
Add a method to mark a shuttle as not at a stop
|
2025-11-18 20:42:06 -08:00 |
|
|
|
78cf60af4a
|
Add code to mark shuttle at a stop (Redis set)
|
2025-11-18 20:27:00 -08:00 |
|
|
|
4ffdd35b21
|
Add other tests (one for multiple events, one for not emitting the event)
|
2025-11-18 20:02:06 -08:00 |
|
|
|
8d9ff3ac62
|
Add a test for emitting the event
|
2025-11-18 19:57:15 -08:00 |
|
|
|
47708d050e
|
Move duplicate shuttle declarations in tests to a "sample" shuttle generated by the setup function
|
2025-11-18 19:50:07 -08:00 |
|
|
|
f334054b5e
|
Add SHUTTLE_WILL_LEAVE_STOP event and upload payload names
|
2025-11-18 19:17:04 -08:00 |
|
|
|
34b2ab05d4
|
Rename properties in WillArriveAtStopPayload for more clarity
|
2025-11-18 19:14:29 -08:00 |
|
|
|
0798773bcb
|
Replicate the change in the in-memory version
|
2025-11-18 19:07:44 -08:00 |
|
|
|
a2f76703ea
|
Remove behavior of ETA clearing when shuttle is approaching stop
|
2025-11-18 19:07:06 -08:00 |
|
|
|
0af54cd48f
|
Merge pull request #89 from brendan-ch/chore/update-node-version
chore/update-node-version
|
2025-11-14 11:15:38 -08:00 |
|
|
|
1dfdfeff1e
|
Update package-lock and dockerfile
|
2025-11-14 11:05:47 -08:00 |
|
|
|
1df69b3a73
|
Add Node.js version to package.json
|
2025-11-14 11:02:55 -08:00 |
|
|
|
5f3ca479aa
|
Specify node version in nvmrc
|
2025-11-14 11:02:26 -08:00 |
|
|
|
e1a389101f
|
Merge pull request #88 from brendan-ch:hotfix/use-two-hour-windows-for-all-fallbacks
hotfix/use-two-hour-windows-for-all-fallbacks
|
2025-11-14 10:54:14 -08:00 |
|
|
|
8621f10721
|
Switch the order of fallbacks (previous 2h first)
Data from the current day is more representative of current traffic conditions than the same data from a previous day.
|
2025-11-14 10:49:23 -08:00 |
|
|
|
f8e7670b3f
|
For data from last week and previous day, look back instead of looking forward
|
2025-11-14 10:40:37 -08:00 |
|
|
|
397eb2b588
|
Change one-hour windows to two hours
A set of shuttles may only make a complete set of trips in two hours, so this should capture more data when calculating ETAs.
|
2025-11-14 10:34:48 -08:00 |
|
|
|
b2ebd3df9c
|
Merge pull request #87 from brendan-ch/hotfix/clear-shuttle-last-stop-if-no-data
hotfix/clear-shuttle-last-stop-if-no-data
|
2025-11-14 10:31:33 -08:00 |
|
|
|
f06e778b80
|
Implement removal of last stop data on shuttle removal
|
2025-11-14 10:26:52 -08:00 |
|
|
|
1511b3c118
|
Add test case to check that last stop data is removed
|
2025-11-14 10:23:02 -08:00 |
|
|
|
f76126c951
|
Implement clearing of last stop data
|
2025-11-14 10:19:15 -08:00 |
|
|
|
4523badea9
|
Test that clearShuttleData also clears last stop data
|
2025-11-14 10:17:33 -08:00 |
|
|
|
05fc03c032
|
Merge pull request #86 from brendan-ch/feat/self-calculated-etas
feat/self-calculated-etas
|
2025-11-13 22:38:51 -08:00 |
|
|
|
a89d3c7ae3
|
Fix test references
|
2025-11-13 22:36:13 -08:00 |
|
|
|
6278d695fa
|
Add support back in for external source ETA repositories, if we switch back later
|
2025-11-13 22:28:07 -08:00 |
|
|
|
b74a0d5d64
|
Restrict stop arrival event to only next stop after shuttle's last stop, if last stop exists
|
2025-11-13 22:13:17 -08:00 |
|
|
|
2df8f389b3
|
Change the final fallback window to two hours
|
2025-11-13 20:23:14 -08:00 |
|
|
|
f9ed8f16ac
|
Bind methods and log errors for missing keys
|
2025-11-13 20:08:15 -08:00 |
|
|
|
d6ad90ee7a
|
Change SHUTTLE_WILL_ARRIVE_AT_STOP to return payload of last stop and current stop, to avoid data race
|
2025-11-13 18:52:13 -08:00 |
|
|
|
0cf2a4d2e7
|
Add logic to clear out previous ETAs
|
2025-11-13 18:35:20 -08:00 |
|
|
|
2fbc13202d
|
Apply the same changes to the in-memory repository
|
2025-11-13 18:02:10 -08:00 |
|
|
|
bf6a2e4667
|
Add recursive implementation of cascading ETA updates for multiple ordered stops
|
2025-11-13 17:38:53 -08:00 |
|
|
|
91584fc2ab
|
Extract fallback logic to a separate method
|
2025-11-13 17:19:37 -08:00 |
|
|
|
42c71815e6
|
Make the ETA assertion check for multiple ETA insertions
|
2025-11-13 17:13:43 -08:00 |
|
|
|
e4151ed914
|
Return stop3 as part of the test data
|
2025-11-13 17:08:47 -08:00 |
|