add a startup task to populate `forge_instances` on startup if none are configured

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

メンテナーはふだん 1 日以内に返信

@MoralCode がすでに取り組んでいます。

2026年10月6日 から。

評価

この issue はまだ評価されていません。

説明

database

preflight.py needs a function that can conditionally populate data at startup.

This would be used to populate instance entries in the new forge_instances table (#293) because, after #132 is resolved, new instances will not replay the migrations on initialization, and thus will need their own mechanism to populate this and other data that makes this issue a blocker.

This startup population mechanism should only really be used for the GitHub and GitLab forges for historical reasons. Other forges should be configured by the user.

Both methods of populating forge_instances (this and the migration) should initially populate the same data (including privacy information - #521), however this startup check mechanism to guard against starting up with zero forges configured may be updated, such as when future privacy policy reviews are completed by the maintainers.

This data population mechanism at startup can (and should) also be reused to provide things like default repos (to resolve #34) when the new database initialization comes about.

主要言語
Python
スター
18
フォーク
33
平均マージ
2日 16時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

chaoss/CollectOSS のほかの issue

chaoss/CollectOSS の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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