conveyal / gtfs-editor

A web-based GTFS editing framework. THIS PROJECT IS DEPRECATED. See https://github.com/ibi-group/datatools-ui for current version.
https://github.com/ibi-group/datatools-ui
MIT License
134 stars 63 forks source link

Not able to create more stops or remove existing one in new tripPattern #259

Open j05u3 opened 7 years ago

j05u3 commented 7 years ago

My fellow at work detected one issue:

  1. Create new trip pattern (not from transitWand)
  2. Change its type to use frequency
  3. Create a new trip (schedule)
  4. Add 1 stopTime to the pattern

The next stop can't be added. (although UI shows as added, but badRequest is happening) The current stop can't be removed.

Digging into the code I came across with a line that mentioned #174

It happens that it was creating an inconsistent state in the database in which the first stop wasn't being added to the trip just created.

j05u3 commented 7 years ago

I believe that line was added only to be able to insert multiple stops at once into a pattern, so I suggest doing this sync: #260