Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Tally report #747

Merged
merged 19 commits into from
Oct 7, 2019
Merged

Tally report #747

merged 19 commits into from
Oct 7, 2019

Conversation

beausmith
Copy link
Contributor

@beausmith beausmith commented Sep 26, 2019

Tasks:

  • create zero-count tally logic
  • update tally logic
  • only update tally in VxPrint and VxMark+Print.
  • Print Tally Report when Poll Worker Opens/Closes VxPrint

Fixes #737

@netlify
Copy link

netlify bot commented Sep 26, 2019

Deploy preview for vw-bmd ready!

Built with commit 2e6064c

https://deploy-preview-747--vw-bmd.netlify.com

@beausmith beausmith force-pushed the tally-report branch 2 times, most recently from 1559d86 to 57be16e Compare September 26, 2019 09:15
Copy link
Contributor

@eventualbuddha eventualbuddha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitting initial comment now, will add more in a bit.

src/AppRoot.tsx Outdated Show resolved Hide resolved
@beausmith beausmith force-pushed the tally-report branch 4 times, most recently from ed83441 to da9b82c Compare October 1, 2019 05:48
@beausmith beausmith marked this pull request as ready for review October 1, 2019 05:50
@beausmith beausmith force-pushed the tally-report branch 2 times, most recently from bc592ca to 8c3f8f7 Compare October 1, 2019 17:48
@beausmith beausmith mentioned this pull request Oct 1, 2019
@beausmith beausmith force-pushed the tally-report branch 3 times, most recently from 1a52cc8 to b05c941 Compare October 2, 2019 06:32
Copy link
Contributor

@benadida benadida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of changes suggested, in particular please take a look at the district-666 which I think is unnecessary and possibly incorrect, but otherwise good to go.

src/AppEndToEnd.test.tsx Show resolved Hide resolved
src/AppMarkVoterCardInvalid.test.tsx Show resolved Hide resolved
src/data/electionSample.json Show resolved Hide resolved
src/pages/ClerkScreen.tsx Show resolved Hide resolved
src/pages/PollWorkerScreen.test.tsx Outdated Show resolved Hide resolved
src/pages/PrintOnlyScreen.tsx Outdated Show resolved Hide resolved
@beausmith
Copy link
Contributor Author

All @benadida's feedback has been addressed/fixed. Awaiting @eventualbuddha review.

src/AppRoot.tsx Outdated Show resolved Hide resolved
src/AppRoot.tsx Outdated Show resolved Hide resolved
src/config/types.ts Outdated Show resolved Hide resolved
src/config/types.ts Outdated Show resolved Hide resolved
@beausmith
Copy link
Contributor Author

@eventualbuddha - If you're happy with this PR, please feel free to merge it.

beausmith and others added 19 commits October 7, 2019 09:21
This changes the types for the candidate and yesno tallies from arrays into objects. For candidate contests, it splits the former single array that contained both write-ins and ballot candidates into separate properties on an object. For yesno contests, instead of a 2-element tuple we now have an object with "yes" and "no" properties.

I think this is simpler and requires less casting. It also adds a few assertions for situations which shouldn't happen but otherwise might silently fail.
This was incorrectly removed by eslint-plugin-react v7.15.x due to a bug. It's been fixed in jsx-eslint/eslint-plugin-react#2437, so this commit updates eslint-plugin-react and re-adds the whitespace.
@eventualbuddha
Copy link
Contributor

@eventualbuddha - If you're happy with this PR, please feel free to merge it.

Will do.

@eventualbuddha eventualbuddha merged commit 4c66c6d into master Oct 7, 2019
@beausmith beausmith deleted the tally-report branch January 8, 2020 19:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Precinct Tally Report
3 participants