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

未关闭
#522 0 条评论 0 个 reaction 已指派 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 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

chaoss/CollectOSS 的其他 Issue

查看 chaoss/CollectOSS 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。