Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Jun 27, 2025

Description

[Provide a brief description of the changes in this PR]

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Weves Weves requested a review from a team as a code owner June 27, 2025 22:51
Copy link

vercel bot commented Jun 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 28, 2025 0:21am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Enhanced multi-tenant database migration system with new tenant management capabilities and improved process control.

  • Added backend/scripts/list_tenants.py for efficient tenant schema enumeration, enabling parallel migration processing
  • Improved backend/alembic/env.py with explicit schema targeting and range-based filtering for better control over large-scale migrations
  • Added comprehensive documentation in backend/alembic/README.md detailing new CLI options for tenant-specific migrations and batch processing
  • Introduced validation to prevent conflicting filter methods and enhanced error handling for more reliable migration execution

3 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@Weves Weves merged commit c8741d8 into main Jun 28, 2025
10 of 14 checks passed
@Weves Weves deleted the improve-mt-migration-process branch June 28, 2025 00:31
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* Improve MT migration process

* improve MT migrations

* Improve parallel migration

* Add additional options to env.py

* Improve script

* Remove script

* Simplify

* Address greptile comment

* Fix st migration

* fix run_alembic_migrations
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.

1 participant