Commit Graph

6349 Commits

Author SHA1 Message Date
Andrew Shumway
3fd8009e33 Add error handling for possible string/datetime created at stamps 2025-01-15 12:49:47 -07:00
Kenneth Kehl
0a7ccc58ea Merge pull request #1533 from GSA/notify-api-1531
Investigate bulk_save_objects for notification inserts
2025-01-15 09:47:00 -08:00
Kenneth Kehl
981fedaa01 code review feedback 2025-01-15 07:42:59 -08:00
Kenneth Kehl
9846c19681 merge from main 2025-01-15 07:40:53 -08:00
Beverly Nguyen
880237f55d fix tuples 2025-01-14 16:57:43 -08:00
Kenneth Kehl
fdf6158934 merge from main 2025-01-14 12:01:46 -08:00
Kenneth Kehl
59dfb05ee5 code review feedback 2025-01-14 07:35:02 -08:00
Kenneth Kehl
ba4301fc46 fix bug with created_at 2025-01-13 14:21:43 -08:00
Beverly Nguyen
88c3da5579 add testing 2025-01-13 13:39:34 -08:00
Kenneth Kehl
4965bc2354 change countdown from 30 to 60 seconds for message sends to better match batch insert timing 2025-01-13 13:35:40 -08:00
Kenneth Kehl
eac21788a1 clean up 2025-01-13 13:21:34 -08:00
Kenneth Kehl
f4b8c040a3 more tests 2025-01-13 13:03:50 -08:00
Kenneth Kehl
510b84b96b more tests 2025-01-13 12:19:53 -08:00
Kenneth Kehl
aaddd8c336 more tests 2025-01-13 11:10:03 -08:00
Kenneth Kehl
f9641aee39 more tests 2025-01-13 11:00:42 -08:00
Kenneth Kehl
238ec27d4e more tests 2025-01-13 10:48:19 -08:00
Beverly Nguyen
b2240659ce fix testing 2025-01-13 10:16:38 -08:00
Kenneth Kehl
a92eb91470 add a test 2025-01-13 10:00:18 -08:00
Andrew Shumway
345ae88ffc Merge branch 'main' of https://github.com/GSA/notifications-api into invite-expiration-fix 2025-01-13 10:07:43 -07:00
Andrew Shumway
f497203791 Ensure created_at stamp is correct 2025-01-13 10:07:33 -07:00
Beverly Nguyen
dd3c277985 fix testing 2025-01-10 19:26:46 -08:00
Beverly Nguyen
fa00bd14bf isort 2025-01-10 18:47:39 -08:00
Beverly Nguyen
2eef7ab206 remove comments 2025-01-10 18:45:05 -08:00
Beverly Nguyen
50a183f05d flake 2025-01-10 18:42:43 -08:00
Beverly Nguyen
af46a671f9 cleaningu up pending 2025-01-10 18:41:09 -08:00
Beverly Nguyen
30dfc6a571 pending count 2025-01-10 18:29:16 -08:00
Beverly Nguyen
7ef808196e pending count 2025-01-10 18:18:20 -08:00
Kenneth Kehl
302e3ee798 fix uuid 2025-01-10 14:12:45 -08:00
Cliff Hill
3f8c49d829 Removing total_notification calculations.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 16:52:30 -05:00
Kenneth Kehl
9685b09677 fix tests 2025-01-10 13:51:35 -08:00
Cliff Hill
467357c031 Getting total notifications per day made.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 16:21:15 -05:00
Cliff Hill
b543db474f Moving where the pending calculation is done.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 16:07:49 -05:00
Cliff Hill
9219049150 Cleaning up function a bit.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 15:08:44 -05:00
Kenneth Kehl
1fbe427786 revert behavior for emails, only sms needs optimization 2025-01-10 12:03:00 -08:00
Kenneth Kehl
5f7089fea0 add countdown of 30 seconds for deliveries 2025-01-10 11:51:42 -08:00
Cliff Hill
162823e59b Query fixing.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 14:46:59 -05:00
Cliff Hill
bc80841212 Changing the queries again.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 14:29:46 -05:00
Kenneth Kehl
64a61f5d36 cleanup redis commands and flow 2025-01-10 11:21:39 -08:00
Cliff Hill
ef61069101 black cleanup.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 13:55:01 -05:00
Cliff Hill
f1cc6aa400 estructuring how to get total_notifications.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-10 13:47:43 -05:00
Beverly Nguyen
b6337ad807 updating pending count 2025-01-10 10:28:28 -08:00
Kenneth Kehl
874c8ffb54 try batch inserts 2025-01-10 07:58:24 -08:00
Kenneth Kehl
16bba7e4c4 cleanup 2025-01-09 11:28:24 -08:00
Kenneth Kehl
2770f76431 cleanup 2025-01-09 11:14:51 -08:00
Kenneth Kehl
6aae2c7aae fix db connection pool 2025-01-09 10:53:33 -08:00
Cliff Hill
8656c44757 Make sure join is correct table.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-09 13:02:21 -05:00
Kenneth Kehl
5cedd6427d use singletons for s3 client 2025-01-09 07:47:47 -08:00
Cliff Hill
37fa1187ac Adding group by clause to outer query for function.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-09 08:29:36 -05:00
Cliff Hill
05055aa60a Updated query
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2025-01-08 15:41:26 -05:00
Kenneth Kehl
a2fc97000b cleanup pending notifications 2025-01-08 08:58:24 -08:00