This website requires JavaScript.
7463cb27f1
Add proof-of-concept which also queries same time period yesterday, as well as last hour
Brendan Chen
2025-11-11 21:41:32 -08:00
1866224b5b
Prevent shuttle arriving at same stop from firing the SHUTTLE_WILL_ARRIVE_AT_STOP event
Brendan Chen
2025-11-11 21:22:39 -08:00
4096c0ce44
Add call to startListeningForUpdates()
Brendan Chen
2025-11-11 21:05:43 -08:00
97feec6d3f
Connect etaRepository to Redis in the builder
Brendan Chen
2025-11-11 20:47:20 -08:00
e03e962ab9
Implement remaining logic for RedisExternalSourceETARepository
Brendan Chen
2025-11-11 20:24:55 -08:00
6a31609960
Implement in-memory equivalents of both ETA repositories
Brendan Chen
2025-11-11 20:21:40 -08:00
7c5aeda4a9
Add timeouts for event emitters, and update reference behavior for the ETA entry test
Brendan Chen
2025-11-11 20:11:45 -08:00
ac81806b26
Swap implementations of two handler methods, and add reference implementation for adding travel time data
Brendan Chen
2025-11-11 19:51:31 -08:00
88a393c1ad
Update ETA add test to use setReferenceTime
Brendan Chen
2025-11-11 19:41:42 -08:00
5e8a3c84a6
Add previous reference implementation of getAverageTravelTimeSeconds and method bindings
Brendan Chen
2025-11-11 19:41:19 -08:00
4b37f3a121
Add a helper method for setting the "reference time" of the self-updating repo
Brendan Chen
2025-11-11 19:34:05 -08:00
e8f4e7b9ee
Add a base protected method for adding ETAs and emitting events
Brendan Chen
2025-11-11 19:33:52 -08:00
9af50ddfe9
Change the event name to SHUTTLE_WILL_ARRIVE_AT_STOP, and emit it before the stop is updated
Brendan Chen
2025-11-11 19:10:13 -08:00
b9fefcc6a9
Implement BaseRedisETARepository based on past implementation
Brendan Chen
2025-11-11 19:05:47 -08:00
04e8354e05
Implement BaseInMemoryETARepository based on previous implementation in shuttle repository
Brendan Chen
2025-11-11 19:03:16 -08:00
bc7ba7d507
Subscribe to shuttle events and add stub methods
Brendan Chen
2025-11-11 18:56:46 -08:00
6cf61d1cdb
Unify eventual getter implementations in a BaseRedisETARepository class
Brendan Chen
2025-11-11 18:47:13 -08:00
7497c1d004
Apply the same events to UnoptimizedInMemoryShuttleRepository
Brendan Chen
2025-11-11 18:39:24 -08:00
a3bfa4894e
Fix date type mismatch for data comparison
Brendan Chen
2025-11-11 18:35:13 -08:00
992a2b6149
Implement the events
Brendan Chen
2025-11-11 18:34:17 -08:00
5b1c5897fc
Re-apply event emitter tests for the new shuttle events
Brendan Chen
2025-11-11 16:53:27 -08:00
c6f8e5642e
Fix typing errors in test
Brendan Chen
2025-11-11 15:44:34 -08:00
dac22da0b5
Update method call to addOrUpdateShuttle
Brendan Chen
2025-11-11 15:38:03 -08:00
2854912e07
Update ETA mock helper to take an ExternalSourceETARepository
Brendan Chen
2025-11-11 15:37:07 -08:00
1d366bd63d
Pass new configuration option in apolloTestServerHelpers
Brendan Chen
2025-11-11 15:36:07 -08:00
fd59f6cbd9
Update resolvers to use the ETA repository
Brendan Chen
2025-11-11 15:30:52 -08:00
90041555a9
Remove ETA-related tests from ShuttleRepositorySharedTests
Brendan Chen
2025-11-11 15:30:43 -08:00
747477cff4
Update shuttle repository implementations to remove ETA functionality
Brendan Chen
2025-11-11 15:28:11 -08:00
5eb40ff8a5
Remove ETA-related methods from ShuttleGetterSetterRepository
Brendan Chen
2025-11-11 15:28:01 -08:00
15315f826e
Add SHUTTLE_ARRIVED_AT_STOP event and remove ETA-related methods for ShuttleGetterRepository
Brendan Chen
2025-11-11 15:27:42 -08:00
42cd34e755
Update InterchangeSystem and caller to construct an ETA repository based on argumetns
Brendan Chen
2025-11-11 15:16:21 -08:00
57d0171d68
Remove unused integration test systems
Brendan Chen
2025-11-11 15:16:01 -08:00
6df4678acc
Add stub for in-memory self updating ETA repository
Brendan Chen
2025-11-11 15:14:03 -08:00
75537a9c3a
Update interface and implementation of ETANotificationScheduler
Brendan Chen
2025-11-11 14:59:36 -08:00
7a0e303080
Add stub for in-memory external source ETA repository
Brendan Chen
2025-11-11 14:59:24 -08:00
e05519f651
Remove ETA events and add shuttle events for ShuttleGetterRepository
Brendan Chen
2025-11-11 14:52:40 -08:00
99999450b5
Remove clearAllData from BaseRedisRepository and update tests
Brendan Chen
2025-11-11 14:50:53 -08:00
01c55d52ec
Make BaseRedisRepository extend EventEmitter; make RedisShuttleRepository extend BaseRedisRepository
Brendan Chen
2025-11-11 12:31:32 -08:00
b6b79e1345
Migrate ETA-related tests over to the ETA repository tests
Brendan Chen
2025-11-11 12:27:10 -08:00
13bfc853e3
Add getAverageTravelTimeSeconds in SelfUpdatingETARepository definition
Brendan Chen
2025-11-11 12:26:22 -08:00
e0b00d1887
Extract setupRouteAndOrderedStops to a test helper
Brendan Chen
2025-11-11 12:21:26 -08:00
83e3414c8e
Add the tests back, for directly adding/removing ETAs
Brendan Chen
2025-11-11 12:08:02 -08:00
ea943206c0
Remove spy on nonexistent method
Brendan Chen
2025-11-11 12:06:05 -08:00
cb23379723
Add shuttleRepository injection to the constructor of RedisSelfUpdatingETARepository
Brendan Chen
2025-11-11 11:41:39 -08:00
7ac8232878
Fix typings for BaseRedisRepository
Brendan Chen
2025-11-11 11:41:21 -08:00
e707c9cfd8
Have the ETA repositories depend on BaseRedisRepository instead of duplicating methods
Brendan Chen
2025-11-11 11:33:45 -08:00
809c0b9270
Add clearAllData as a declared method
Brendan Chen
2025-11-11 11:03:33 -08:00
c43201b867
Move RepositoryHolder into test helpers, as it's shared across shared tests
Brendan Chen
2025-11-11 10:59:20 -08:00
53e120cd1e
Add stubs for Redis implementations of both ETA repository variants
Brendan Chen
2025-11-11 10:54:46 -08:00
1783d5f6f7
Define a set of interfaces for the ETA repository
Brendan Chen
2025-11-11 10:51:34 -08:00
41bea7b693
Remove unused code within ApiBasedShuttleRepositoryLoader
Brendan Chen
2025-11-10 20:26:44 -08:00
09f5fa55df
Delete loadShuttleTestData
Brendan Chen
2025-11-10 20:23:54 -08:00
589f630f23
In test helpers, update method call for ETA update
Brendan Chen
2025-11-10 20:23:25 -08:00
5bcb1b3ccd
Remove check for ETA data update
Brendan Chen
2025-11-10 20:23:07 -08:00
fb3be46ef2
Update shared test file and remove Redis-specific tests
Brendan Chen
2025-11-10 20:22:37 -08:00
ca5c7c618a
Update function calls within tests where shuttle repositories are a dependency
Brendan Chen
2025-11-10 20:22:08 -08:00
20c97de94d
Unify the new ETA functionality across all shuttle repositories
Brendan Chen
2025-11-10 20:20:39 -08:00
e6793572bf
Remove call to addOrUpdateEta within the shuttle repository loader
Brendan Chen
2025-11-10 20:15:39 -08:00
4481496fda
Privatize implementation details for updating shuttle ETA information
Brendan Chen
2025-11-10 19:51:15 -08:00
c9cbde7a78
Rename internal method to something more representative of if
Brendan Chen
2025-11-10 19:35:21 -08:00
a3854aab6d
Update test to account for Redis unpredictability
Brendan Chen
2025-11-10 19:13:39 -08:00
864097154e
Make addTravelTimeDataPoint public, add tests, and fix the query interval
Brendan Chen
2025-11-10 19:05:32 -08:00
7a0937c04e
Refactor updateShuttleLastStopArrival to use shuttle ID
Brendan Chen
2025-11-10 18:23:44 -08:00
ef20117f3c
Modify getShuttleLastStopArrival to use shuttle ID
Brendan Chen
2025-11-10 18:21:55 -08:00
91517669f0
Implement updateEtasBasedOnHistoricalData and add a test for it
Brendan Chen
2025-11-10 18:11:54 -08:00
d92db84738
Implement travel time data point saving and loading, and tests
Brendan Chen
2025-11-10 16:46:34 -08:00
bd1ae07662
Rename historical parking query arguments to HistoricalParkingAverageFilterArguments
Brendan Chen
2025-11-10 16:37:00 -08:00
c946647483
Update getArrivedStopIfExists and implement tests for it
Brendan Chen
2025-11-10 15:45:38 -08:00
584dd44aad
Update Claude instructions for testing
Brendan Chen
2025-11-10 15:45:21 -08:00
cba91dae55
Implement getShuttleLastStopArrival and updateShuttleLastStopArrival
Brendan Chen
2025-11-10 15:36:33 -08:00
2a80a049bd
Add updated test cases and update call to stop arrival helper
Brendan Chen
2025-11-10 15:09:13 -08:00
63ed267ded
Add necessary call to updateShuttleLastTimeArrival
Brendan Chen
2025-11-10 14:54:48 -08:00
321631e6c9
Add partial implementation and scaffolding of historical ETA update
Brendan Chen
2025-11-10 14:49:41 -08:00
b535868897
Add a method to check whether a shuttle has arrived at a stop
Brendan Chen
2025-11-10 14:33:00 -08:00
8ed23544c5
Update InterchangeSystem builder to use Redis-based shuttle repository
Brendan Chen
2025-11-03 10:47:19 -08:00
4b4715cdb2
Add RedisShuttleRepository and ShuttleRepositorySharedTests, like pattern for parking data
Brendan Chen
2025-11-03 10:34:21 -08:00
72f596821a
Update CLAUDE.md with new testing instructions
Brendan Chen
2025-11-03 10:31:37 -08:00
e29e772f6b
Switch back to CLAUDE file
Brendan Chen
2025-11-03 10:18:13 -08:00
7300a808a7
Merge pull request #84 from brendan-ch/codex/implement-eventemitter-for-updates
Brendan Chen
2025-10-21 16:39:54 -07:00
9a959d388f
Update verification of mock listener if removed
Brendan Chen
2025-10-21 16:24:36 -07:00
91ac397c75
Reorganize tests based on functions
Brendan Chen
2025-10-21 16:22:05 -07:00
4db517d4c0
Ensure shuttle repository uses typed EventEmitter overrides
Brendan Chen
2025-10-10 19:56:19 -07:00
a2f074b150
Merge pull request #83 from brendan-ch/chore/sort-resolver-data
Brendan Chen
2025-09-30 15:33:59 -07:00
9040ed7175
Move CLAUDE.md to AGENTS.md
Brendan Chen
2025-09-30 15:30:34 -07:00
415b461308
Add sorting to all data types
Brendan Chen
2025-09-30 15:23:50 -07:00
33b0de44fb
Merge pull request #78 from brendan-ch/chore/implement-cleaning-of-passio-data
Brendan Chen
2025-09-26 17:08:50 -07:00
513c8bb127
Change the default maximum distance, and move it to environment.ts
Brendan Chen
2025-09-26 16:24:20 -07:00
dc50f98a6d
Restore the pruning test for shuttles
Brendan Chen
2025-09-26 16:19:39 -07:00
67a4b3fc8e
Update test cases to test updating shuttle data depending on proximity
Brendan Chen
2025-09-26 16:12:01 -07:00
155ab2b4d2
Filter out out-of-service shuttles
Brendan Chen
2025-09-26 16:01:32 -07:00
5ed15ee534
Update mock data arrangement of shuttle data test to match updated requirements
Brendan Chen
2025-09-26 15:56:27 -07:00
7ed780a459
Implement filtering of shuttles by proximity to the closest route polyline coordinate
Brendan Chen
2025-09-26 15:40:58 -07:00
9268ad5181
Repeat warning message for ETA data
Brendan Chen
2025-09-26 15:00:04 -07:00
7d886975b9
Update mocked methods in tests, and test method names to match
Brendan Chen
2025-09-26 14:56:49 -07:00
db263122a1
Refactor remaining methods in ApiBasedShuttleRepositoryLoader.ts to follow the same sub-procedure pattern
Brendan Chen
2025-09-26 14:56:34 -07:00
74a55b3f57
Refactor shuttle update method into clear sub-procedures
Brendan Chen
2025-09-26 14:45:11 -07:00
9a2b2f65b9
Rename methods to indicate a single responsibility
Brendan Chen
2025-09-26 14:31:20 -07:00
c244a4b037
Merge pull request #77 from brendan-ch/chore/add-ordered-stops-to-route
76-implement-cleaning-of-passio-data
Brendan Chen
2025-09-23 10:38:23 -07:00
e7b5f034f3
Add orderedStops property to the Route type
Brendan Chen
2025-09-23 10:15:42 -07:00
529f4e5869
Merge pull request #75 from brendan-ch/chore/dependency-updates
Brendan Chen
2025-09-13 18:44:15 -07:00