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

Remove old API migrations #4168

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Remove old API migrations #4168

wants to merge 5 commits into from

Conversation

marrobi
Copy link
Member

@marrobi marrobi commented Dec 5, 2024

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.

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).
@marrobi
Copy link
Member Author

marrobi commented Dec 5, 2024

@tim-allen-ck hopefully this is a start, not tested etc, but please feel free to take this and iterate.

Copy link

github-actions bot commented Dec 5, 2024

Unit Test Results

607 tests   605 ✅  7s ⏱️
  1 suites    0 💤
  1 files      2 ❌

For more details on these failures, see this check.

Results for commit 5afb401.

♻️ This comment has been updated with latest results.

@marrobi marrobi requested a review from Copilot February 13, 2025 22:13
@marrobi marrobi marked this pull request as ready for review February 13, 2025 22:13
@marrobi
Copy link
Member Author

marrobi commented Feb 13, 2025

/test

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
Copy link

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13318093522 (with refid 6171e0e6)

(in response to this comment from @marrobi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove old migrations
1 participant