Skip to content
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

Add command to download all submissions of a challenge #321

Open
Ram81 opened this issue Mar 17, 2021 · 10 comments
Open

Add command to download all submissions of a challenge #321

Ram81 opened this issue Mar 17, 2021 · 10 comments

Comments

@Ram81
Copy link
Member

Ram81 commented Mar 17, 2021

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.

@burnerlee
Copy link
Contributor

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

@Ram81
Copy link
Member Author

Ram81 commented Mar 18, 2021

@burnerlee sure, go ahead

@burnerlee
Copy link
Contributor

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

@burnerlee
Copy link
Contributor

@Ram81 ping

1 similar comment
@burnerlee
Copy link
Contributor

@Ram81 ping

@Ram81
Copy link
Member Author

Ram81 commented Mar 25, 2021

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

@burnerlee
Copy link
Contributor

burnerlee commented Mar 25, 2021

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

@burnerlee
Copy link
Contributor

@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
Copy link
Contributor

Please suggest changes in this approach if needed

@burnerlee
Copy link
Contributor

@Ram81 ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants