[Feature]: add unpacker and views for codabench project
@ mention of reviewers
Code: @ckcollab
Hand test: @dde6khkg
A brief description of the purpose of the changes contained in this PR.
-
add Unpacker「CodabenchV1Unpacker」support Benchmark Creation by Bundle Upload and its correspond unit test「test_codabench_v1_unpacker」
-
add type('competition' or 'benchmark') in Competition Model in order to distinguish this is "Competition" or "Benchmark"
-
register new app 'benchmark' in base.py settings
-
add new field 'type' in 'CompetitionSerializer', 'CompetitionDetailSerializer', 'CompetitionSerializerSimple'
-
add benchmark relevant views and urls, this part of the code reuses code from the Competition section
- we just added the routing, In particular
- for incoming requests from the benchmark view, the rule is type='bench'
- for incoming requests from the competition view, the rule is type='competition'.
...
Issues this PR resolves
...
Known issues to be addressed in a separate PR
...
A checklist for hand testing
-
codabench v1 unpacker test
Any relevant files for testing
link to any relevant files (or drag and drop into github)
Misc. comments
...
Checklist
-
Code review by me -
Hand tested by me -
I'm proud of my work -
Code review by reviewer -
Hand tested by reviewer -
Ready to merge