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

Updated - and greatly simplified - GenerateAssertionsResponse. Now ju… #175

Merged

Conversation

vteague
Copy link
Member

@vteague vteague commented Aug 7, 2024

…st the contest name and two booleans: did it succeed? and is it worth retrying?

This makes everything a lot simpler, though it will get more complicated again when we want to retrieve winners and errors from the database.

…st the contest name and two booleans: did it succeed? and is it worth retrying?
@vteague vteague linked an issue Aug 7, 2024 that may be closed by this pull request
@vteague
Copy link
Member Author

vteague commented Aug 7, 2024

This matches the corresponding PR in the raire-service.

Copy link
Collaborator

@charliecarlton charliecarlton left a comment

Choose a reason for hiding this comment

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

Changes look good and the endpoint worked when i tested it. thanks!

@@ -177,22 +175,20 @@ public String endpointBody(final Request the_request, final Response the_respons
* - Gather all the IRVContestResults
* - For each IRV contest, make a request to the raire-service get-assertions endpoint of the right format type
* - Collate all the results into a list.
*
* @param IRVContestResults the collection of all IRV ContestResults.
* @param timeLimitSeconds the time limit for raire assertion generation, per contest.
* @param raireUrl the url where the raire-service is running.
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing these input arguments can be final?

* @return The GenerateAssertionsResponseWithErrors, which usually contains a
* winner but may instead be UNKNOWN_WINNER and an error message.
* @return The GenerateAssertionsResponseWithErrors, which usually contains a
* winner but may instead be UNKNOWN_WINNER and an error message.
Copy link
Member

Choose a reason for hiding this comment

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

Check input arguments for what can be final.

@vteague vteague merged commit a512643 into main Aug 9, 2024
1 check passed
@vteague vteague deleted the 173-change-generate-assertions-http-response-to-status-only branch August 9, 2024 23:13
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.

Change generate-assertions http response to status only
3 participants