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

Create a management code to export reviewers vote #553

Open
kracekumar opened this issue Nov 3, 2017 · 11 comments
Open

Create a management code to export reviewers vote #553

kracekumar opened this issue Nov 3, 2017 · 11 comments

Comments

@kracekumar
Copy link
Member

The functionality is available here

def export_reviewer_votes(request, conference_slug):
. You need to create a command line version.

@areyohrahul
Copy link
Contributor

Hey @kracekumar, I would like to work on it. Can I?

@kracekumar
Copy link
Member Author

@rahulxxarora Please go ahead.

@djb4ai
Copy link

djb4ai commented Mar 21, 2020

@kracekumar @palnabarun This seems fun, I can take a stab at it. A little guidance is appreciated.

@palnabarun
Copy link
Member

palnabarun commented Mar 21, 2020

So, this requires you to create a management command for Django, which would take in the conference slug as an argument, call the above-mentioned function and return you the reviewer votes for every proposal submitted for that conference.

References
https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/
https://docs.djangoproject.com/en/3.0/howto/custom-management-commands/

We are currently running on Django 1.9 so the Django documentation may be a bit tough to navigate

@djb4ai
Copy link

djb4ai commented Mar 21, 2020

@palnabarun I thought the issue had something to do with argparse or click, not very good with django if anybody else wanna take it, go-ahead.

@pradyunsg
Copy link
Contributor

pradyunsg commented Mar 21, 2020

@lladhibhutall If you want to tackle a click+argparse+optparse issue, I suggest you take a look at pip's issue related to its CLI: https://github.com/pypa/pip/issues/ 4659.

@aniruddha2000
Copy link

I would like to work on this issue

@aniruddha2000
Copy link

I wrote some code by reading the django documntation. But the test saying python 2.7 tests are success but python 3.6 is failed. @palnabarun can you review the code. Should I open a PR?

@palnabarun
Copy link
Member

@aniruddha2000 -- #650 was raised to solve this. Maybe you should have a look there?

@aniruddha2000
Copy link

aniruddha2000 commented Aug 1, 2020

@aniruddha2000 -- #650 was raised to solve this. Maybe you should have a look there?

yes but in #650 the code that the guy wrote that for create a csv file as well as storing the data right? But storing data functionality is already done in the below section right?

def export_reviewer_votes(request, conference_slug):

So I have to create a command that create a csv file and then it call the above function and it will write into the csv file right?

@palnabarun
Copy link
Member

To anyone reading this after the #553 (comment)

So, this requires you to create a management command for Django, which would take in the conference slug as an argument, call the above-mentioned function and return you the reviewer votes for every proposal submitted for that conference.

This call the above-mentioned function is not correct. A function has to be written which has a similar behavior and not use the above-mentioned function.

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

No branches or pull requests

6 participants