Implement add feed endpoint for GTFS and GTFS-RT
维护者通常 2 天内回复
@ianktc 已经在做这个了。
开始于 2026年10月19日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
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 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 34
- 派生
- 7
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 21
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MobilityData/mobility-feed-api 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
MobilityData/mobility-feed-api#1927 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
MobilityData/mobility-feed-api#1846 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
MobilityData/mobility-feed-api#1755 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
MobilityData/mobility-feed-api#1647 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
MobilityData/mobility-feed-api#836 ·
维护者通常 2 天内回复
查看 MobilityData/mobility-feed-api 的全部 Issue
相似的 Issue
-
triage
难度 1/5 1-3 小时 新手友好度 88/100
kornia/kornia-rs#1416 · 1 条评论 ·
维护者通常 2 天内回复
-
ui
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
PolicyEngine/ai-inequality#64 ·
维护者通常 1 天内回复
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over time可能已有人在做 @PabloRoque 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
pymc-devs/pymc-extras#839 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复