mysociety / ceuk-marking

Other
0 stars 0 forks source link

it is possible to save multiple responses for the same question #40

Closed struan closed 4 months ago

struan commented 1 year ago

There's been a few cases where a user has saved multiple responses for the same question. These look to have happened in very close proximity which implies it's a clicking save twice issue, or similar.

The code doesn't check if there's already an answer for a question so it should probably do that and throw an error?

struan commented 8 months ago

possibly of interest: https://overtag.dk/v2/blog/duplicate-form-submissions-and-how-to-handle-them-in-django/

struan commented 4 months ago

FWIW, I've never been able to replicate the bug so I'm making assumptions about the mechanism.