镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Create a management code to export reviewers vote #553

Open

Description

@kracekumar

The functionality is available here

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

Activity

  1. areyohrahul commented on Dec 3, 2017

    @areyohrahul
    Contributor

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

  2. kracekumar commented on Dec 4, 2017

    @kracekumar
    MemberAuthor

    @rahulxxarora Please go ahead.

  3. djb4ai commented on Mar 21, 2020

    @djb4ai

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

  4. palnabarun commented on Mar 21, 2020

    @palnabarun
    Member

    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

  5. djb4ai commented on Mar 21, 2020

    @djb4ai

    @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.

  6. pradyunsg commented on Mar 21, 2020

    @pradyunsg
    Contributor

    @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.

  7. aniruddha2000 commented on Jul 30, 2020

    @aniruddha2000

    I would like to work on this issue

  8. aniruddha2000 commented on Jul 30, 2020

    @aniruddha2000

    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?

  9. palnabarun commented on Jul 30, 2020

    @palnabarun
    Member

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

  10. aniruddha2000 commented on Aug 1, 2020

    @aniruddha2000

    @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?

  11. palnabarun commented on Aug 3, 2020

    @palnabarun
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions