Commit Graph

12847 Commits

Author SHA1 Message Date
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
Kenneth Kehl
67d03dd6c1 Merge pull request #1529 from GSA/connection_pool
fix db connection pool
2025-01-13 08:41:42 -08:00
Kenneth Kehl
aeb4726381 Merge pull request #1525 from GSA/notify-api-1524
set prefetch multiplier to 2
2025-01-13 08:40:25 -08: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
28470468e2 fix uuid 2025-01-10 16:38:37 -08:00
Kenneth Kehl
44ce495190 fix uuid 2025-01-10 16:25:26 -08:00
Kenneth Kehl
bf3fc43e87 fix uuid 2025-01-10 15:06:35 -08:00
Kenneth Kehl
2acd0a87b9 fix uuid 2025-01-10 15:02:43 -08:00
Kenneth Kehl
7794eb29c3 fix uuid 2025-01-10 14:51:40 -08:00
Kenneth Kehl
3fba382cfe fix uuid 2025-01-10 14:43:28 -08:00
Kenneth Kehl
c6d098743d fix uuid 2025-01-10 14:35:03 -08:00
Kenneth Kehl
6f7c7d2d66 fix uuid 2025-01-10 14:23:03 -08:00
Kenneth Kehl
302e3ee798 fix uuid 2025-01-10 14:12:45 -08:00
Kenneth Kehl
6bd044e684 fix uuid 2025-01-10 14:03:07 -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
Kenneth Kehl
1eea4bb35b fix tests 2025-01-10 13:38:36 -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
Kenneth Kehl
833146e424 fix tests 2025-01-10 13:15:42 -08: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
bbf5bace20 add lpop and rpush to notify redis 2025-01-10 08:05:51 -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
7e7d43238f cleanup 2025-01-09 11:16:53 -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
4293da640a Merge pull request #1522 from GSA/notify-api-1520
cleanup pending notifications
2025-01-09 08:35:39 -08:00
Kenneth Kehl
fbd8643e74 fix tests 2025-01-09 08:33:42 -08:00
Kenneth Kehl
a527218638 fix tests 2025-01-09 08:07:20 -08: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
da19e7c81c set prefetch multiplier to 2 and increase concurrency to 15 2025-01-08 11:12:08 -08:00