Git Product home page Git Product logo

enquesta's People

Contributors

brianflanagan avatar ignat99 avatar joonasp avatar sachalifs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sachalifs

enquesta's Issues

Travis CI failing: 'database does not exist'

/home/travis/build/d-cent/enquesta/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:891:in `rescue in connect': FATAL:  database "enquesta_test" does not exist (ActiveRecord::NoDatabaseError)

It looks like something's changed on TravisCI's side and the db isn't being created automagically.

Control of option order

Options are currently ordered alphabetically. This isn't ideal. The BCN pilot users want to the order to be maintained from the form.

Errors in logs on deploy

Trying a deploy on heroku right after git push and before rake run this error appears in the logs:

2014-07-12T10:13:50.495828+00:00 app[web.1]: LINE 5:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.428955+00:00 app[web.1]: Processing by PollsController#new as */*
2014-07-12T10:13:50.495827+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "polls" does not exist
2014-07-12T10:13:50.495821+00:00 app[web.1]: F, [2014-07-12T10:13:50.495702 #11] FATAL -- : 
2014-07-12T10:13:50.495834+00:00 app[web.1]:                 FROM pg_attribute a LEFT JOIN pg_attrdef d
2014-07-12T10:13:50.495829+00:00 app[web.1]:                                           ^
2014-07-12T10:13:50.495832+00:00 app[web.1]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2014-07-12T10:13:50.495831+00:00 app[web.1]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2014-07-12T10:13:50.495843+00:00 app[web.1]: 
2014-07-12T10:13:50.495835+00:00 app[web.1]:                   ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2014-07-12T10:13:50.495838+00:00 app[web.1]:                ORDER BY a.attnum
2014-07-12T10:13:50.495841+00:00 app[web.1]:   app/controllers/polls_controller.rb:15:in `new'
2014-07-12T10:13:50.495837+00:00 app[web.1]:                  AND a.attnum > 0 AND NOT a.attisdropped
2014-07-12T10:13:50.495840+00:00 app[web.1]: ):
2014-07-12T10:13:50.495836+00:00 app[web.1]:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.495842+00:00 app[web.1]: 
2014-07-12T10:13:50.489129+00:00 app[web.1]:                 FROM pg_attribute a LEFT JOIN pg_attrdef d
2014-07-12T10:13:50.489130+00:00 app[web.1]:                   ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2014-07-12T10:13:50.489135+00:00 app[web.1]: 
2014-07-12T10:13:50.489117+00:00 app[web.1]: PG::UndefinedTable: ERROR:  relation "polls" does not exist
2014-07-12T10:13:50.489123+00:00 app[web.1]: LINE 5:                WHERE a.attrelid = '"polls"'::regclass
2014-07-12T10:13:50.489124+00:00 app[web.1]:                                           ^
2014-07-12T10:13:50.489126+00:00 app[web.1]: :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2014-07-12T10:13:50.489127+00:00 app[web.1]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2014-07-12T10:13:50.489132+00:00 app[web.1]:                  AND a.attnum > 0 AND NOT a.attisdropped
2014-07-12T10:13:50.489134+00:00 app[web.1]:                ORDER BY a.attnum
2014-07-12T10:13:50.489723+00:00 app[web.1]: Completed 500 Internal Server Error in 59ms
2014-07-12T10:13:50.489131+00:00 app[web.1]:                WHERE a.attrelid = '"polls"'::regclass

This is not blocking, going on it all works

Notifications

BCN pilot wants a way of notifying users of: 1) requests to vote; 2) reminders to vote; 3) finished polls & results.

i18n

I'm going to set up i18n in the Rails app and localise it first for English. At present, the language is just going to be set as an environmental variable.

Is it worth having the UI localised if most of the content (the poll questions & answers) will presumably be in a single language per installation?

Or should UI locale be set at the poll level?

Time zones

At the moment, Enquesta defaults to UTC. And it uses primarily relative language (2 hours from now) to get around the fact that we don't know folks' time zones. Is there an elegant-er solution?

Control of option numbers

Right now it's currently set at 3. The BCN users want to be able to control the options manually.

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.