Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate db migrations #144

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c0621f7
Remove code not currently in use on feature branch
steventux Jan 6, 2025
b12ece2
Add Flask dependencies
steventux Jan 6, 2025
df390a2
Add basic Flask app
steventux Jan 6, 2025
51b3f02
Add function app which delegates requests to Flask
steventux Jan 6, 2025
99bc84d
Test Flask app in CI
steventux Jan 6, 2025
62883dc
Revise Dockerfile/compose.yml for one function app with db
steventux Jan 7, 2025
52f7f9e
alembic init
dnimmo Jan 9, 2025
6403908
Add Flask dependencies
steventux Jan 6, 2025
4757e84
Add basic Flask app
steventux Jan 6, 2025
b40ad35
Add function app which delegates requests to Flask
steventux Jan 6, 2025
557764d
Test Flask app in CI
steventux Jan 6, 2025
6f47c02
Revise Dockerfile/compose.yml for one function app with db
steventux Jan 7, 2025
8e618ff
added alembic for migrations
dnimmo Jan 14, 2025
7148b32
alembic init
dnimmo Jan 9, 2025
3af3ccf
added alembic for migrations
dnimmo Jan 14, 2025
b87b43e
updated lockfile
dnimmo Jan 14, 2025
c53cc53
Add pytest-sugar
steventux Jan 14, 2025
b8d65b1
Add request verifier
steventux Jan 14, 2025
f02ddb9
Access headers with lowercase keys
steventux Jan 14, 2025
5e96744
Add POST status create endpoint
steventux Jan 14, 2025
fe893c3
Add jsonschema validation library
steventux Jan 14, 2025
8364991
Validate request body data against NHS Notify schema
steventux Jan 15, 2025
803059a
Move status endpoints to route handlers
steventux Jan 15, 2025
d6209cd
Update name of healthcheck route function to match path
steventux Jan 15, 2025
ea4fbdd
Merge pull request #140 from NHSDigital/add-status-endpoint-to-flask
steventux Jan 15, 2025
2bef605
Ensure local test runs use test db
steventux Jan 16, 2025
5a8f46f
Add status recorder service
steventux Jan 16, 2025
e1126d1
Use psycopg2 sql.Identifier to safely interpolate the table name
steventux Jan 16, 2025
9722944
Add FLASK_DEBUG env vars
steventux Jan 16, 2025
acf0110
Extract hmac signature generation
steventux Jan 16, 2025
24ffac4
Read the post body as json and ensure key sorting is consistent
steventux Jan 16, 2025
372eb62
Truncate all tables after each test
steventux Jan 16, 2025
4263a47
Return useful error descriptions in the status/create response
steventux Jan 16, 2025
ec5d825
Add postgres to CI test jobs
steventux Jan 16, 2025
a427e07
PR comments
dnimmo Jan 17, 2025
8a8f8e3
Merge branch 'feature-flask-and-function-apps' of https://github.com/…
dnimmo Jan 20, 2025
385c076
file formatting fixes for auto-generated alembic init
dnimmo Jan 20, 2025
9ef879a
removed schema.hcl
dnimmo Jan 20, 2025
8d415f5
re-add schema.hcl
dnimmo Jan 20, 2025
df1c138
DTOSS-6505 update Pipfile
dnimmo Jan 20, 2025
e0ef3d4
replace print with logger
dnimmo Jan 20, 2025
97472a4
Refactor persistence tests
steventux Jan 20, 2025
afa461f
Merge pull request #142 from NHSDigital/persist-status-callback-requests
steventux Jan 21, 2025
46476d6
Merge pull request #139 from NHSDigital/DTOSS-6505
dnimmo Jan 21, 2025
a2a5763
Add sqlalchemy_utils dependency
steventux Jan 21, 2025
c2ae0cb
Add alembic_postgresql_enum dependency
steventux Jan 21, 2025
a6f87ff
Refactor schema for batch message endpoint
steventux Jan 21, 2025
4ae3227
Remove schema initialisation from database module
steventux Jan 22, 2025
86dff02
Run alembic upgrade head on test CI dbs
steventux Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add jsonschema validation library
steventux committed Jan 15, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fe893c35a8ff0ffabddac1c738068533f45a0176
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ urllib3 = "==2.2.3"
exceptiongroup = "*"
psycopg2-binary = "*"
flask = "*"
jsonschema = "*"

[dev-packages]
anyio = "==4.6.2.post1"
144 changes: 143 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.