You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if once a ride has been offered by a driver, and that ride's time is in the past, the driver will be prompted to give feedback on the ride (e.g. was it on time, did you have to use the parking permit etc). However, sometimes rides can be cancelled at the last minute - e.g. the client gets sick and can't go anymore. However, once the time of the ride has passed, our system assumes that the ride has happened, and the driver is prompted to enter feedback for the ride - they're able to say that the ride did not happen at all, but we still end up setting it as "complete", which isn't really true, it should be set as "cancelled". Because it gets set wrong, reporting and so forth ends up being incorrect for these rides.
In this case we need to mark the ride as "CANCELLED" instead of "ENDED".
How to do it
When the form gets submitted, it's submitted to the /api/rides/{rideId}/complete endpoint, which you'll find the code for here.
We'll need to change the way that the status gets set so that if the new "Ride did not go ahead" value is chosen, the status will be set to CANCELLED rather than ENDED.
The line of code that does this currently is here. It needs to be changed to be something like:
Log in as an account that has both driver and facilitator roles
Make a new ride, as close to the current time as possible, with a client whose preferences allow your account to pick up the ride (i.e. if your account is marked as having an SUV, don't make a ride for a client who prefers no SUV)
Once you've made the ride, immediately go to "Find a ride" and accept the one that you just created
Wait until the ride time is in the past
Open the ride and click "Complete the ride"
Fill out the form and select "Did NOT happen at all" under "Tell us about the pickup" (fill out the rest of the form with whatever you like) and submit
Go back to the "edit rides" page and check that the ride is marked as "CANCELLED" rather than "ENDED"
Regression test
Do all the steps above, but select something other than "Did NOT happen at all" (e.g. "On time"), and make sure that the ride is marked as "ENDED" and not "CANCELLED"
The text was updated successfully, but these errors were encountered:
AlexGilleran
changed the title
[WIP] Allow a ride to be set as "Cancelled" during driver feedback
Allow a ride to be set as "Cancelled" during driver feedback
Aug 20, 2022
Currently, if once a ride has been offered by a driver, and that ride's time is in the past, the driver will be prompted to give feedback on the ride (e.g. was it on time, did you have to use the parking permit etc). However, sometimes rides can be cancelled at the last minute - e.g. the client gets sick and can't go anymore. However, once the time of the ride has passed, our system assumes that the ride has happened, and the driver is prompted to enter feedback for the ride - they're able to say that the ride did not happen at all, but we still end up setting it as "complete", which isn't really true, it should be set as "cancelled". Because it gets set wrong, reporting and so forth ends up being incorrect for these rides.
In this case we need to mark the ride as "CANCELLED" instead of "ENDED".
How to do it
When the form gets submitted, it's submitted to the
/api/rides/{rideId}/complete
endpoint, which you'll find the code for here.We'll need to change the way that the status gets set so that if the new "Ride did not go ahead" value is chosen, the status will be set to
CANCELLED
rather thanENDED
.The line of code that does this currently is here. It needs to be changed to be something like:
To test
Regression test
Do all the steps above, but select something other than "Did NOT happen at all" (e.g. "On time"), and make sure that the ride is marked as "ENDED" and not "CANCELLED"
The text was updated successfully, but these errors were encountered: