Commit Graph

11898 Commits

Author SHA1 Message Date
Carlo Costino
469103d4f1 Make sandbox deployments easier
This changeset makes a few adjustments to our sandbox environment config to make the sandbox deployments of the API much easier.  It does this with the following:

* Adds a few environment variable values to the sandbox.yml file to cover the ones that were not there previously
* Adds a new script that can be run in place of memorizing any commands
* Adds documentation on how to configure and run the sandbox environment

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-12 21:50:27 -05:00
Kenneth Kehl
f9b564264a Merge pull request #1412 from GSA/connection_count
put max connections back to 10
2024-11-12 11:15:16 -08:00
Kenneth Kehl
d89f1206d5 put max connections back to 10 2024-11-12 09:38:21 -08:00
Steven Reilly
1d5e54e2b7 Merge pull request #1407 from GSA/document-feature-flag
Added section about feature flagging
2024-11-08 15:45:35 -05:00
Carlo Costino
28d8469bbb Merge pull request #1386 from GSA/USN-COMPLY-51-Verify_State
Verify state for login.gov
2024-11-07 14:17:56 -05:00
Carlo Costino
cc30e7d55a Merge pull request #1405 from GSA/no-attribute-day-bug
No attribute day bug
2024-11-07 13:58:39 -05:00
alexjanousekGSA
1af2a42742 Added section about feature flagging 2024-11-07 12:24:34 -05:00
Andrew Shumway
e8150c69df Merge branch 'main' of https://github.com/GSA/notifications-api into no-attribute-day-bug 2024-11-07 09:46:13 -07:00
Andrew Shumway
6df7a218a7 Remove scalars from execute and add test coverage 2024-11-07 09:45:56 -07:00
Cliff Hill
1571143012 Resend invites works.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-07 09:56:09 -05:00
Cliff Hill
70404a2a8b Invites are now working.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-07 08:37:55 -05:00
Cliff Hill
958c3cd61e Trying to get invites to flow correctly.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 16:03:50 -05:00
Cliff Hill
f95738a763 Getting all the needed data in place.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 14:30:57 -05:00
Carlo Costino
33e651762e Merge pull request #1402 from GSA/adjust-celery-worker-memory
Adjust Celery worker memory
2024-11-06 12:44:59 -05:00
Carlo Costino
2b76ac95d8 Adjust Celery worker memory
The Celery workers are not using as much memory as we had been anticipating, and we are also hitting our memory quota.  This adjusts them down a bit to free up a bit more.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-06 11:42:58 -05:00
Steven Reilly
0d80c61574 Merge pull request #1400 from GSA/bump-prod-app-memory
Bump production app memory to 3 GB
2024-11-06 10:14:50 -05:00
Steven Reilly
d6de91edb6 Merge pull request #1399 from GSA/moving_multiprocessing_manager
Moving the Job Cache to the flask app's config
2024-11-06 10:14:33 -05:00
Cliff Hill
017406cbb6 Fixing tests, and resend invites endpoint.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 08:09:03 -05:00
Cliff Hill
123aa7129b Making state be validated.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 08:09:03 -05:00
Cliff Hill
c800fbc2b0 Removing unused code.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 08:09:03 -05:00
Cliff Hill
e80029e5f0 Properly handling and validating the state for login.gov
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-06 08:09:03 -05:00
Carlo Costino
e2956e2818 Bump production app memory to 3 GB
This changeset bumps our production app memory for the API to 3 GB available in anticipation of the shift of the job cache being managed by the application itself instead of a worker process.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-05 21:55:14 -05:00
Cliff Hill
ec8ee67ee9 Logging job_cache actions, to see what's going on.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-05 17:33:30 -05:00
Cliff Hill
50754d92c4 Flake8 stuff.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-05 17:25:58 -05:00
Cliff Hill
5a9b867d7a Sticking the job cache into the flask app's config, in an effort to
improve/fix things.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-11-05 17:21:14 -05:00
Carlo Costino
54222f3dbb Merge pull request #1397 from GSA/stvnrlly/max-pool-7
set max_pool_connections to 7
2024-11-05 15:28:23 -05:00
Steven Reilly
45995b3139 set max_pool_connections to 7 2024-11-05 15:21:13 -05:00
Steven Reilly
165042b37c Merge pull request #1387 from GSA/increase-worker-resources
Increase Celery resources
11-04-2024
2024-11-04 12:32:18 -05:00
Carlo Costino
5141612705 Increase Celery resources
This changeset increases the number of Celery workers available to our app in the production environment.  It also bumps the amount of memory available to them to 3G each.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-11-04 12:22:30 -05:00
Cliff Hill
38c566e8c7 Merge pull request #1384 from GSA/reduce_connections
reduce number of pool connections
2024-11-01 13:39:22 -04:00
Kenneth Kehl
625f25fe6a reduce number of pool connections 2024-10-31 08:07:54 -07:00
Kenneth Kehl
05e268ad98 Merge pull request #1374 from GSA/notify-api-1324
refactor miscellaneous daos and utilities
2024-10-30 13:51:09 -07:00
Carlo Costino
a0e8828500 Merge pull request #1379 from GSA/API-1328_Logging_Formatter_With_Scrub
API-1328 - Using a custom formatter to scrub PII from all log records.
2024-10-30 13:43:00 -04:00
Cliff Hill
7c17427074 Black
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-10-30 11:48:13 -04:00
Cliff Hill
c3e249a962 Compiling email regex.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-10-30 11:44:45 -04:00
Cliff Hill
50812b5a57 Attempting to fix security vulnerability that was found.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-10-30 09:27:39 -04:00
Cliff Hill
0843134da7 Black.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-10-30 09:12:25 -04:00
Cliff Hill
dc59937e60 Using re.compile().
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-10-30 09:09:39 -04:00
Kenneth Kehl
c0ed18cd49 merge from main 2024-10-29 14:29:39 -07:00
Kenneth Kehl
57df2f6d96 code review feedback 2024-10-29 14:29:25 -07:00
Carlo Costino
99c199b9d2 Merge pull request #1376 from GSA/notify-api-1351
increase code coverage to 94%
2024-10-29 17:08:00 -04:00
Kenneth Kehl
0b7079edd9 code review feedback 2024-10-29 13:30:41 -07:00
Steven Reilly
c85d35191f Merge pull request #1364 from GSA/notify-api-1322
update billing dao
2024-10-29 15:42:26 -04:00
Kenneth Kehl
e5117bb969 merge from main 2024-10-29 12:20:46 -07:00
Kenneth Kehl
600e5938fe merge from main 2024-10-29 07:32:46 -07:00
Kenneth Kehl
4d276ad4fe hmmm 2024-10-28 14:20:54 -07:00
Kenneth Kehl
61cf576faf hmmm 2024-10-28 14:01:06 -07:00
Kenneth Kehl
9aa8aa8e1b merge from main 2024-10-28 13:42:43 -07:00
Kenneth Kehl
f782f1ec64 Merge pull request #1360 from GSA/notify-api-1321
upgrade service daos to sqlalchemy 2.0
2024-10-28 13:41:43 -07:00
Kenneth Kehl
1c04291a49 merge from main 2024-10-28 13:26:37 -07:00