Code Monkey home page Code Monkey logo

connect's Issues

Prohibit installation via Python2

Presently, the app has been tested with Python3.4. If a user tries to install via Python2, he gets no immediate warnings. It'd be nice to warn users if installation is being performed via Python2.
This can be implemented with simple check in manage.py maybe?

import sys
if not sys.version_info > (3, 3):
    print("Hey! We support Python 3.4 or later.")
    exit(13)

cc @nlhkabu

┆Issue is synchronized with this Asana task

investigate behave-django instead of django-behave

https://github.com/mixxorz/behave-django

I was contacted by the maintainer, who said:

In terms of usage, behave-django has you invoke a custom management command, python manage.py behave, to run your BDD tests, instead of replacing the TEST_RUNNER. This has the advantage of separating BDD tests from regular unit tests. Aside from that difference in approach, behave-django has more features that can help people with their tests.

Database transactions per scenario
Use Django's testing client
Use unittest + Django assert library
Use behave's command line arguments
Use behave's configuration file
Fixture loading

You can skim through the docs to see how all of this works. https://pythonhosted.org/behave-django/

In my unbiased opinion ( :P), I think behave-django does a better job at integrating BDD tests with django. It's easier to use and a lot more flexible.

Given that we haven't been 100% happy with django-behave, it may be worth a look? Since it also uses behave, it should require too many (any?) changes to our actual test code?

┆Issue is synchronized with this Asana task

Add PEP8 tests

  • Fix pep8 in the project
  • Add a flake8 test in the travis and tox matrix.

Document pillow dependencies

We had some problems with Pillow on Fedora,

For this, we ran:

sudo dnf install zlib-devel libjpeg-turbo-devel freetype-devel

We should document this, or point to Pillow's documentation to address this.

┆Issue is synchronized with this Asana task

Redeploy

@hjwp - I'm thinking that Python Anywhere might do the trick 👯

Currently there is a Procfile and uwsgi.ini that are required for Heroku deployment - if we choose to move away from Heroku, these should (??) be able to be removed.

I'd also like to formally document the deployment process in a new deployment.rst

┆Issue is synchronized with this Asana task

Move from mandrill to another provider

Mandrill will cease to support free accounts from April 27 2016.

Given this project is not yet in production, I'd prefer to continue to use a free account in the short term.

This requires looking into alternative providers.

┆Issue is synchronized with this Asana task

Add extra method for filtering - by group or event

For example - users who attended Djangocon Europe could specify this on their profile. This would mean that other users could filter the list by just this conference to find other attendees.

We could also do the same for local django user groups. This might be better than listing each individual meetup (as this might become a bit long).

Thoughts?

┆Issue is synchronized with this Asana task

Run BDD tests on CI server

Ideally configure the CI server to run the tests with a range of different browsers. This can be done with:

python manage.py test bdd --behave_browser <browser>

┆Issue is synchronized with this Asana task

BDD tests failing against "invalid email" error message

I see several BDD tests currently failing to find the correct "invalid email" error message.

Instead of seeing "Please enter a valid email address." they see "This value should be a valid email.". Not sure why as yet. Somehow the form's custom error message isn't getting through? Could be something to do with django versions, or internationalization maybe?

Python 3.4.3, Django 1.8.2.

Hide moderation logs from moderator when the subject is an abuse report they have made

Example scenario:

Sam is a moderator and reports Alex for inappropriate behavior.
This abuse report is dismissed by another moderator.
When Sam views the moderation dashboard, Sam can see a log of the dismissal.

In the case above, Sam should not be able to see the moderation log. I am not sure this is possible with the current data structure as the moderation logs do not reference the user who reported the abuse - only the reported user (in this case Alex) and the moderator who made the decision.

We could introduce a FK relationship to AbuseReport for this case, or simply add another User field to ModerationLogMsg to account for this situation.

┆Issue is synchronized with this Asana task

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.