Separate init step for migrations shouldn't be necessary

オープン 初心者向け
#46 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

tutor-contrib-sample/tutorsample/plugin.py の41–52行目から始め、サンプルプラグインが通常のDjangoのマイグレーションフローにどのように含まれているかを確認します。個別のマイグレーション初期化手順が冗長であれば削除し、その後、追加の30+秒をかけずに標準の初期化中にサンプルプラグインのマイグレーションが取り込まれることを確認します。

索引モデルが issue の本文から書いたものです。

説明

The code here introduces separate tutor ... do init steps for running Django migrations for the sample plugin. This shouldn't be necessary since the plugin is installed with the rest of the Django dependencies which get picked up and migrated automatically.

Not critical, but maybe confusing, and definitely slows init down by 30+ seconds to spin up the container and run the whole no-op migration path.

https://github.com/openedx/sample-plugin/blob/ccc9a1d8fd0df178fb6bed24ff42259587b98afa/tutor-contrib-sample/tutorsample/plugin.py#L41-L52

主要言語
Python
スター
1
フォーク
4
平均マージ
3日 1時間
マージ済み PR(30日)
8

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/sample-plugin のほかの issue

openedx/sample-plugin の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。