by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 04 21:08
    dawinter commented #81
  • Jun 03 00:30
    AllenWang314 closed #84
  • Jun 03 00:26
    AllenWang314 opened #84
  • Apr 20 00:55
    anishathalye commented #82
  • Apr 20 00:55

    anishathalye on master

    Bump pyScss to 1.3.7 to fix a s… Merge branch 'devedmonton/bump-… (compare)

  • Apr 19 22:03
    ajyong commented #83
  • Apr 19 22:02
    ajyong closed #83
  • Apr 19 22:02
    ajyong edited #83
  • Apr 19 22:02
    ajyong opened #83
  • Apr 19 19:33
    anishathalye closed #82
  • Apr 19 19:33

    anishathalye on develop

    (compare)

  • Apr 19 19:07
    ajyong opened #82
  • Mar 13 15:16
    FrankAtHexagon commented #81
  • Mar 13 15:09
    FrankAtHexagon commented #75
  • Mar 13 14:36
    anishathalye commented #81
  • Mar 12 15:32
    FrankAtHexagon opened #81
  • Feb 29 14:34

    anishathalye on master

    Avoid specifying explicit heigh… (compare)

  • Feb 21 23:58
    sumanthratna commented #64
  • Feb 21 13:25
    anishathalye commented #64
  • Feb 21 03:26
    sumanthratna commented #64
Anish Athalye
@anishathalye
I think it shouldn't be too bad to have people install celery
If we add it to our requirements.txt, it'll be installed along with the other dependencies during a pip install -r requirements.txt
And it should be fairly easy to modify the Procfile for Heroku to start celery in addition to gunicorn. And we can update the documentation to explain to people that in prod they need to run celery in addition to Gunicorn
evantey14
@evantey14
It seemed like using gthread workers prevented crash (I believe it just puts the request back in the assignment loop for others to pick up and complete)
In addition to celery, we'll also need redis (or some other broker that does task assignment). I can try to see if that's easy to set up today
Anish Athalye
@anishathalye
Huh... what exactly does it mean to put the request back in the assignment loop? Like the Python process it dispatched the request to would be in the middle of some computation -- is this just equivalent to disabling timeouts?
Redis is not too bad to install -- just an apt-get install redis-server
evantey14
@evantey14
I think it's similar though maybe more resilient to crashing? Either way, I think I have celery + redis working, just making sure the setup works smoothly
Anish Athalye
@anishathalye
oh awesome -- yeah, I think the celery + redis setup might be better
Rohan
@rohanrk

http://localhost:5000/ automatically sends to a logout page.

Do we need to use this for anything or do we just need

http://localhost:5000/admin

Anish Athalye
@anishathalye
That's expected behavior. Use the direct link to the admin panel if you need it
Rohan
@rohanrk
Tried sshing into vagrant recently. All the directory structures are gone and I'm apparently in a blank directory
Not sure why. I haven't changed the vagrantfile at all
Anish Athalye
@anishathalye
What's your PWD? There's nothing in ~
everything goes into /gavel
in any case, if things seem broken and you don't care to investigate, you can always just vagrant destroy && vagrant up to recreate the VM
Rohan
@rohanrk
Tried that nothing changes
I know. I meant I can't cd into gavel because it doesn't exist I've tried vagrant reload a couple times as well
/home/vagrant is the pwd
ls returns nothing
Anish Athalye
@anishathalye
vagrant reload is basically like rebooting the VM
vagrant destroy && vagrant up recreates it
Rohan
@rohanrk
Tried both
Anish Athalye
@anishathalye
also, /home/vagrant is supposed to be empty
cd /gavel && ls
should show you something
Rohan
@rohanrk
Ah I might've been typing it incorrectly before
Anish Athalye
@anishathalye
e.g. on my machine:
Screen Shot 2017-05-30 at 10.21.05 AM.png
Rohan
@rohanrk
Gotcha
nazareno
@nazareno
Hi folks. We're planning to use gavel in a hackathon, but we're wondering whether there is a minimum number of comparisons per project that guarantees some convergence on the final ranking. Is there a recommended number? How many reviews do you usually have per judge or project in your events?
Anish Athalye
@anishathalye
In general, the answer is "as many as possible" - the more data you have, the better results you have.
As a couple points of comparison: HackMIT had a little under 200 projects and ~800 comparisons; for Blueprint, we had 235 comparisons for 37 teams
nazareno
@nazareno
Thanks, Anish. We'll have 30 projects and 10 judges, and we thought it would be viable for each judge to see 9 projects each. In this case, for your terminology we'd have 90 comparisons?
Anish Athalye
@anishathalye
Yeah
nazareno
@nazareno
Ok. It seems we're a bit below your usual. Thanks!
Thurston Sexton
@tbsexton
Hi all. Thanks for the great app. I'm having a bit of trouble getting the email feature to work, though I've tried Gmail (following the troubleshoot guide) and Zoho, along with Mailgun and SendGrid, none of which seem to be working for various reasons. I'm running Gavel on a Heroku instance.
Here's an example log from Heroku:
2017-08-15T19:10:12.195143+00:00 app[worker.1]: [2017-08-15 19:10:12,194: ERROR/PoolWorker-2] Task gavel.utils.send_emails[b818fac4-aaf8-4231-a274-ea95d438f0b4] raised unexpected: SMTPAuthenticationError(535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials f56sm7641802qta.79 - gsmtp')
2017-08-15T19:10:12.195163+00:00 app[worker.1]: Traceback (most recent call last):
2017-08-15T19:10:12.195165+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.5/site-packages/celery/app/trace.py", line 367, in trace_task
2017-08-15T19:10:12.195165+00:00 app[worker.1]:     R = retval = fun(*args, **kwargs)
2017-08-15T19:10:12.195166+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.5/site-packages/celery/app/trace.py", line 622, in __protected_call__
2017-08-15T19:10:12.195167+00:00 app[worker.1]:     return self.run(*args, **kwargs)
2017-08-15T19:10:12.195167+00:00 app[worker.1]:   File "/app/gavel/utils.py", line 72, in send_emails
2017-08-15T19:10:12.195168+00:00 app[worker.1]:     server.login(settings.EMAIL_USER, settings.EMAIL_PASSWORD)
2017-08-15T19:10:12.195169+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.5/smtplib.py", line 729, in login
2017-08-15T19:10:12.195170+00:00 app[worker.1]:     raise last_exception
2017-08-15T19:10:12.195171+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.5/smtplib.py", line 720, in login
2017-08-15T19:10:12.195171+00:00 app[worker.1]:     initial_response_ok=initial_response_ok)
2017-08-15T19:10:12.195172+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.5/smtplib.py", line 641, in auth
2017-08-15T19:10:12.195173+00:00 app[worker.1]:     raise SMTPAuthenticationError(code, resp)
2017-08-15T19:10:12.195180+00:00 app[worker.1]: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials f56sm7641802qta.79 - gsmtp')
I know the auth is correct though, and I've checked all possible solutions, including using TLS, SSL, all combinations of possible ports, etc. Would you mind sharing how you've set up a heroku instance with working email, if you have?
Anish Athalye
@anishathalye
specifically, the "less secure apps" part?
Thurston Sexton
@tbsexton
well this functionality is blocked for accounts with 2-factor auth turned on. This is why I switched to trying zoho, but let me try a differenct gmail acct and get back to you
Thurston Sexton
@tbsexton
Well that seems to have worked. I guess I'll stick to gmail! thanks!
Thurston Sexton
@tbsexton
By chance, is there a way I can extract the pairwise comparison data from the app, if I've deployed to Heroku? I have a set of ranks derived from the judges' decisions, but I'd love to analyse those comparisons more carefully.
Anish Athalye
@anishathalye
Yeah, there's the API: /api/decisions.csv might be what you're looking for
see gavel/controllers/api.py for more details
@tbsexton
Gaurav Desale
@gauravdesale
how do i get started conttibuting to this project?
Anish Athalye
@anishathalye
do any of the open issues look interesting to you: https://github.com/anishathalye/gavel/issues
Gaurav Desale
@gauravdesale
cool thanks