Closed domoritz closed 9 years ago
Not every row in the CSV will fill in every column. For the example entries on the migration page, I would find a non-blank example value for each CSV column. I don't think much is gained by having all the examples be from the same row as they are currently.
I currently need to flip through the hierarchy of select boxes to find what fields are available. Why not have a single select box that uses optgroup to group options?
@jpmckinney Hi and many thanks for the comments. I'm aware of the first problem with the examples. At the time I wrote the tool, I didn't think that the examples were such an important part which is why I chose the simple way. If it makes sense to have these examples, I'll improve them. If not, I can remove the whole column.
About the second issue. This is not that simple because often these values are only suggestions and you can define your own name in the text field. However, I find your idea great. I could use optgroups where only a few options are available and otherwise show a "custom" entry and a text input when you click on it.
@domoritz for the position creation form I've used http://ivaynberg.github.com/select2/ - which would probably work very well for this too. It makes it easy to select from an existing value, or create a new one. I'm meaning to switch most of the admin UI over to using it.
@evdb I had the same in mind ;-) However, it does not help with defining two values (the group and the name).
The migration tool was removed in https://github.com/mysociety/popit/pull/371. The plan is to point people who want to import from CSV to http://everypolitician.org. Therefore closing this ticket.
With Issue #95 a first version of the migration tool has been build. An improved version will follow which will be based on feedback on the first version.