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

Add API to download judge votes #53

Merged
merged 7 commits into from
Sep 18, 2024
Merged

Conversation

consoull
Copy link
Contributor

@consoull consoull commented Sep 11, 2024

Description

Adds an endpoint to download a judges votes under
/project/{project_slug}/judge/{judge_id}/download/votes. The exported CSV contains the prompt, two responses and the judges choice.

Pending: Frontend

Adds an endpoint to download a judges votes under
`/project/{project_slug}/judge/{judge_id}/download/votes`.
The exported CSV contains the prompt, two responses and the judges
choice.
@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.84%. Comparing base (9e54ae3) to head (72ee225).
Report is 1 commits behind head on trunk.

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk      #53      +/-   ##
==========================================
+ Coverage   96.80%   96.84%   +0.03%     
==========================================
  Files          33       33              
  Lines        1410     1426      +16     
==========================================
+ Hits         1365     1381      +16     
  Misses         45       45              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@consoull
Copy link
Contributor Author

The system prompt should likely be exported for automated judges. We can use judge_type to conditionally include/exclude it

@gordonhart
Copy link
Member

@consoull is this still in progress? Looks like a good start, just needs the UI and tests. Let me know if it would help to talk over the relevant changes on a call.

@gordonhart
Copy link
Member

Would be great to add this to the Judges tab — not much work required from here, just tests for the backend functionality and a new frontend component:

Screenshot 2024-09-18 at 5 44 06 PM

@gordonhart gordonhart marked this pull request as ready for review September 18, 2024 22:07
@gordonhart gordonhart enabled auto-merge (squash) September 18, 2024 22:10
@gordonhart gordonhart merged commit e4df714 into trunk Sep 18, 2024
11 checks passed
@gordonhart gordonhart deleted the cs/download-judge-votes branch September 18, 2024 22:11
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.

3 participants