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

import: Sort realms migrations status before checking. #32866

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

PieterCK
Copy link
Collaborator

@PieterCK PieterCK commented Jan 1, 2025

This PR sorts the list of migrations to ensure the same
sets of migrations don't somehow order differently. This
has been reported to happen when importing Zulip Cloud to
self-host (zulip-cloud-current).

The order of migrations listed in migration_status.json
don't actually matter, migrations specify which other
migrations they depend on.

https://docs.djangoproject.com/en/5.1/topics/migrations/

Fixes #32826.

CZO

Screenshots and screen captures:

Self-review checklist
  • Self-reviewed the changes for clarity and maintainability
    (variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

  • Explains differences from previous plans (e.g., issue description).
  • Highlights technical choices and bugs encountered.
  • Calls out remaining decisions and concerns.
  • Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

  • Each commit is a coherent idea.
  • Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

  • Visual appearance of the changes.
  • Responsiveness and internationalization.
  • Strings and tooltips.
  • End-to-end functionality of buttons, interactions and flows.
  • Corner cases, error conditions, and easily imagined bugs.

This commit sorts the list of migrations to ensure the same
sets of migrations don't somehow ordered differently. This
has been reported to happen when importing Zulip Cloud to
self-host (zulip-cloud-current).

The order of migrations listed in `migration_status.json`
don't actually matter, migrations specify which other
migrations they depend on.

Fixes zulip#32826.
@PieterCK PieterCK force-pushed the fix-check-migrations-status branch from 9e67a69 to 8e64e3b Compare January 2, 2025 04:20
@zulipbot zulipbot added size: L and removed size: S labels Jan 2, 2025
@PieterCK PieterCK marked this pull request as ready for review January 2, 2025 04:38
@alya alya added the integration review Added by maintainers when a PR may be ready for integration. label Jan 2, 2025
@alya
Copy link
Contributor

alya commented Jan 2, 2025

@timabbott tagging for you to take a look.

@timabbott timabbott merged commit 639b291 into zulip:main Jan 3, 2025
7 checks passed
@timabbott
Copy link
Member

This is great, merged, thanks @PieterCK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when a PR may be ready for integration. size: L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version mismatch prevents import of realm data from zulipcloud to self-hosted intance
4 participants