-
Notifications
You must be signed in to change notification settings - Fork 155
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
Remove old API migrations #4168
base: main
Are you sure you want to change the base?
Conversation
Fixes #4079 Remove deprecated migration steps from the `migrate_database` function in `api_app/api/routes/migrations.py`. * **Migration Steps Removal** - Remove multiple deprecated migration steps from the `migrate_database` function. - Update the `migrate_database` function to only include necessary migration steps. * **Version Update** - Update the version in `api_app/_version.py` from "0.19.3" to "0.20.0". * **Test Updates** - Remove tests related to deprecated migration steps in `api_app/tests_ma/test_api/test_routes/test_migrations.py`. - Update tests to only include necessary migration steps. * **File Deletions** - Delete `api_app/db/migrations/airlock.py`. - Delete `api_app/db/migrations/resources.py`. - Delete `api_app/db/migrations/shared_services.py`. - Delete `api_app/db/migrations/workspaces.py`. - Delete `api_app/tests_ma/test_db/test_migrations/test_workspace_migration.py`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/4079?shareId=XXXX-XXXX-XXXX-XXXX).
@tim-allen-ck hopefully this is a start, not tested etc, but please feel free to take this and iterate. |
Unit Test Results607 tests 605 ✅ 7s ⏱️ For more details on these failures, see this check. Results for commit 5afb401. ♻️ This comment has been updated with latest results. |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.
Files not reviewed (4)
- api_app/db/migrations/airlock.py: Evaluated as low risk
- api_app/db/migrations/resources.py: Evaluated as low risk
- api_app/db/migrations/shared_services.py: Evaluated as low risk
- api_app/db/migrations/workspaces.py: Evaluated as low risk
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13318093522 (with refid (in response to this comment from @marrobi) |
Fixes #4079
Remove deprecated migration steps from the
migrate_database
function inapi_app/api/routes/migrations.py
.migrate_database
function.migrate_database
function to only include necessary migration steps.api_app/_version.py
from "0.19.3" to "0.20.0".api_app/tests_ma/test_api/test_routes/test_migrations.py
.api_app/db/migrations/airlock.py
.api_app/db/migrations/resources.py
.api_app/db/migrations/shared_services.py
.api_app/db/migrations/workspaces.py
.api_app/tests_ma/test_db/test_migrations/test_workspace_migration.py
.For more details, open the Copilot Workspace session.