Implement add feed endpoint for GTFS and GTFS-RT
Maintainer thường phản hồi trong vòng 2 ngày
@ianktc đang làm issue này rồi.
Từ ngày 19/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 34
- Fork
- 7
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MobilityData/mobility-feed-api
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#836 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MobilityData/mobility-feed-api
Issue tương tự
-
ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: MSYS2 jobs fail — mingw python3 package renamed upstream to pythonCó thể đã có người làm @ronaldtse đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pydantic/pytest-examples#102 · 1 bình luận ·