Implement add feed endpoint for GTFS and GTFS-RT

Abierto
#1,864 0 comentarios 1 reacción 1 asignado Ver en GitHub

Los mantenedores suelen responder en 2 días

@ianktc ya está trabajando en esto.

Desde el 19/10/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
firebase, github, python
Área
api, backend, database

Línea de trabajo

Start with the writeToSheet Firebase function, since its GitHub issue creation is the behaviour to keep, and with the OpenAPI spec, where the new endpoint must be defined. The feed request table goes in a new Liquibase changeset. Done means a GTFS or GTFS-RT POST stores a pending add request linked to the user ID and a GitHub issue, returns the request ID, and writes nothing to the spreadsheet. This issue is design-heavy and shares its model with the update feed request issue, so check with maintainers before starting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement
Describe the problem

Feed submissions from the website go through the writeToSheet Firebase function. It writes to a spreadsheet and opens a GitHub issue. The submission only reaches the database after manual steps, which slows down publication and causes errors.

Proposed solution

Add an endpoint to the public API that accepts new GTFS and GTFS-RT feed submissions and replaces writeToSheet.

  • Store the submission as a feed request of type add with status pending. Attach the user ID to the request.
  • Do not create the feed yet. The feed is created when the request is approved.
  • Create the GitHub issue the same way it is done today and link it to the request.
  • Do not write to the spreadsheet.
  • Validate the request body and return the created request ID.

The feed request model and endpoint are shared with the update feed request issue (#), so both can be built as part of the same work.

Acceptance criteria

  • Feed request table added via Liquibase (type, status, payload, user ID, feed ID, GitHub issue URL, timestamps).
  • Endpoint is defined in the OpenAPI spec and implemented.
  • GTFS and GTFS-RT submissions create a pending add request.
  • A GitHub issue is created for each submission.

Out of scope

  • Approving a request and creating the feed from it.
  • Update the web app to call the new endpoint, then retire writeToSheet. This will be done in its own issue when all required issues are addressed.
Alternatives you've considered
  • Keep writeToSheet and sync from the spreadsheet to the database. This keeps the spreadsheet as an extra step.
  • Create the feed directly with operational status wip. This puts unreviewed submissions in the feed table and spreads wip filtering across queries.
Additional context

No response

Lenguaje dominante
Python
Estrellas
34
Forks
7
Merge medio
2 d 22 h
PR fusionados (30 d)
21

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 MobilityData/mobility-feed-api

Todos los issues de MobilityData/mobility-feed-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.