Implement add feed endpoint for GTFS and GTFS-RT

オープン
#1,864 コメント 0 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@ianktc がすでに取り組んでいます。

2026年10月19日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
firebase, github, python
領域
api, backend, database

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
34
フォーク
7
平均マージ
2日 22時間
マージ済み PR(30日)
21

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MobilityData/mobility-feed-api のほかの issue

MobilityData/mobility-feed-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。