Implement add feed endpoint for GTFS and GTFS-RT

未关闭
#1,864 0 条评论 1 个 reaction 已指派 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 小时
30 天内合并 PR
21

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MobilityData/mobility-feed-api 的其他 Issue

查看 MobilityData/mobility-feed-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。