Commit Graph

99 Commits

Author SHA1 Message Date
868a9f3b1d Add RedisParkingRepository.ts and convert existing tests to shared tests for both classes 2025-07-02 19:40:45 -04:00
ca2a66509b Implement getHistoricalAveragesOfParkingStructureCounts for InMemoryParkingRepository.ts, and add tests 2025-07-02 19:10:16 -04:00
2b04ca01a9 Update InMemoryParkingRepository.ts and tests to use the circular queue 2025-07-02 18:48:33 -04:00
4758d566da Add constant MAX_NUM_ENTRIES and adjust PARKING_LOGGING_INTERVAL_MS 2025-07-01 21:47:15 -04:00
8fb296027d Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts 2025-07-01 21:37:26 -04:00
6759bba2ce Add properties to determine when the parking repository should log data 2025-07-01 21:23:15 -04:00
81272e94b1 Add getHistoricalAveragesOfParkingStructureCounts stub and update constructor with dependency injection support 2025-07-01 21:20:11 -04:00
1f252ee468 Define new method to get historical averages depending on timestamps and interval 2025-07-01 21:13:55 -04:00
461b1d1a59 implement class 2025-04-08 16:47:41 -07:00
e5c4387cff add stub methods for repo 2025-04-08 16:39:23 -07:00
922fd7abb8 add repository methods 2025-04-08 16:37:36 -07:00
e5b686f0be fix import errors 2025-04-08 16:30:43 -07:00
2741d229f9 rename entities.ts to ShuttleRepositoryEntities.ts 2025-04-08 16:07:48 -07:00
4f855a8225 update implementation of repository to get all entities 2025-04-07 19:18:30 -07:00
b6f3e4ccde update method signatures to not include system id 2025-04-07 19:17:14 -07:00
0076d987ca rename methods in getter repository 2025-04-07 19:06:18 -07:00
4f7d24acf0 add TODO to be resolved before merge 2025-04-07 13:57:14 -07:00
940d172e87 rename ISystem to IPassioSystem 2025-04-06 10:50:51 -07:00
6d762ce620 remove all system related data from shuttle repository 2025-04-06 10:49:47 -07:00
a144657fa8 update remove implementation and tests 2025-04-06 09:55:23 -07:00
695fec1fce rename update method and update return types 2025-04-06 09:51:13 -07:00
7e0c1f3539 rename get system method on shuttle repository, update tests 2025-04-06 09:48:55 -07:00
d76740e5e7 add tls config 2025-03-31 23:37:28 -07:00
50148cc2f4 implement RedisNotificationRepository 2025-03-31 20:26:26 -07:00
39066b88bc have teardown clear all data in redis before starting next test 2025-03-31 20:21:09 -07:00
36359a4caa add export and getter to check connection status 2025-03-31 19:42:47 -07:00
cc6623404c add connect/disconnect methods 2025-03-31 19:37:19 -07:00
c98367f12e add bindings and redis client arg for constructor 2025-03-31 19:35:38 -07:00
1acd12d113 add stub methods for redis notification repository 2025-03-31 19:30:42 -07:00
75a4e133ed fix failing test for notification deletion 2025-03-27 11:40:32 -07:00
9c22e154be add bindings for the notifications repository 2025-03-27 11:34:01 -07:00
a84cedd05a add test and implementation for addOrUpdate listeners 2025-03-27 11:23:07 -07:00
51d66d8886 add tests and implementation for notification deletes 2025-03-27 11:18:43 -07:00
b0f04a9256 add stub methods for subscribe/unsubscribe 2025-03-27 11:10:49 -07:00
b2fb430a38 add notification event subscriber/unsubscriber 2025-03-27 11:08:40 -07:00
a665c29745 add method to check if notification is scheduled 2025-03-27 10:46:38 -07:00
f007b72d94 add code for in-memory notification repository 2025-03-27 10:19:00 -07:00
7379840070 extract notification repository to interface 2025-03-27 10:06:42 -07:00
c517d93e3a add test cases and rename some methods 2025-03-27 10:02:13 -07:00
09be37cedb move arguments and notification interfaces to notification repository file 2025-03-27 09:57:49 -07:00
fab99db755 rename existing repository to shuttle repository 2025-03-27 09:32:29 -07:00
7d762f17dc optimize imports 2025-02-02 13:18:33 -08:00
b30e4be895 rename methods for clarity on method events 2025-02-02 13:14:45 -08:00
9dd6e945c2 extract publishing code to private method 2025-02-02 13:14:04 -08:00
a810a2e78f add 'publish' code to addOrUpdateEta 2025-02-02 13:13:32 -08:00
01cbad3a73 add code to add/remove from subscriber array 2025-02-02 13:12:20 -08:00
ec62b0c8bf update interface to not be async 2025-02-02 13:07:42 -08:00
5957010a7f add test cases and documentation for functions 2025-02-02 13:04:03 -08:00
345d4905fe add method stubs in basic in-memory repository 2025-02-02 12:51:25 -08:00
acfc91d3c1 add method stubs for subscribing/unsubscribing to changes 2025-02-02 12:49:41 -08:00