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

Double names in Dispatcher 'Driver' Tab #1062

Closed smarbin closed 6 years ago

smarbin commented 6 years ago

Most, but not all drivers are duplicates in this view. The first and last appear to be unique. This comes from the page: https://staging.drive.vote/dispatch/orlando/drivers

download

smarbin commented 6 years ago

Must be related. There are also some double names in the Admin Driver tab e.g. from this page: https://staging.drive.vote/admin/drivers?q=danny Two of these are duplicates. The other two are unique. screen shot 2018-10-26 at 11 19 01 pm

john commented 6 years ago

I think it's likely that there are actual double entries in the DB, so may be more likely sloppy data in staging than a bug--we have a file called 'seeds' that can be used to populate your local env with test data, looks like it was run multiple times on staging.

I'll check the DB directly right now, @smarbin we can sync before your next training (but not the one in 20 minutes, don't want to surprise you) about cleaning the staging data so it's easier to use and understand.

john commented 6 years ago

Spent some time mucking in the DB, confirmed that the data is hot mess from all the banging on it we've done. In particular it looks like someone, probably me, re-ran the import of seed data into at some time, resulting in some duplicates.

I'm going to close this, because I don't think it's a code bug. But we can wipe staging if you want and set it up with new data--though maybe that's not necessary since you created the new RZs, @smarbin. Let me know.

smarbin commented 6 years ago

Ok sounds like it's not necessary, thanks for checking it out!