Commit Graph

544 Commits

Author SHA1 Message Date
dependabot[bot]
9ba2e8b1bf Bump flake8-bugbear from 24.12.12 to 25.10.21 (#2052)
* Bump flake8-bugbear from 24.12.12 to 25.10.21

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 24.12.12 to 25.10.21.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/24.12.12...25.10.21)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-version: 25.10.21
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix flake8-bugbear B042 violations in exception classes

* Trigger CI re-run

* Regenerate poetry.lock with Poetry 2.1.3 for CI compatibility

* Regenerated poetry hash again

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Janousek <alex.janousek@gsa.gov>
2025-10-27 15:52:51 +00:00
Beverly Nguyen
7febff7628 Add organization message totals endpoint
- Add GET /organizations/<org_id>/message-totals endpoint
  - Returns aggregated messages_sent, messages_remaining, and total_message_limit
  - Add dao_get_notification_counts_for_organization() for bulk queries
2025-10-16 12:37:44 -07:00
ccostino
35fe2c3168 Remove SocketIO (#2019)
* Remove SocketIO

We have tried a few times to enable SocketIO in our app and it has been a challenge each step of the way, and now there is a dependency incompatibility it seems.  Given that we are in maintenance mode with the applicaiton currently and hve different plans for the interface, we are removing this dependency.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>

* Remove more unused code and address Flake8 warnings

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>

* Revert changes to fix test

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>

---------

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-10-07 12:33:43 -04:00
Kenneth Kehl
059ff9b3bb clean up logs 2025-06-24 09:04:56 -07:00
Kenneth Kehl
5f0c72df1d change message limit 2025-06-06 09:18:07 -07:00
Beverly Nguyen
02becbd1e5 removing run.py and unnecessary logs 2025-04-18 11:48:26 -07:00
Carlo Costino
419d6cee69 Update the flask-socketio config to play more nicely:
* Reverts run commands to what they previously were
* Addresses some outstanding linting/formatting
* Accounts for proper config initialization (CORS, Redis)
* Updates dependencies and pulls in latest changes from main

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-04-16 17:43:10 -04:00
Beverly Nguyen
f8726ca6b7 socket io setup 2025-04-09 16:56:42 -07:00
Kenneth Kehl
da9bbc31ba remoe print statement 2025-02-28 14:47:26 -08:00
Kenneth Kehl
d6bb2d8fb0 track message costs 2025-02-28 08:39:13 -08:00
ccostino
bcd872b492 Merge pull request #1546 from GSA/notify-admin-2180
add endpoint for 'recent' notifications
2025-02-27 11:16:21 -05:00
Kenneth Kehl
3bd2e1d158 fix message ratio endpoint 2025-02-24 12:29:31 -08:00
Kenneth Kehl
4a742a8873 code review feedback 2025-02-10 11:05:41 -08:00
Kenneth Kehl
88ac910d92 fix test 2025-01-31 13:13:28 -08:00
Kenneth Kehl
b5b7885ce4 fix test 2025-01-31 12:30:47 -08:00
Kenneth Kehl
6c66d66c09 update to support status dropdown 2025-01-31 11:03:35 -08:00
Kenneth Kehl
45308d5013 fix test 2025-01-30 15:11:16 -08:00
Kenneth Kehl
6d82567b0e fix test 2025-01-30 14:52:48 -08:00
Kenneth Kehl
2dc07b9cee fix test 2025-01-30 14:41:14 -08:00
Kenneth Kehl
e59e3429e4 fix test 2025-01-30 14:30:06 -08:00
Kenneth Kehl
240ec5a712 add endpoint for 'recent' notifications 2025-01-30 13:20:51 -08:00
Kenneth Kehl
025a10a906 merge from main 2025-01-16 13:22:38 -08:00
Andrew Shumway
d7c97d6428 Remove hilite imports 2025-01-16 09:05:49 -07:00
Andrew Shumway
ee90b2478d Merge branch 'main' of https://github.com/GSA/notifications-api into invite-expiration-fix 2025-01-16 08:59:38 -07:00
Andrew Shumway
f1118d6a19 Remove print statement 2025-01-16 08:59:27 -07:00
Andrew Shumway
3fd8009e33 Add error handling for possible string/datetime created at stamps 2025-01-15 12:49:47 -07:00
Kenneth Kehl
fdf6158934 merge from main 2025-01-14 12:01:46 -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
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
a2fc97000b cleanup pending notifications 2025-01-08 08:58:24 -08:00
Kenneth Kehl
0d1a98914a cleanup pending notifications 2025-01-08 08:44:49 -08:00
Kenneth Kehl
e2d64c0738 add number of notifications processed 2025-01-02 11:07:20 -08:00
Kenneth Kehl
f8e30f80b8 add performance testing debug info 2025-01-02 09:29:30 -08:00
Kenneth Kehl
4ac7c7479c merge from main 2024-12-30 09:11:11 -08:00
Cliff Hill
46ec1aafa8 Getting the IntegrityErrors to be OK if the data already exists in the
DB.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-12-26 08:52:51 -05:00
Kenneth Kehl
3c0621f472 more code review feedback 2024-12-20 08:09:19 -08:00
Kenneth Kehl
83193c221a fix fragile filter approach 2024-12-19 11:18:31 -08:00
Kenneth Kehl
3388371428 fix filter_bys 2024-12-19 11:10:03 -08:00
Kenneth Kehl
8cd0bd81f7 code review feedback 2024-12-19 07:18:14 -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
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
f706086bbf cleanup 2024-12-13 09:48:48 -08:00
Kenneth Kehl
26e53a80ba avoid message is none scenario 2024-12-13 08:43:23 -08:00
Kenneth Kehl
5ce31c78fd start writing message ids to the notifications table 2024-12-13 07:30:41 -08:00
Kenneth Kehl
14e4d761fc try to fix tests 2024-12-03 13:50:42 -08:00