DemocracyDevelopers / colorado-rla

Colorado Risk-Limiting Audit (RLA) software – developed to support risk-limiting post-election audits of election outcomes.
Other
0 stars 0 forks source link

Generate Assertions endpoint #73

Closed vteague closed 3 months ago

vteague commented 5 months ago

Implement the Generate Assertions endpoint, calling the /generate-assertions endpoint in raire-service.

vteague commented 5 months ago

Note this will need to deal with error responses from raire-service, e.g. TIED_WINNERS. These are returned in the http header and (in most cases) should be reported to the user.

vteague commented 5 months ago

Also note this will have to update the winner field in the data structure subsequently used to generate reports. This was not done in the prototype. I think this is ContestResult, but need to check.

We debated whether it's appropriate to have an IRVContestResult for just this reason.

vteague commented 5 months ago

Use ContestResult::setWinners and ContestResult::setLosers. IRV has only one winner, so every candidate who is not the winner is a loser. Explicitly set both to blank if an error is returned (because otherwise corla will fill them with plurality winners based on preference-mentions, which is meaningless).

vteague commented 4 months ago

The persistence and proper reporting of winners are now in new cards: #136, #137