Implement add feed endpoint for GTFS and GTFS-RT
I maintainer di solito rispondono entro 2 giorni
@ianktc ci sta già lavorando.
Dal 19/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
addwith statuspending. 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
pendingadd 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
writeToSheetand 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 thefeedtable and spreadswipfiltering across queries.
Additional context
No response
- Lingua principale
- Python
- Stelle
- 34
- Fork
- 7
- Merge medio
- 2g 22h
- PR unite (30g)
- 21
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MobilityData/mobility-feed-api
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MobilityData/mobility-feed-api#1927 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
MobilityData/mobility-feed-api#1846 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
MobilityData/mobility-feed-api#1755 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MobilityData/mobility-feed-api#1647 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MobilityData/mobility-feed-api#836 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di MobilityData/mobility-feed-api
Issue simili
-
ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
I maintainer di solito rispondono entro 1 giorno
-
CI: MSYS2 jobs fail — mingw python3 package renamed upstream to pythonForse già presa @ronaldtse l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
pydantic/pytest-examples#102 · 1 commento ·