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

schedules: determine what to do with schedules with no trips #1242

Open
tahini opened this issue Feb 13, 2025 · 1 comment
Open

schedules: determine what to do with schedules with no trips #1242

tahini opened this issue Feb 13, 2025 · 1 comment
Labels
schedule Issues related to schedule creation and edition

Comments

@tahini
Copy link
Collaborator

tahini commented Feb 13, 2025

For example, when deleting paths from a line, it will delete the trips that were previously associated with this path. That may leave orphaned services, with no trips for this line. There will be a schedule in the schedule table and schedule periods in the periods table, but no trips.

What do we want to do with these schedules? Some options:

  • Nothing: we leave it there with 0 trip and can edit it later, if/when we want to
  • Add a warning upon saving the line: If we detect empty schedules, we can offer to keep them or delete them.
  • Automatically delete when there are no trips.

imho the last is not a good option, as the periods may have been configured and the user may want to update the schedule in the same edit session. So we need to pick between the first 2 options.

@tahini tahini added the schedule Issues related to schedule creation and edition label Feb 13, 2025
@greenscientist
Copy link
Collaborator

Is it possible to access the schedule if there's no trip associated to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schedule Issues related to schedule creation and edition
Projects
None yet
Development

No branches or pull requests

2 participants