Commit Graph

1508 Commits

Author SHA1 Message Date
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
db3761609b Job Status changed.
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
a177042e77 Formatting cleanup for models.py
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:32 -05:00
Cliff Hill
f120641087 Getting permission types configured.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:32 -05:00
Cliff Hill
985ad27b3e Getting imports right to use app.enums
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
ac9591ec7c More tweaks, trying to get tests to be clean.
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
Andrew Shumway
afd77cf9fe Returned months changed to calendar year 2024-02-07 14:53:26 -07:00
Kenneth Kehl
ddad4e409e update send_at when status resolves 2024-02-02 12:51:11 -08:00
Kenneth Kehl
c45e74a74b update sent_at 2024-02-02 09:03:54 -08:00
Kenneth Kehl
f9f1013f5b notify-api-742 don't write phone numbers to db 2024-01-16 11:21:24 -08:00
Carlo Costino
81907bb80e Merge pull request #659 from GSA/ADMIN-97_Resend_Expired_Invites
Admin 97 resend expired invites
2023-12-20 14:05:41 -05:00
Cliff Hill
affc5e7aff Fixing stuff.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-20 09:51:43 -05:00
Cliff Hill
b72ae4374f Working on tests.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-13 10:14:14 -05:00
Cliff Hill
991d9aa621 Made new /resend route in api.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-05 23:03:44 -05:00
Cliff Hill
c04df94b22 Adjusting some DAO stuff to send expired invites now.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-05 23:03:43 -05: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
d19cabed90 Removed "expired" flag.
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
Carlo Costino
232611629e Merge pull request #580 from GSA/notify-api-553
notify-api-533 add flask command to promote user to platform admin
2023-11-07 12:53:41 -05:00
Kenneth Kehl
aa7b5d3905 notify-api-533 add flask command to promote user to platform admin 2023-11-06 13:31:03 -08:00
Andrew Shumway
d0368695db Revert "Added flag to remove default sender from user list" 2023-11-06 11:49:17 -07:00
Kenneth Kehl
9c841320ca fix tests 2023-11-03 08:28:21 -07:00
Kenneth Kehl
7d2dc776b9 merge from main 2023-11-03 07:10:06 -07:00
Andrew Shumway
948bb17a6c Removed history count from total count 2023-11-02 16:21:02 -04:00
Andrew Shumway
32dca0f5e0 Add notification history and notification to count 2023-11-02 16:21:02 -04:00
Andrew Shumway
db7aa969cd Added api endpoint for count 2023-11-02 16:21:00 -04:00
Andrew Shumway
c247891c97 Add initial steps to call api for count 2023-11-02 16:18:02 -04:00
Andrew Shumway
a346a734fc Removed/replaced retention redis count with notification count from db call 2023-11-02 16:16:08 -04:00
Carlo Costino
490893397e Fixed isinstance() calls, oops
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:30:06 -04:00
Carlo Costino
8c825a43bd Updated a couple more dependencies and fix flake8 warnings
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:16:49 -04:00
Kenneth Kehl
6d84ec64e5 notify-api-522 2023-10-24 11:35:00 -07:00
Andrew Shumway
e0522393df Added flag to remove default sender from user list 2023-10-15 16:28:25 -06:00
Kenneth Kehl
8af7a5552f notify-api-520 persist the provider response even for successful sms messages 2023-09-29 13:39:10 -07: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
Kenneth Kehl
b4a2f37ca9 get coverage up to 94% 2023-08-14 09:04:06 -07:00
Kenneth Kehl
1adc05a7c6 notify-admin-641 let platform admins export listing of all users (#370)
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
2023-07-26 12:13:57 -04:00
Kenneth Kehl
3ac2feacfe fix tests 2023-07-10 14:21:36 -07:00