Review feed requests in the operations API
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the endpoint definitions in OperationsAPI.yaml, then find the existing create-feed and update-feed logic that approval should reuse. Done means the list, get, approve and reject endpoints exist and work, approving an add request links the new feed to the request, approving an update applies changes to the linked feed, and only pending requests can be reviewed. The issue depends on an unresolved decision about how approved feeds reach each environment and who assigns stable IDs, so confirm that first.
Written by the indexing model from the issue text.
Description
Describe the problem
Add and update feed requests (#1864, #1865) are stored as pending and do not change any feed. There is no way to review them and apply the approved ones.
Proposed solution
Add operations API endpoints to review feed requests.
- List feed requests, filtered by type, status and feed ID, and get a single request.
- Approve a request:
add: create the GTFS or GTFS-RT feed using the existing create feed logic, and set the request's feed ID.update: apply the changes to the linked feed using the existing update feed logic.
- Reject a request with a reason.
- Set the request status to
approvedorrejectedand record who reviewed it and when. Keep the record so the feed's request history is preserved. - Allow the reviewer to edit the request payload before approving.
- Close GitHub related issue with comment.
Acceptance criteria
- Endpoints are defined in
OperationsAPI.yamland implemented. - Approving an add request creates the feed and links it to the request.
- Approving an update request applies the changes to the linked feed.
- Only
pendingrequests can be approved or rejected.
Out of scope
- Admin web UI for reviewing requests (mobilitydata-operations-web).
- Notifying the submitter and closing the GitHub issue.
Alternatives you've considered
Reviewers copy the request data into the existing create/update feed endpoints by hand. That keeps the manual step and doesn't link the feed to its request.
Additional context
Depends on the decision on how approved feeds reach every environment and who assigns stable IDs. If approval opens a PR on the catalogs repo instead of writing to the database directly, the approve step changes accordingly.
- Dominant language
- Python
- Stars
- 34
- Forks
- 7
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 21
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/mobility-feed-api
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#836 ·
Maintainers usually reply within 2 days
All issues in MobilityData/mobility-feed-api
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day