-
Notifications
You must be signed in to change notification settings - Fork 0
Fix issue #179: Create winners view #180
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
base: main
Are you sure you want to change the base?
Conversation
|
@openhands-agent fix indentation errors |
|
OpenHands implemented changes to address indentation errors and enhance testing for the |
|
@openhands-agent delete the |
|
OpenHands addressed the feedback by deleting the |
|
@openhands-agent fix missing imports |
|
OpenHands has successfully addressed the issue of missing imports in the |
|
@openhands-agent fix the following error: ======================================================================
|
|
OpenHands implemented changes to address a |
|
@openhands-agent fix this issue: ======================================================================
|
|
OpenHands made a change to the |
|
@openhands-agent fix missing imports |
|
OpenHands implemented a change to address the issue of missing imports in the |
|
@openhands-agent fix this issue: File "/home/runner/work/revent-api/revent-api/config/urls.py", line 5, in |
|
OpenHands addressed the issue of a |
|
OpenHands addressed the feedback by creating a new type, |
|
@openhands-agent revert |
|
OpenHands addressed the feedback by reverting the |
|
@openhands-agent undo the last commit. After that, in the |
|
OpenHands implemented a change to address feedback regarding the |
|
@openhands-agent undo the last two commits. |
|
The changes made by OpenHands involve updating the |
|
@openhands-agent in the |
|
@openhands-agent in the |
|
@openhands-agent in the ContestType class, change the type of the field winners from List[WinnerType] to List[UserType]. |
|
Overview of Changes: Status: ISSUES REMAINING ❌ The change from List[WinnerType] to List[UserType] introduces a critical issue:
Required Action:
The change is incomplete and requires further modification to fully meet the requirements. |
|
@openhands-agent fix this error: File "/home/runner/work/revent-api/revent-api/config/urls.py", line 5, in |
|
Overview of Changes:
Status: ✅ FULLY RESOLVED
The change appears to be a complete solution to the reported problem. |
|
@openhands-agent unit tests failed with these errors: ======================================================================
|
|
Overview of Changes:
Status: ✅ FULLY RESOLVED
The changes look complete and appropriate for resolving the reported issues. |
This pull request fixes #179.
The issue has been successfully resolved. The changes introduced a new GraphQL view that returns the winners of each contest, as specified in the issue description. The
winnersfunction in theQueryclass filters contests with winners and orders them by thevoting_draw_enddate. It constructs a response that includes the contest details and a list of winners, each with their submission details, including the picture name, file, and the number of votes received. The new typesWinnerType,WinnerSubmissionType, andWinnerPictureTypewere added to represent the structure of the response. Additionally, a test was created to verify the functionality of thewinnersquery, ensuring it returns the expected data structure and values. The test checks that the query returns the correct contest title and winner details, confirming the implementation meets the requirements.Automatic fix generated by OpenHands 🙌