[QTI] Make unstable's migration graph match the migrations applied in production
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 20/100
調査の方向性
The issue identifies the migration graph and the relevant migrations: 0168_alter_assessmentitem_type, 0169_invitation_organization, and the leaf migrations named in the acceptance criteria. Read those migration files and Django’s migration documentation, then check the production and unstable histories described here. Done means both histories migrate successfully and makemigrations --check reports no changes; the issue says it is not open for contribution.
索引モデルが issue の本文から書いたものです。
説明
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
As unstable stands today, the QTI release will fail to deploy at migrate, so unstable's migration graph needs to match what production has applied.
- Production has applied
0168_alter_assessmentitem_typeon top of0167_file_size_bigint_expand. - Unstable's copy of 0168 depends on
0167_add_organization, which production has never applied. - Django refuses to migrate a database where an applied migration has an unapplied dependency, and raises
InconsistentMigrationHistory.
Part of #6337. Starts after the hotfixes → unstable merge that brings in 0169_file_size_bigint_swap, so it can be tested against production's full history. Must be in unstable before the QTI release is cut.
Complexity: Low
Target branch: unstable
Context
master/hotfixes:0166→0167_file_size_bigint_expand→0168_alter_assessmentitem_type→0169_file_size_bigint_swap.unstable:0166→0167_add_organization→0168_alter_assessmentitem_type→0169_invitation_organization.- On unstable,
0170_merge_20260717_0136merges0167_file_size_bigint_expandwith0169_invitation_organization. 0169_file_size_bigint_swapalso depends on 0168, and reaches unstable with the next hotfixes → unstable merge.- That merge leaves two leaf migrations, so the merge PR must add a merge migration: Django refuses to migrate without one, and CI's
makemigrations --checkfails. - The conflict is in unstable today. The hotfixes → unstable merge doesn't cause it, and doesn't fix it.
The Change
- Point unstable's 0168 back to
0167_file_size_bigint_expand, as in production. - Make
0169_invitation_organizationalso depend on0167_add_organization. It adds a foreign key toOrganization, and once 0168 stops depending on0167_add_organization, nothing else makes that table exist first.
Decisions
- Why change unstable's migrations, and not production's
django_migrationstable? It keeps the deploy free of manual steps.
Known gaps
- Local databases last migrated on
unstablebefore0170_merge_20260717_0136have unstable's 0168 applied without0167_file_size_bigint_expand, so they raiseInconsistentMigrationHistoryafter this change. Migrating them before pulling it, or resetting them, fixes that.
Acceptance Criteria
-
migratesucceeds on a database with production's history (0167_file_size_bigint_expand,0168_alter_assessmentitem_typeand0169_file_size_bigint_swapapplied) -
migratestill succeeds on a database that is already on unstable's history through0170_merge_20260717_0136 -
makemigrations --checkreports no changes
AI usage
Claude found this while comparing the migrations on
master,hotfixesandunstable, and drafted the issue, which I then checked and corrected for accuracy.
- 主要言語
- Python
- スター
- 212
- フォーク
- 321
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
Community library status changes don't update `date_updated`対応中かも @ArpitaSamanta10 が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
learningequality/studio#6414 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
learningequality/studio#6410 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
learningequality/studio#6409 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6407 ·
メンテナーはふだん 1 日以内に返信
-
Stripe webhook accepts events when no webhook secret is configured対応中かも @adibmbrk が今日担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6404 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
canonical/paas-charm#407 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
メンテナーはふだん 1 日以内に返信
-
enhancement tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
`read_nexus` entry point points to a function that no longer exists対応中かも @RubelMozumder が今日担当しました。 オープンannotator bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
FAIRmat-NFDI/pynxtools#876 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retrying対応中かも @yipinghuang1991 が今日担当しました。 オープンcomp/agent P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#156837 ·
メンテナーはふだん 1 日以内に返信