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

Trip Pattern UI should freeze and block further user input after receiving a 400 from the server #243

Open
mattwigway opened this issue Jan 21, 2016 · 0 comments

Comments

@mattwigway
Copy link
Contributor

If the trip pattern ui sends a request to update a trip pattern to the server and gets back a 400 (or anything other than a 200), it should fail rather than continuing to let the user edit the trip pattern.

In #242, the backend would choke on certain updates, and the frontend would let the user continue to edit the feed, blissfully unaware that none of their edits were being saved.

The backend enforces a strict one-update-at-a-time policy in TripPattern#reconcilePatternStops, which will explode if more than one thing changes at once - so if an update has previously failed, all bets are off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant