popstellar icon indicating copy to clipboard operation
popstellar copied to clipboard

[BUG] Valid election question names are disallowed

Open simone-kalbermatter opened this issue 2 years ago • 0 comments

Description (Actual behavior)

When typing an election question such as question 1 ending with a single digit, an error message is shown saying that duplicate questions are not allowed, even if there are no prior questions. This blocks the user from picking this election question name.

Expected behavior

Valid question names should be accepted if they are not duplicated.

How to reproduce

(This could NOT be reproduced on Nokia X20, Android 13)

  1. As organizer, click on new Election
  2. Enter election name and ballot option names
  3. In the field Question: type a name such as question 1 or question 3 ending with a single digit.
  4. See the error message blocking the submit button

Version & Environment

This bug was reproduced on:

  • Commit: c0c0af4 (release all-v1.7)
Front-ends:
  • [ ] Fe1-Web
  • [x] Fe2-Android phone
  • [ ] Not applicable
Back-ends:
  • [ ] Be1-Go
  • [ ] Be2-Scala
  • [x] Not applicable (not sure which back-end was used but this should be a front-end issue)
Environment (as applicable):
  • Device: Pierluca's phone 😄
  • OS: Android 12

Workaround

Pick another question name

Impact

The user cannot pick an election name that should be valid.

Possible root cause

A mistake in a recent PR that checks duplicate question names.

simone-kalbermatter avatar Apr 04 '23 21:04 simone-kalbermatter