Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Implement update feed endpoint for GTFS and GTFS-RT

Aperta
#1,865 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
firebase, github, openapi, python
Ambito
api

Direzione di ricerca

Start with the existing writeToSheet Firebase function to see how update requests and GitHub issue creation work today, and with the operations API PUT to see how feed data is validated. Define the new public endpoint in the OpenAPI spec, then implement it so it validates the feed and request body and stores a pending update request linked to the feed and user without modifying the feed or the spreadsheet. Done when a request for a GTFS or GTFS-RT feed creates a pending record and a linked GitHub issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the problem

Update requests for existing feeds come from the website through the writeToSheet Firebase function. The team then applies the changes by hand. The operations API PUT is an internal admin tool and is not meant for contributor-submitted changes.

Proposed solution

Add an endpoint to the public API that accepts update requests for existing GTFS and GTFS-RT feeds.

  • Validate that the feed exists and validate the request body.
  • Store the submission as a feed request of type update with status pending, linked to the existing feed. Attach the user ID to the request.
  • Do not change the feed. The changes are applied 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.

Acceptance criteria

  • Endpoint is defined in the OpenAPI spec and implemented.
  • Update requests for GTFS and GTFS-RT feeds create a pending update request linked to the feed and the user.
  • A GitHub issue is created for each update request.

Out of scope

  • Approving a request and applying the changes to the feed.
  • 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

Extend the operations API PUT to handle contributor updates. That mixes admin edits with contributor requests that still need review.

Additional context

No response

Lingua principale
Python
Stelle
34
Fork
7
Merge medio
12h 7m
PR unite (30g)
7

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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

Tutte le issue di MobilityData/mobility-feed-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.