john / drive.vote

Drive the Vote arranges free rides to the polls on election day.
https://www.drive.vote/
14 stars 7 forks source link

Dispatchers can edit rides #1085

Closed john closed 6 years ago

john commented 6 years ago

A big PR that's hopefully not as scary as it looks. The intent is to let dispatchers edit rides. That's complicated by the fact that rides are created out of conversations, due to the SMS legacy of DtV. Rides also reflect data from User objects, so when a ride is edited, it needs to sync the edits across those three objects/tables.

This should get DRY'd up after the election (there are two rides controllers, for example, which should be consolidated), but for now wanted to reduce the number of changes.

Closes #1083. This was undertaken to address 1037 but it doesn't completely close it--you can edit rides from this page, but not assign them.

update, also closes #1087