Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VxDesign: Fix bug for primary elections #4400

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

jonahkagan
Copy link
Collaborator

Overview

Fixes: #4063

There was a well-intentioned assertion guarding against an edge case in primary elections where there were no partisan contests (which would result in no ballot styles being generated). The intention was to explain to the user why there were no ballot styles in that case. However, crashing the app until partisan contests are added prevents the user from being able to address the issue, so it was not a good solution.

Demo Video or Screenshot

N/A

Testing Plan

Manual test

Checklist

  • I have added logging where appropriate to any new user actions, system updates such as file reads or storage writes, or errors introduced.
  • I have added a screenshot and/or video to this PR to demo the change
  • I have added the "user_facing_change" label to this PR to automate an announcement in #machine-product-updates

There was a well-intentioned assertion guarding against an edge case in
primary elections where there were no partisan contests (which would
result in no ballot styles being generated). The intention was to
explain to the user why there were no ballot styles in that case.
However, crashing the app until partisan contests are added prevents the
user from being able to address the issue, so it was not a good
solution.
@jonahkagan jonahkagan requested review from arsalansufi and eventualbuddha and removed request for arsalansufi December 12, 2023 20:30
@jonahkagan jonahkagan merged commit f1e2f0d into main Dec 13, 2023
49 checks passed
@jonahkagan jonahkagan deleted the jonah/fix-design-primary-bug branch December 13, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: VxDesign crashes when creating a primary from scratch
2 participants