Commit Graph

376 Commits

Author SHA1 Message Date
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
a95c89c15b update tests and index with updated scheduler interface 2025-03-31 19:21:10 -07:00
ef94055133 add start and stop methods, move subscribe out of constructor 2025-03-31 19:17:41 -07:00
02b3b77a61 bind apple notification sender methods 2025-03-31 18:56:02 -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
f2a2dd74f6 listen to shuttle ETA updates in the scheduler constructor 2025-03-27 10:58:20 -07:00
ef94a9aa7e fix method calls and tests 2025-03-27 10:56:57 -07:00
a665c29745 add method to check if notification is scheduled 2025-03-27 10:46:38 -07:00
3761f43909 update server context to only include the notification repository 2025-03-27 10:42:43 -07:00
bda46d6808 rename repository to server repository in server context 2025-03-27 10:38:02 -07:00
bba00eb067 remove everything from the scheduler that's in the repository already 2025-03-27 10:30:12 -07:00
ae30660095 fix constructors 2025-03-27 10:23:30 -07:00
fb58414ba3 add notification repository as optional dependency 2025-03-27 10:20:25 -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
687fe0d826 finish the rename for the data loaders 2025-03-27 09:33:37 -07:00
fab99db755 rename existing repository to shuttle repository 2025-03-27 09:32:29 -07:00
3a85f3da8b bind rest of notification scheduler methods to class 2025-03-27 09:28:47 -07:00
83cf38ed91 remove dotenv 2025-03-27 08:27:14 -07:00
7199adf20e play the default sound when the notification is sent 2025-03-25 16:21:19 -07:00
717575e004 update query resolvers to add the seconds threshold 2025-03-25 16:00:13 -07:00
99672e749f use seconds threshold provided in argument inputs 2025-03-25 15:48:42 -07:00
96e7e0297b update tests for mutation resolvers 2025-03-25 15:43:00 -07:00
14a3738fba add a public method to get the seconds threshold for a scheduled notification 2025-03-25 15:39:17 -07:00
fb49577cf6 add logic to send notification based on a provided threshold 2025-03-25 15:19:09 -07:00
1f8d4bfbd4 extract tuple.toString to variable 2025-03-25 15:11:47 -07:00
50636e5582 change set of device IDs to object of device IDs to seconds threshold 2025-03-25 15:09:32 -07:00
8874704acb add optional secondsThreshold value 2025-03-25 14:55:34 -07:00
9e6e20503d Merge pull request #32 from brendan-ch/chore/split-notification-service
[INT-45] chore/split-notification-service
2025-03-24 10:35:38 -07:00
6251f0e247 move shouldSendNotifications property to the AppleNotificationSender 2025-03-24 10:02:30 -07:00
a6ceeb4dfb add optional dependency inject for apple notification sender 2025-03-24 09:59:29 -07:00
23dc4c3f59 add getter for the last refreshed token time 2025-03-24 09:44:50 -07:00
9869632a88 change reloadAPNsTokenIfTimePassed method to public for testing 2025-03-24 09:42:41 -07:00
7f1bf005c1 integrate notification sender class into ETA notification scheduler 2025-03-24 09:39:07 -07:00
83766c90c5 add notification sending logic 2025-03-24 09:34:53 -07:00
a58780a37d add apns token methods 2025-03-24 09:30:22 -07:00
619ef9a27f update naming of classes and tests 2025-03-24 09:20:10 -07:00
049ea731a3 add message for integration testing 2025-03-20 20:22:58 -07:00
d8ec54919e move shuttle away from the stop 2025-03-20 20:22:50 -07:00