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

Aperta
#522 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MoralCode ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Python
Stelle
18
Fork
33
Merge medio
2g 16h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chaoss/CollectOSS

Tutte le issue di chaoss/CollectOSS

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.