Commit Graph

165 Commits

Author SHA1 Message Date
Kenneth Kehl
6de1b226d0 cleanup 2024-12-13 10:15:47 -08:00
Kenneth Kehl
f706086bbf cleanup 2024-12-13 09:48:48 -08:00
Kenneth Kehl
5d265135d3 write a test 2024-10-02 13:08:34 -07:00
Kenneth Kehl
641d168370 fix properly 2024-10-01 12:58:31 -07:00
Kenneth Kehl
f55c437c7d try fixing tests 2024-10-01 11:36:09 -07:00
Kenneth Kehl
c2ed8f1686 fix personalization_bug for one-offs 2024-10-01 10:47:47 -07:00
Kenneth Kehl
71417a19dc fix load test 2024-09-25 10:22:27 -07:00
Kenneth Kehl
641b01d094 some cleanup 2024-09-13 11:22:50 -07:00
Kenneth Kehl
97cecd8569 add initial phone validation ability 2024-09-12 10:31:01 -07:00
Kenneth Kehl
64a85868a3 code review feedback and merge from main 2024-09-11 09:39:18 -07:00
Kenneth Kehl
01fff300f8 merge from main 2024-08-22 08:38:01 -07:00
Kenneth Kehl
5c3b96123a code review feedback 2024-08-20 10:29:19 -07:00
Kenneth Kehl
7acb10078d fix tests 2024-08-20 08:10:14 -07:00
Kenneth Kehl
613ee629aa remove debug 2024-08-19 13:00:57 -07:00
Kenneth Kehl
7b1942c3fe initial 2024-08-19 12:53:18 -07:00
Kenneth Kehl
146f0cc787 initial 2024-08-15 10:31:02 -07:00
Kenneth Kehl
e244278ccf fix tests 2024-07-31 14:21:30 -07:00
Kenneth Kehl
1e26511dc6 raise exception if phone number doesn't match 2024-07-31 13:54:03 -07:00
Carlo Costino
ec538dacda Merge pull request #1076 from GSA/notify-api-937
Need magic PII-free debugging method for API
2024-06-25 09:50:13 -04:00
Kenneth Kehl
2e4fd3b3ac fix tests 2024-06-20 13:30:43 -07:00
Kenneth Kehl
d7279c7c38 revamp PII masking 2024-06-17 11:12:30 -07:00
Kenneth Kehl
76c34ffae6 Need magic PII-free debugging method for API 2024-06-11 10:34:57 -07:00
Kenneth Kehl
920d2c4539 debug for notify-admin-1588 2024-06-05 12:42:35 -07: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
Andrew Shumway
d3b895ddc6 PEP-257 changes 2024-03-27 10:32:40 -06:00
Andrew Shumway
6599c284cc Add docs/code comments for message-send-flow 2024-03-18 11:45:40 -06:00
Andrew Shumway
5f2508a975 Add docs/code comments for message send flow 2024-03-18 11:32:29 -06:00
Kenneth Kehl
b777249b6f merge from main 2024-03-01 13:50:09 -08:00
Cliff Hill
43a8b6539f More fixes, removing literal "created" from code.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:58:22 -05:00
Cliff Hill
bd705ed188 More cleanup.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:34 -05:00
Cliff Hill
8c6046b03b Cleaning up tests.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05: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
ab7387acd8 All string "constants" in app.models converted to app.enums.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05:00
Cliff Hill
7416de2a28 KeyType implemented.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05:00
Cliff Hill
69a9accfca Getting NotificationStatus implemented everywhere.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:32 -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
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
b5a0562077 fix tests 2024-01-24 07:55:14 -08:00
Kenneth Kehl
6dc9828663 fix tests 2024-01-22 10:55:09 -08:00
Carlo Costino
4efeb19d02 Update try/except block to catch Exception
This changeset updates a try/except block to catch Exception instead of BaseException.  Using BaseException is an anti-pattern and is not intended for user-defined code; it can also lead to other unintended side effects if not handled properly.

This is enough of a concern that the new release of flake8-bugbear now issues warnings when it sees BaseException being caught without an immediate re-raise.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-17 22:57:04 -05:00
Kenneth Kehl
efe4cd589c more debugging messages 2024-01-11 13:22:13 -08:00
Kenneth Kehl
ab0066589c fix registration and mock tests for redis 2024-01-11 11:51:00 -08:00
Kenneth Kehl
c3cb60f3b0 fix registration so email gets sent 2024-01-11 11:11:12 -08:00
Kenneth Kehl
ea8caf1ad9 remove debugging for 2fa issue 2024-01-11 09:38:00 -08:00
Kenneth Kehl
7b2e59dede switch to raw_get and raw_set to see exceptions 2024-01-10 10:30:44 -08:00
Kenneth Kehl
572c8ebb84 reformat 2024-01-09 14:45:11 -08:00
Kenneth Kehl
2f9b98c07e debug messages 2024-01-09 14:28:24 -08:00
Kenneth Kehl
5366992d1a format 2024-01-09 14:01:03 -08:00
Kenneth Kehl
d3ca06fec2 fix 2024-01-09 13:36:57 -08:00