TrustTheVote-Project / NIST-1500-100-103-examples

Other
3 stars 5 forks source link

No matching `Candidate` `ObjectId` for one `Contest` `CandidateIds` for single candidate contest of vote variation majority: potential data issue? #25

Closed mattbeattie closed 2 years ago

mattbeattie commented 2 years ago

This may be a potential data error, but I wanted to check. See the EDF here: https://github.com/TrustTheVote-Project/NIST-1500-100-103-examples/blob/main/NIST_1500-100/version_2/single_candidate_contest.xml

The Contest lists several candidates:

Can you confirm this is a data issue, and if so, update the EDF accordingly?

mattbeattie commented 2 years ago

For any candidate, will the ObjectId always equal the CandidateIds value? For example:

<ContestSelection xsi:type="CandidateSelection" ObjectId="alpha_for_mayor">
    <SequenceOrder>1</SequenceOrder>
    <CandidateIds>candidate_alpha</CandidateIds>
</ContestSelection>
<ContestSelection xsi:type="CandidateSelection" ObjectId="beta_for_mayor">
    <SequenceOrder>2</SequenceOrder>
    <CandidateIds>beta_for_mayor</CandidateIds>
</ContestSelection>
<ContestSelection xsi:type="CandidateSelection" ObjectId="mayor_writein">
    <SequenceOrder>3</SequenceOrder>
    <IsWriteIn>true</IsWriteIn>
</ContestSelection>

For the first candidate:

For the second candidate:

What's the difference between the two values? Which one should be used to match the Candidate's ObjectId? Does the other have any significance, or can we effectively discard it?