Commit Graph

245 Commits

Author SHA1 Message Date
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
ba4301fc46 fix bug with created_at 2025-01-13 14:21:43 -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
f9641aee39 more tests 2025-01-13 11:00:42 -08:00
Kenneth Kehl
238ec27d4e more tests 2025-01-13 10:48:19 -08:00
Kenneth Kehl
a92eb91470 add a test 2025-01-13 10:00:18 -08:00
Kenneth Kehl
64a61f5d36 cleanup redis commands and flow 2025-01-10 11:21:39 -08:00
Kenneth Kehl
874c8ffb54 try batch inserts 2025-01-10 07:58:24 -08:00
Kenneth Kehl
6aae2c7aae fix db connection pool 2025-01-09 10:53:33 -08:00
Kenneth Kehl
0d1a98914a cleanup pending notifications 2025-01-08 08:44:49 -08:00
Andrew Shumway
2b3c9c869e Change delivery receipts tasks time to help UI lag 2025-01-07 09:27:04 -07:00
Kenneth Kehl
85a55dbaed change time range for incomplete jobs 2024-12-27 10:13:28 -08:00
Cliff Hill
122195d010 flake8 stuff
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-12-26 08:52:51 -05:00
Kenneth Kehl
9dc7cfeb2f code review feedback 2024-12-20 07:33:28 -08:00
Kenneth Kehl
48c3cebc72 clean up 2024-12-18 07:44:24 -08:00
Kenneth Kehl
7cf747d35a go back to filter log events 2024-12-17 15:59:30 -08:00
Kenneth Kehl
6316e266ee fix batch processing 2024-12-16 14:33:50 -08:00
Kenneth Kehl
b28b547762 more 2024-12-13 17:30:00 -08:00
Kenneth Kehl
b784d33173 more work 2024-12-13 16:45:09 -08:00
Kenneth Kehl
56ebed5445 switch to log insights for delivery receipts 2024-12-13 14:40:37 -08:00
Kenneth Kehl
905df17f65 remove datetime.utcnow() 2024-05-23 13:59:51 -07:00
Carlo Costino
99edc88197 Localize notification_utils to the API
This changeset pulls in all of the notification_utils code directly into the API and removes it as an external dependency.  We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the API.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-16 10:17:45 -04:00
Kenneth Kehl
8fba67170e remove deprecated notification 2024-04-11 10:28:09 -07:00
Cliff Hill
9523cc1d97 Cleaning up with black, isort, flake8.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05:00
Cliff Hill
db3761609b Job Status changed.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05:00
Cliff Hill
3982f061b6 Made enums.py for all the enums to avoid cyclic imports.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:31 -05:00
Cliff Hill
43f18eed6a More changes for enums.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:41:57 -05:00
Cliff Hill
820ee5a942 Cleaning up a lot of things, getting Enums used everywhere.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:40:52 -05:00
Kenneth Kehl
e45d4dbac9 fix tests 2024-01-12 15:08:59 -08:00
Kenneth Kehl
3414c8e15a fix redis issue causing error in log 2024-01-12 14:28:14 -08:00
Kenneth Kehl
212834dd7d fix 90% threshold message 2023-12-06 07:32:03 -08:00
Kenneth Kehl
9f037058e3 tidy up 2023-11-29 09:04:34 -08:00
Kenneth Kehl
4a44171795 fix email 2023-11-29 08:14:28 -08:00
Kenneth Kehl
d710cdefd6 notify-api-634 2023-11-28 12:30:53 -08:00
Cliff Hill
8350408512 Working on getting tests working.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-11-13 16:00:11 -05:00
Cliff Hill
3e6a7931d8 Working on getting expiration implemented.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-11-13 16:00:11 -05:00
Kenneth Kehl
065009bb7a merge from main and reformat 2023-08-29 16:21:18 -07:00
Kenneth Kehl
1ecb747c6d reformat 2023-08-29 14:54:30 -07:00
Kenneth Kehl
5a350560d7 notify-api-433b remove research mode 2023-08-25 12:09:00 -07:00
Kenneth Kehl
00fd3a72bb code review feedback, fix setup.cfg and reformat 2023-08-25 08:10:33 -07:00
Kenneth Kehl
026dc14021 notify-api-412 use black to enforce python style standards 2023-08-23 10:35:43 -07:00
Kenneth Kehl
f2f0e5a0f1 code review feedback 2023-08-15 14:50:41 -07:00
Steven Reilly
ff4190a8eb Remove letters-related code (#175)
This deletes a big ol' chunk of code related to letters. It's not everything—there are still a few things that might be tied to sms/email—but it's the the heart of letters function. SMS and email function should be untouched by this.

Areas affected:

- Things obviously about letters
- PDF tasks, used for precompiling letters
- Virus scanning, used for those PDFs
- FTP, used to send letters to the printer
- Postage stuff
2023-03-02 20:20:31 -05:00
Ryan Ahearn
01cf3dfb9d Completely remove code to switch sms providers on slow delivery 2022-11-30 11:08:55 -05:00
stvnrlly
637fbdb891 broadcast flake8 cleanup 2022-10-25 11:53:24 -04:00
stvnrlly
57f4df8ed1 remove broadcast-related code, except migrations 2022-10-04 15:28:27 +00:00
Leo Hemsted
9e8df8b623 remove "letters stuck pending av" runbook
there's not anything we know we need to do now that we resolve stuck
letters automatically. Letters couuld still get into this state, so it's
worth alerting us. However, we don't have anything concrete that we know
how to fix these letters, so we should just remove the runbook entirely.
2022-03-10 14:10:01 +00:00