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

Abierto
#522 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@MoralCode ya está trabajando en esto.

Desde el 6/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Python
Estrellas
18
Forks
33
Merge medio
2 d 16 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de chaoss/CollectOSS

Todos los issues de chaoss/CollectOSS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.