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

New trip creation: should populate other fields too #10

Closed
answerquest opened this issue Apr 13, 2018 · 3 comments
Closed

New trip creation: should populate other fields too #10

answerquest opened this issue Apr 13, 2018 · 3 comments
Labels
housekeeping optimizing things, actions to prevent future problems
Milestone

Comments

@answerquest
Copy link
Collaborator

Current fields list for trips table: route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id,wheelchair_accessible

Of these, in the Schedules page when we create a new trip, only route_id and trip_id is populated. Also, at present they are filled by text input, whereas some of these should be fixed values depending on other tables (like service_id). It can cause trouble if saved without populating properly.

@answerquest answerquest added the housekeeping optimizing things, actions to prevent future problems label Apr 13, 2018
@answerquest
Copy link
Collaborator Author

One way to solve: Load all service_ids, shape_ids on page load, and make these as available options for when new trip is created. If needed, make a modal popup like shapefile upload feature where these selections have to be done by user. It would be great if along with the ids, more information would come esp for service_id : like which days of week, start end dates. Heck, load the whole calendar table on, it's so small anyways.

@answerquest
Copy link
Collaborator Author

For shape_id : if it has been finalized for that route in Routes page (ie, saved in sequence db), then assign that shape_id by default, depending on which direction_id the user picks. If not, then like in Routes page, mark which shape_id's are being used by other trips on that route+direction and then list the others. Explore ways to preview the shape. (spawn a popup window?)

@answerquest answerquest added this to the v1.4.0 milestone Apr 25, 2018
@answerquest
Copy link
Collaborator Author

Structured new trip creation so that most of the Shedules > Most of the trips table is now pre-filled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping optimizing things, actions to prevent future problems
Projects
None yet
Development

No branches or pull requests

1 participant