evalai-cli icon indicating copy to clipboard operation
evalai-cli copied to clipboard

Add command to download all submissions of a challenge

Open Ram81 opened this issue 4 years ago • 10 comments

Description

We need a cli command that will allow users to download all submissions of a challenge. The command should handle two cases:

  1. If a user is host of a challenge download all submissions made to the challenge for a phase
  2. If a user is a participant download submissions only made by the team of user to the challenge for a phase.

Required backend APIs are already available for this feature here.

Ram81 avatar Mar 17 '21 15:03 Ram81

@Ram81 may I pick up this issue and make a quick PR?

burnerlee avatar Mar 17 '21 20:03 burnerlee

@burnerlee sure, go ahead

Ram81 avatar Mar 18 '21 05:03 Ram81

@Ram81 in what file format should the submissions be downloaded?

burnerlee avatar Mar 18 '21 07:03 burnerlee

@Ram81 ping

burnerlee avatar Mar 18 '21 21:03 burnerlee

@Ram81 ping

burnerlee avatar Mar 25 '21 05:03 burnerlee

@burnerlee we should give two options csv and json. Sorry about the late reply

Ram81 avatar Mar 25 '21 05:03 Ram81

Not a problem at all😅 I'll make a PR to integrate this😀 thanks

burnerlee avatar Mar 25 '21 05:03 burnerlee

@Ram81 also where do I save the files download by the user? I am planning to make a new folder at project root level named submissions. When the user runs the command through the cli to download submissions. by default the submissions would be downloaded in csv format and stored in the submissions folder with a name of format submissions_<time_string_at_command_run> . To download a json file the user can use the --json flag.

burnerlee avatar Mar 25 '21 07:03 burnerlee

Please suggest changes in this approach if needed

burnerlee avatar Mar 25 '21 07:03 burnerlee

@Ram81 ping

burnerlee avatar Mar 31 '21 03:03 burnerlee