Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Set start/end date for all calendar entries #493

Closed
landonreed opened this issue Sep 30, 2019 · 0 comments
Closed

Feature: Set start/end date for all calendar entries #493

landonreed opened this issue Sep 30, 2019 · 0 comments

Comments

@landonreed
Copy link
Contributor

landonreed commented Sep 30, 2019

A common issue encountered when editing feeds from some other source is that there is not a good way to bulk edit calendars for a feed that has expired. Some GTFS feeds have many calendar entries (e.g., one per route) and it is tedious to attempt to update each calendar end date one by one.

We should probably come up with a framework/endpoint to do this in a generalizable way. E.g., a PATCH endpoint in EditorController.java that uses something similar to Postgrest to select rows to edit and contains a JSON object with the fields that should be updated:

PATCH /calendar?end_date=eq.20190931 HTTP/1.1

{"end_date": "20191031"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant