Commit Graph

1904 Commits

Author SHA1 Message Date
Beverly Nguyen
e5546dddbc Remove unnecessary UUID/string conversions 2025-10-28 20:44:48 -07:00
Beverly Nguyen
e6226dd82a formatting 2025-10-27 16:39:42 -07:00
Beverly Nguyen
6115e0f778 Created a dashboard endpoint combines service usage data with recent template names and primary contact emails, providing all data needed for the organization dashboard table in a single API call. 2025-10-27 16:26:03 -07:00
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
3a82ef7fd3 we don't need created_at here 2025-10-21 15:32:18 -07:00
Beverly Nguyen
09907cc4af removed the next() lookup 2025-10-21 14:50:30 -07:00
Beverly Nguyen
0267c52098 updating imports 2025-10-21 14:42:19 -07:00
Beverly Nguyen
ccec5758ec get service usage 2025-10-21 14:06:54 -07: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
Kenneth Kehl
0b7df3a237 make template_usage by month in descending order 2025-10-08 11:32:39 -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
1cef8881a8 try UserState enum 2025-08-28 11:12:49 -07:00
Alex Janousek
86458fe1a0 Added changes to support extra day in activity chart (#1928) 2025-08-25 13:28:54 -07:00
Kenneth Kehl
182664292e fix email check 2025-08-21 12:35:03 -07:00
Kenneth Kehl
ada2fcc345 remove email check 2025-08-12 10:50:28 -07:00
Beverly Nguyen
a38c642ecd add the ability to query jobs based on processed started time rather than created_at 2025-08-07 18:35:58 -07:00
Kenneth Kehl
dd42b9636c fix 2025-07-25 08:00:43 -07:00
Kenneth Kehl
839f2009f2 clear up sqlalchemy warning 2025-07-25 07:35:39 -07:00
Beverly Nguyen
0aca341805 pytest fixes 2025-06-26 17:49:17 -07:00
Beverly Nguyen
3738934374 clean up 2025-06-25 11:56:27 -07:00
Beverly Nguyen
52f8bd23de Updated the job listing query to sort by the most recent activity, so that all jobs are listed with the latest activity at the top. Previously, pending jobs (with no processing_started) could be grouped separately due to how SQL sorted NULL values. 2025-06-25 11:53:41 -07: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
5bfca4bf82 upgrade mistune 2025-03-31 09:28:35 -07:00
alexjanousekGSA
5d1e758e57 Updated BE code to breakdown stats by hour instead of day 2025-03-18 11:07:32 -04:00
Kenneth Kehl
cf3baff4cc merge from main 2025-03-11 13:21:31 -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
Kenneth Kehl
4cfb980ac6 add debug tag adr 2025-02-27 13:24:32 -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
Alex Janousek
52b0998727 Merge pull request #1569 from GSA/feat/fe-tz-change
Updated endpoint to allow hourly updates to enable utc => local time conversion
2025-02-27 10:04:15 -05:00
alexjanousekGSA
d12b188861 Fixed bug 2025-02-24 18:16:19 -05:00
alexjanousekGSA
896d26343c Fixed bug with deconstruction 2025-02-24 17:20:17 -05:00
Kenneth Kehl
3bd2e1d158 fix message ratio endpoint 2025-02-24 12:29:31 -08:00
alexjanousekGSA
aad562bb88 Fixed flake errors 2025-02-24 12:35:25 -05:00
alexjanousekGSA
9bb8b31b65 Updated backend to include stat endpoint that gives hourly results instead of daily 2025-02-24 12:26:22 -05: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
Beverly Nguyen
1fc78d81e5 Merge branch 'main' into 2199-add-pending-message-data-to-daily-and-user_daily-stats 2025-01-21 16:40:19 -08:00
Kenneth Kehl
025a10a906 merge from main 2025-01-16 13:22:38 -08:00