mysociety / yournextrepresentative

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

Changing name of a candidate in a ward with reported results causes that person to disappear from the results list. #910

Open duncanparkes opened 8 years ago

duncanparkes commented 8 years ago

Editing the name of a candidate on a Ward with entered but not confirmed results causes that candidate to stop appearing in those results.

To reproduce:

  1. Go to a page to report results in a ward, such as https://candidates.democracyclub.org.uk/uk_results/posts/MTW:E05001460/report
  2. Enter correct numbers and press 'Report Results' - this takes you to the results page.
  3. Click on the name of the person whose name you want to change (I opened in a new tab)
  4. Click on the 'Edit Candidate' button
  5. Change the candidate's name and click 'Save changes' 6 Go back to the Ward results page and refresh it - the candidate with the changed name will have disappeared.
  6. Returning to the report results page, note that the candidate still appears here, and with the new name.
duncanparkes commented 8 years ago

One example of this going wrong for me - now fixed by adding results again and getting @jf1 to confirm the good ones, is

2016-05-08-003300_1366x768_scrot

which is missing the UKIP candidate, whose name I changed from 'Keith Wells' to 'Keith Frank Wells'.

duncanparkes commented 8 years ago

An example of this going wrong which I haven't fixed up is at https://candidates.democracyclub.org.uk/uk_results/posts/MTW:E05001451/

I entered the results when the UKIP candidate was called Neil Coleman, edited his name to Neil David Coleman, and now he's missing.