-
Notifications
You must be signed in to change notification settings - Fork 802
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
Added requirements file to config zip and GUI view of requirements #3593
Added requirements file to config zip and GUI view of requirements #3593
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinceli1004 Can you please add the description for the PR mainly what this PR adds and what is the approach for it.
Added! |
apps/challenges/migrations/0091_remove_challenge_requirements.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinceli1004 can we remove the API based on our discussion.
apps/challenges/views.py
Outdated
@@ -2603,6 +2603,60 @@ def get_challenge_phases_by_challenge_pk(request, challenge_pk): | |||
return Response(response_data, status=status.HTTP_200_OK) | |||
|
|||
|
|||
@api_view(["GET"]) | |||
@throttle_classes([AnonRateThrottle]) | |||
def get_challenge_requirements_by_challenge_pk(request, challenge_pk): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinceli1004 can we remove this API
apps/challenges/urls.py
Outdated
@@ -151,6 +151,11 @@ | |||
views.get_challenge_phases_by_challenge_pk, | |||
name="get_challenge_phases_by_challenge_pk", | |||
), | |||
url( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinceli1004 can we remove this API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…iew of requirements (Cloud-CV#3593) * completed requirements task * make default for requirements empty * made requirements.txt part of the evaluation_script folder * style changes * responding to comments * added fixes for missed comments * removed unused variable * frontend changes removed * removed requirements api, clarified worker error message Co-authored-by: Rishabh Jain <[email protected]>
This PR adds the ability to add a requirements.txt file for custom challenge package installation.
Approach:
The submission worker, upon extracting the challenge configuration zip, checks for a requirements.txt file and attempts to install its contents with a subprocess call. Any issues are logged.
An API was added to get the requirements given the challenge id, and this was used to display the requirements on a challenge's manage page.