DemocracyClub / yournextrepresentative

👥 A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk
GNU Affero General Public License v3.0
21 stars 27 forks source link

Give users the ability to split incorrectly merged candidates #2326

Open VirginiaDooley opened 1 month ago

VirginiaDooley commented 1 month ago

Ref https://github.com/DemocracyClub/yournextrepresentative/issues/646

This is an MVP to offer users the option to split candidates that have been incorrectly merged. While this MVP does not currently use version data from past merges to present options for splitting, there is code here to do that. Instead, this offers users the attributes of a given person to keep, move or do both for a new person.

There are still several design questions in comments, absolutely no tests and I appreciate the templates are still crude. But hopefully a decent place to start!

To test, navigate to a person view, even better if it is a person with election results entered as that is the context for this feature request. Find the button in the first screenshot on the right hand column.

At the moment, I've just offered users name and gender to work with; there are outstanding questions in the code about how best to present users with available fields and what to do about required fields.