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

Improvements to Inactive Ballot tracking, and corrected reporting of undervotes #857

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

artoonie
Copy link
Collaborator

@artoonie artoonie commented Jun 25, 2024

This was originally designed to handle both #780 and #854. However, #854 has additional questions and has been deferred out of 2.0.

Still, this PR made some improvements that resolved #780 in a nice way, so I'm modifying this PR to just resolve #780 without the "partially ranked" vs "fully ranked" split in #854.

Therefore, this PR has code that is outside of the scope of #780 but makes it easy to accomplish #854 in the future -- things like tracking whether a ballot used all of its known rankings.

@artoonie artoonie force-pushed the feature/issue-854_inactive-split branch 2 times, most recently from 75341aa to f293caa Compare June 25, 2024 02:35
@artoonie artoonie added the WIP label Jun 25, 2024
@artoonie artoonie force-pushed the feature/issue-854_inactive-split branch 3 times, most recently from 08926ab to 57af2fd Compare June 25, 2024 02:59
@yezr
Copy link
Collaborator

yezr commented Jun 26, 2024

I laid out all the open questions in the original issue #854

@artoonie artoonie force-pushed the feature/issue-854_inactive-split branch 3 times, most recently from a26818b to 723b4b8 Compare June 28, 2024 21:30
@artoonie artoonie changed the title Split up the undervote bucket into "0 rankings" and "less than max rankings" WIP: Split up the undervote bucket into "0 rankings" and "less than max rankings" Jun 30, 2024
@artoonie artoonie force-pushed the feature/issue-854_inactive-split branch 4 times, most recently from 52cd0cd to a595e69 Compare July 1, 2024 00:40
@artoonie artoonie force-pushed the feature/issue-854_inactive-split branch from a595e69 to 55eee98 Compare July 10, 2024 23:03
@artoonie artoonie changed the title WIP: Split up the undervote bucket into "0 rankings" and "less than max rankings" Improvements to Inactive Ballot tracking, and corrected reporting of undervotes Jul 10, 2024
@yezr
Copy link
Collaborator

yezr commented Jul 15, 2024

note for when this is merged that RCVRC needs to document how this changes the description for ballots in the audit log and potentially the totally unranked ballots in the summary.csv

@@ -1172,20 +1174,8 @@ && isCandidateContinuing(cvr.getCurrentRecipientOfVote())) {
// if this is the last ranking we are out of rankings and must exhaust this cvr
// determine if the reason is skipping too many ranks, or no continuing candidates
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, this part was always so confusing to me! But I think I understand now. The code only gets here if all of their ranked candidates are not continuing. We were moving them to undervote if their ranked candidates were exhausted and they didn't use all their rankings. The code that was removed was using the implicit partially/fully ranked code which might be made moot by the discussion in #854

So basically with this update when you get here you will have your ballot marked exhausted no matter how many rankings you've used. right??

If so, the second line of this comment should be removed

Inactive Ballots by Exhausted Choices,0,,18,18,,0,18,,1,19,,1,20,,4,24,,5,29,,5,34,,2,36,,15,51,,14,65,,15,80,,11,91,,16,107,,27,134,,21,155,,21,176,,19,195,,28,223,,47,270,,46,316,,89,405,,101,506,,161,667,,100,767,,95,862,,306,1168,,336,1504,,261,1765,,236,2001,,535,2536,,1406,3942,,7827,11769,,0
Inactive Ballots by Repeated Rankings,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0,0,,0
Inactive Ballots Total,150,,37,187,,6,193,,5,198,,11,209,,10,219,,17,236,,12,248,,17,265,,33,298,,29,327,,33,360,,37,397,,22,419,,40,459,,51,510,,29,539,,25,564,,72,636,,54,690,,56,746,,99,845,,124,969,,270,1239,,142,1381,,121,1502,,509,2011,,370,2381,,458,2839,,300,3139,,733,3872,,1971,5843,,9825,15668,,0
Contest Information
Copy link
Collaborator

Choose a reason for hiding this comment

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

any idea why this whole file is flagged as new but with actual changes highlighted in darker green????

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Line ending change (must've previously been created before we made all line endings the same).

If you select "Hide Whitespace" in the diff view it goes away:
image

@@ -100,4 +100,4 @@
"totalNumBallots" : "26",
"undervotes" : 0
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is this? an EOL???

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A "no EOL" symbol -- removing the trailing \n from the file to line up with most of the other JSONs

Number to be Elected,1
Number of Candidates,1
Total Number of Ballots,10
Number of Ballots with No Rankings,0
Copy link
Collaborator

@yezr yezr Jul 15, 2024

Choose a reason for hiding this comment

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

asked @chughes297 and confirmed this change from undervote to exhausted is correct.

@yezr
Copy link
Collaborator

yezr commented Jul 19, 2024

@artoonie can we change the undervote description in the summary.csv to `Number of Undervotes (No Rankings)"

@artoonie
Copy link
Collaborator Author

All comments addressed, let me know if there's more needed from RCVRC's side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.0-RC] summary.csv "Inactive Ballots Total" is different from the sum of each inactive ballot category
2 participants