Lisesoee / Unter-Taxi-Dispatcher

Rayan and Lises Unter Taxi school project. (Back-end dispatcher part)
0 stars 0 forks source link

Task: add isDispatched boolean for request and flip it the when a request has been dispatched #29

Closed Lisesoee closed 7 years ago

Lisesoee commented 7 years ago

It looks silly that the dispatched request is still on the pending request list

Lisesoee commented 7 years ago

Remember to check the boolean when inputting requests in table (similar to available taxis) and consider just deleting the table row when dispatching.

Lisesoee commented 7 years ago

The boolean now flips, but the rows still need to be deleted

Lisesoee commented 7 years ago

Realised that we never flip the isAvailable taxi boolean either, so added functionality for flipping this when placing order as well + removing the row in the js. The lines are removed even if there was an error though. I tried to delete them in the 'success' clause in the ajax-request, but its out of scope and much more difficult, and since the project is not about jQuery i decided to leave it for now. 👍 The issue is considered closed. 👍