Add command to download all submissions of a challenge
Description
We need a cli command that will allow users to download all submissions of a challenge. The command should handle two cases:
- If a user is host of a challenge download all submissions made to the challenge for a phase
- 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 may I pick up this issue and make a quick PR?
@burnerlee sure, go ahead
@Ram81 in what file format should the submissions be downloaded?
@Ram81 ping
@Ram81 ping
@burnerlee we should give two options csv and json. Sorry about the late reply
Not a problem at all😅 I'll make a PR to integrate this😀 thanks
@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.
Please suggest changes in this approach if needed
@Ram81 ping