Coder Social home page Coder Social logo

openaustralia / theyvoteforyou Goto Github PK

View Code? Open in Web Editor NEW
134.0 11.0 30.0 27.1 MB

Making parliamentary voting information accessible, understandable, and easy to use so that you can hold your elected representatives to account.

Home Page: https://theyvoteforyou.org.au/

License: Other

Ruby 68.93% JavaScript 1.87% CSS 0.68% HTML 2.88% Puppet 1.33% Shell 0.65% SCSS 4.91% Haml 18.74% Procfile 0.01%
democracy parliament parliamentary-monitoring mps

theyvoteforyou's Introduction

They Vote For You Build Status Code Climate Test Coverage

Introduction

In our democracy the definitive exercise of the power we give our politicians when we vote them into office is how they vote in our parliaments on our behalf. Yet you probably don't know how your MP votes. This isn't your fault.

Parliamentary voting information is notoriously difficult to find and analyse. This project changes that by making it understandable and easy to use.

Over 10 years ago the pioneering Public Whip project was created in the UK. This is an evolution of that original PHP application into a modern Rails application.

Process overview

Australia

The OpenAustralia.org project parses the Australian Federal Hansard into ParlParse format (this due to it's history of being a fork of the UK TheyWorkForYou project). The debates XML files the parser creates, also available on data.openaustralia.org, contain voting data and we load this into a Rails application.

UK

The UK Public Whip site still operates from the original PHP codebase however it's very possible for it to be upgraded to Rails in the future. During the development of They Vote For You, the OpenAustralia Foundation was careful to ensure there is an upgrade path.

To upgrade, checkout the php-compatibility branch and point the Rails application at a copy of the UK production database. Test the site out and fix any bugs - there are likely to be some UK-specific additions needed to the Rails application.

Once the site is working you can then checkout a more recent version of the codebase and run rake db:migrate to upgrade the database schema. This also is likely to need some UK-specific changes.

The final step is to customise the site language and interface. The best way to achieve this would be to develop some sort of theming system.

Ukraine

People data is collected by a morph.io scraper and fed into EveryPolitician. This produces Popolo formatted data that is then loaded into TVFY using a Rake task, e.g.:

bundle exec rake application:load:popolo[https://raw.githubusercontent.com/everypolitician/everypolitician-data/master/data/Ukraine/Verkhovna_Rada/ep-popolo-v1.0.json]

Once the people data has been loaded you can start loading votes. These are scraped by another morph.io scraper, that saves data in a flat format that can easily be converted to Popolo. The conversion is handled by a small proxy application and the results are imported using another Rake task, e.g.:

bundle exec rake application:load:popolo[https://arcane-mountain-8284.herokuapp.com/vote_events/2015-07-14]

Development

If your machine is already set up to develop Rails applications with MySQL just carry out the following steps and you should be good to go.

Developing with Vagrant is also possible (see below) but was mainly useful with the retired PHP application. A new Vagrant setup can be found in the OpenAustralia/Infrastructure repository, however this is primarily intended as a "production-like" test environment rather than providing a development environment.

Before beginning, install MySQL, HTMLTidy and Ruby:

# OS X ...
brew install tidy-html5 mysql rbenv ruby-build
rbenv install $(cat .ruby-version)

# ... or Linux (Debian)
sudo apt-get install tidy mysql-server mysql-client libmysqlclient-dev
# then follow: https://github.com/sstephenson/rbenv#basic-github-checkout to get rbenv and ruby-build

Steps required to configure, install and start the Rails application:

# Install bundle
bundle install

# Install mailcatcher
gem install mailcatcher

# Copy the default config files over.
cp config/database.yml.example config/database.yml

# (Edit config/database.yml and fill in your username, password and database settings.)
bundle exec rake application:config:dev

# Copy secrets config
cp config/secrets.yml.example config/secrets.yml

# Set up your database (including seed data)
bundle exec rake db:setup

# Run tests
bundle exec rake

# Start the server
bundle exec rails server

With Vagrant

Once you have vagrant and virtualbox installed and have cloned this repository run vagrant up. This will download the base virtualbox image and set up the development environment, be prepared for a bit of a wait.

Run the tests from inside the VM like this:

  • vagrant ssh
  • cd /vagrant
  • bundle exec rake

Assuming they pass, you can start the rails server:

  • bundle exec rails server

Once it is up you can browse to http://localhost:3000

When manually testing the site, the "sign up" confirmation emails will automatically go to a dummy smtp server called mailcatcher. To check the emails, browse to http://localhost:1080

If vagrant reports that it can't mount the /vagrant virtualbox shared folder, it's becuase the VM has had it's kernel updated. Run vagrant provision && vagrant reload and you should be back in business.

The original PHP app is also available at http://localhost:8080 but only if you're running an older branch (out of scope for this guide).

Loading data

Australia

These rake tasks are the ones you're most likely to need to run. You can run them as the deploy user in /srv/www/production/current, for instance:

deploy@ip-172-31-37-36:/srv/www/production/current$ RAILS_ENV=production bundle exec rake application:load:divisions[2018-10-18]
  • application:load:members loads members, offices and electorates. You always need this to run the site. Strictly speaking it only needs to run when details need updating but can be run as often as you like as it only updates data.
  • application:load:divisions[from_date,to_date] load division[s]. to_date is optional and if omitted, allows you to load a single date.
  • application:cache this namespace contains cache updating tasks that are necessary for the site to run. They should be self-explanatory.

Daily updates are carried out by the application:load:daily Rake task, which is run daily at 09:15 by cron.

Popolo

Countries that use Popolo, e.g. Ukraine, only need to know about the application:load:popolo Rake task. It will load people or country data, depending on what it finds in the file.

Search

Search requires elasticsearch. You will need to download the .deb for Linux or on Mac run brew install elasticsearch.

Add data to your index the first time with bundle exec rake searchkick:reindex:all and Searchkick should take care of updates from there.

Production

Extra Requirements

  • Memcached

Australia

Deployment

The code is deployed using Capistrano. To deploy to production run:

bundle exec cap production deploy

Ukraine

Server provisioning

Ukraine's server has its configuration management in another repository. Once you've run the server provisioning tasks you can follow the instructions below to deploy the application.

Deployment

After provisioning your development server, set up and deploy using Mina:

bundle exec mina ukraine_dev setup
bundle exec mina ukraine_dev deploy

# Now you can load people data
bundle exec mina ukraine_dev rake[application:load:popolo[https://raw.githubusercontent.com/everypolitician/everypolitician-data/master/data/Ukraine/Verkhovna_Rada/ep-popolo-v1.0.json]]

# And some vote data
bundle exec mina ukraine_dev rake[application:load:popolo[https://arcane-mountain-8284.herokuapp.com/vote_events/2015-07-14]]

# Setup caches
bundle exec mina ukraine_dev rake[application:cache:all_except_people_distances]

# Then build the index so search works
bundle exec mina ukraine_dev rake[searchkick:reindex:all]

To deploy to the production server, replace ukraine_dev with ukraine_production in the above commands.

Accessing the admin panel

The administration panel, which currently doesn't do a whole lot, can be accessed in development at http://localhost:3000/admin/ and in production at https://theyvoteforyou.org.au/admin. You must be an admin to be able to access that page. Any user that is an admin can make another user and admin too using the admin panel. The first admin user must be created via the rails console:

$ bundle exec rails c
irb> User.find_by(email: "[email protected]").update(admin: true)

Obviously substitute the email address in the command above.

Feature flags

Some features that are still in development are enabled via "feature flags". The features can optionally switched on for certain users, block of users or everyone. These flags are administered at https://theyvoteforyou.org.au/admin/flipper/features in production or http://localhost:3000/admin/flipper/features when in development.

The names of the features added in the admin panel need to match those in the code at config/initializers/flipper.rb.

To enable a feature for a particular user: Go to the feature on the flipper admin panel. Then click the button "Add an actor". Then add the flipper_id which for a user will be of the form User;<user id>. So for example it could be User;3.

Other Credits

This project uses some icons from the noun project under under creative commons licenses:

theyvoteforyou's People

Contributors

anishka0107 avatar benrfairless avatar bobsbarrels avatar clockwerx avatar cofiem avatar damncabbage avatar danielkinsman avatar dependabot[bot] avatar deppbot avatar djm4 avatar equivalentideas avatar essymo avatar henare avatar jamezpolley avatar kat avatar katybairstow avatar keithpitty avatar kevinjcliao avatar lukesampson avatar mackaymackay avatar mario-areias avatar mlandauer avatar mutazashhab avatar novemberkilo avatar pwaring avatar rbairwell avatar srushe avatar tmtmtmtm avatar tracymu avatar tseyiokorodudu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

theyvoteforyou's Issues

Deploy a test version (PW-29)

It provides such great focus doing this as soon as possible


Issue details imported from Jira:

Detail Value
Assignee Matthew Landauer
Reporter Matthew Landauer
Created 2013-04-29 12:56:28
Updated 2013-05-02 18:58:26

Imported Jira Comments

Henare Degan - 2013-04-29 13:07:59

+1!

Matthew Landauer - 2013-04-30 16:29:57

I think we can call this done for the time being

Display pairs data in application and use in the calculation of statistics (PW-14)

There is some work in figuring out exactly how the pairs data should be presented. I guess we can look at some of the official reports on voting behaviour to see how it's usually presented.


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2009-09-01 11:16:12
Updated 2013-08-20 21:25:42

Imported Jira Comments

Henare Degan - 2013-08-20 21:25:42

In the HoR's Votes and Proceedings it's in a separate section at the bottom of the list of votes: http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;db=CHAMBER;id=chamber%2Fvotes%2F2013-03-21%2F0028;query=Id%3A%22chamber%2Fvotes%2F2013-03-21%2F0000%22

I can't find an equivalent for the Senate but their Hansard records pairs in a separate column of the list of votes: http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;db=CHAMBER;id=chamber%2Fhansards%2Feb494847-1a67-4abb-92d5-f64445a301ee%2F0067;orderBy=_fragment_number,doc_date-rev;query=Dataset%3Ahansards,hansards80;rec=12;resCount=Default

It's recorded in the same way in the HoR Hansard: http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;db=CHAMBER;id=chamber%2Fhansardr%2F7d2bdc3b-35ed-4264-bd05-2f4e82a3829f%2F0167;orderBy=_fragment_number,doc_date-rev;page=0;query=Dataset%3Ahansardr,hansardr80%20Date%3A21%2F3%2F2013;rec=0;resCount=Default

This all seems sane to me. The pairs are noted but the names are not listed as having voted in the motion.

I think we should aim to present it similarly. Our calculations for attending a division should not include pairs (as they didn't attend the division) but it's extra detail shown in the division.

We currently show pairs as being absent from the vote. I think this is good enough to launch with and we should add a section to the FAQ about not currently displaying pairs.

Default name for "Bronwyn Bishop" in public whip is "Mrs Bronwyn Bishop" while most other people don't have Mr/Mrs (PW-2)

Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Matthew Landauer
Created 2009-03-31 22:51:59
Updated 2013-08-21 22:58:02

Imported Jira Comments

Henare Degan - 2013-04-26 19:18:17

Same for Ms Julie Bishop MP

Henare Degan - 2013-04-30 21:05:04

I just noticed these people have data in the "title" field in the database so the app is probably just displaying if it can find that.

We probably want to turn that off since most people don't have titles in our data.

Matthew Landauer - 2013-05-01 10:21:56

That makes sense. From memory, we use "Mrs Bronwyn Bishop" in OA so that
"Mrs Bishop" can be correctly recognised. I think switching off titles in
the display on PW makes perfect sense. Anyway, we're not so keen on titles
as the uk folks anyway.

On Tue, Apr 30, 2013 at 9:05 PM, Henare Degan (JIRA) <

โ€“
Dr Matthew Landauer
Director, OpenAustralia Foundation

[email protected]

RSS redirects to the UK (PW-50)

It should display stuff from your instance.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-02 19:38:39
Updated 2013-08-22 20:25:49

No link to add division to a policy (PW-47)

You need to manually add &display=policies to the query string.

The UI should have a way to display this.


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-05-02 18:55:08
Updated 2013-07-24 14:43:32

Imported Jira Comments

Matthew Landauer - 2013-07-24 14:43:32

The secondary menu now takes care of this

Compare voting information in Votes and Proceedings to Hansard (PW-9)

Are the votes covered in the "Votes and Proceedings" the same as those in the Hansard. If so, is the summary of the vote better described in the "Votes and Proceedings" and how can the particular vote be cross-referenced to the vote in the Hansard?


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2009-09-01 10:58:45
Updated 2013-04-29 19:03:59

Imported Jira Comments

Henare Degan - 2013-04-29 19:03:59

It looks even more messed up to me.

First of all they have all the motions, even the ones where the house doesn't divide and therefore no individual votes are recorded. So you need to wade through them to find the votes.

Secondly they only have it available in "HTML" and PDF.

I'm just going to be bold and close this because it looks ick. Feel free to reopen if you'd like to investigate further.

Are tellers always included in the final vote count or not? (PW-3)

Currently the public whip doesn't include tellers in the count of the final vote. However, in http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;query=Id%3A%22library%2Fprspub%2FCQOS6%22 the final vote count is listed including the tellers.

Which is right?


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Matthew Landauer
Created 2009-04-03 00:10:57
Updated 2013-08-22 00:45:54

Imported Jira Comments

Henare Degan - 2013-08-22 00:45:54

In the UK they aren't included in the vote count in Hansard but in our Hansard they are so we should go with that.

I've opened PW-85 to deal with that.

Deputy Speaker is shown as not voting with his/her party (PW-1)

Fixing this could potentially be really painful, as it seems that speaker/deputy speaker is always stored as a "party".


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2009-03-31 22:10:32
Updated 2013-08-22 20:20:41

Imported Jira Comments

Henare Degan - 2013-04-26 19:56:00

Haven't been able to find an example of this so far, please add one here.

Henare Degan - 2013-08-20 22:05:02

Here's an example of a vote with a party listed as "deputy speaker": http://dev.publicwhip.org.au/division.php?date=2013-03-21&number=1&display=allpossible&dmp=3#summary

In OpenAustralia the deputy speaker is correctly identified as belonging to a party. On this page it says, "Deputy-Speaker, and National Party Representative for Maranoa": http://www.openaustralia.org/mp/bruce_scott/maranoa

Motion text is not appearing in public whip (PW-5)

Is this because the text data is not being exported with the division or is there something else we need to do that we're not?


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Matthew Landauer
Created 2009-03-31 22:20:42
Updated 2013-04-30 21:02:48

Imported Jira Comments

Henare Degan - 2013-04-26 18:51:01

Confirmed still an issue.

I think it does the dumb thing like I did for votes-in-parliament which is to get the speech text from immediately before the vote (which sometimes helps and sometimes doesn't). If this is the case I suspect it's just because of slightly different XML structure.

Henare Degan - 2013-04-26 19:54:35

Looks like it looks for "pwmotiontext" in the XML.

This isn't parsed in recent XML from what I can tell. It used to be, e.g. on 2006-02-07, and it is displayed in PW.

Matthew Landauer - 2013-04-29 12:54:49

I'd say this is relatively high priority to fix.

Henare Degan - 2013-04-29 15:24:34

The phrase 'motiontext' seems to appear in all XML until 2011-03-24. That must be the date APH changed their format. I guess 'pwmotiontext' it wasn't added back in when Tim rewrote the parser.

Henare Degan - 2013-04-29 17:34:15

It wasn't added because in the new APH XML there's no way to discern that >

The old APH XML had a <motion> tag: https://gist.github.com/henare/5480108#file-aph_2011-03-24-xml-L15-L17

That would create a single <p> tag with the 'pwmotiontext' attribute: https://gist.github.com/henare/5480108#file-oa_2011-03-24-xml-L7

The new XML has none of that: https://gist.github.com/henare/5480108#file-aph_2013-03-21-xml-L265-L268

Some solutions?

If we simply get the last paragraph you don't get what you expect, e.g. you'd get this paragraph from our example: https://gist.github.com/henare/5480108#file-aph_2013-03-21-xml-L273-L278 And obviously that doesn't help much.

If we get all of the debate text it's pretty overwhelming but that might have to do. We'll have to do some work to it though. If you comment out lines 198 and 205 of DivsXML.pm (https://github.com/openaustralia/publicwhip/blob/test/loader/PublicWhip/DivsXML.pm#L198) you can see the result.

The example from our division above outputs all the text and doesn't distinguish between speakers so it's A Bit Shit.

Matthew Landauer - 2013-04-30 11:40:32

This is messy to say the least. I wonder if it's worth getting in touch with APH and see if there's anything they can do?

Matthew Landauer - 2013-04-30 11:42:19

It kind of seems like the only solution right now is to display the whole previous text block (rather than just the last para). And if that involves multiple speakers then we need to add stuff to display that. It will be like some weird speaker wiki markup thing!

Henare Degan - 2013-04-30 13:45:18

I agree with both points. Let's display the whole previous text block, add stuff to display it sensibly and contact APH in the hope of a longer term solution.

Henare Degan - 2013-04-30 14:24:57

I've emailed [email protected] - he emailed us about the XML changes back in 2011.

Henare Degan - 2013-04-30 21:02:48

I've updated the loader to always load motion text.

If there's no pwmotiontext it loads the entire debate previous to the division and inserts speaker names before each speech.

Still need to do PW-39 but I'm calling this done in the mean time.

Add party logos (PW-33)

For easy recognition and to make things a bit brighter.


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-04-29 18:39:30
Updated 2013-04-29 18:39:30

Add parliaments (PW-27)

We currently only have 2004-2007 and 2008 as possible parliaments to display.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-04-26 19:46:36
Updated 2013-04-29 19:58:28

Imported Jira Comments

Henare Degan - 2013-04-29 19:58:28

Done.

Complete debate text is truncated in some instances (PW-40)

Some debates are truncated, e.g. http://publicwhip-test.openaustraliafoundation.org.au/division.php?date=2013-02-25&number=3&house=lords

I'm guessing it's being truncated by the database which is currently storing this data as a BLOB.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-01 14:46:02
Updated 2013-08-15 22:45:07

Imported Jira Comments

Henare Degan - 2013-08-15 22:45:07

That was indeed the problem.

Changed to a mediumblob which should do.

Test instance migrated and failing example now working.

Cannot edit policy definition (PW-44)

It's disabled in the current code. When you reenable it it shows up if you add a URL parameter:

/policy.php?id=1&display=editdefinition

But there are no links to that, how is the user supposed to browse to that?


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-05-02 16:07:41
Updated 2013-05-02 18:04:12

Imported Jira Comments

Henare Degan - 2013-05-02 18:04:12

I've re-enabled it and opened PW-46 to track adding a link to the UI.

Voting data incorrect (PW-49)

I found an instance where the voting data is not correct.

It's one where the vote was equal so maybe that's the problem. In cases like this the speaker is required to vote and to vote with the government.

/division.php?date=2012-08-16&number=1

http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;db=CHAMBER;id=chamber%2Fhansardr%2Fa8785071-a01e-4d0b-bf4e-9e6ea9104940%2F0025;query=Id%3A%22chamber%2Fhansardr%2Fa8785071-a01e-4d0b-bf4e-9e6ea9104940%2F0000%22


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-05-02 19:26:40
Updated 2013-05-02 19:26:40

Forums not yet working public whip (PW-4)

Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2009-04-03 01:36:45
Updated 2013-04-26 18:46:33

Imported Jira Comments

Matthew Landauer - 2013-04-26 09:56:24

Forums are disabled for security reasons now

Long motion text should be truncated (PW-39)

With a link to expand the text.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-04-30 21:00:55
Updated 2013-08-15 23:35:45

Imported Jira Comments

Henare Degan - 2013-08-15 23:35:45

Text now scrolls if it's too long.

Add support for "pairs" in division data (PW-7)

Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Matthew Landauer
Created 2009-03-31 22:11:39
Updated 2013-08-20 20:27:46

Imported Jira Comments

Matthew Landauer - 2009-09-01 11:17:32

I'm pretty sure I've updated the parser to collect and output the pairs data. Need to check and if so close this ticket.

Henare Degan - 2013-08-20 20:27:46

It's being parsed, here's a recent example: https://gist.github.com/henare/5480108#file-oa_2013-03-21-xml-L172

Get postcode search function working (PW-20)

You get this error when searching for your postcode:

"Postcode Error

There was an error trying to look up the postcode: The postcode server returned an error."


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Matthew Landauer
Created 2009-09-01 11:29:39
Updated 2013-08-16 19:08:38

Imported Jira Comments

Henare Degan - 2013-08-16 19:08:38

Replaced with a call to the OA API.

Test API (PW-41)

And report any issues.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-01 15:39:38
Updated 2013-08-21 22:37:11

Imported Jira Comments

Henare Degan - 2013-08-21 22:37:11

It's working with OA now so closing this.

Server deployment (Capistrano) for Public Whip (PW-22)

Issue details imported from Jira:

Detail Value
Assignee Matthew Landauer
Reporter Matthew Landauer
Created 2009-09-10 15:20:36
Updated 2013-07-19 12:08:07

Imported Jira Comments

Henare Degan - 2013-04-26 18:46:31

We're still going to want to deploy with Capistrano, yes?

Matthew Landauer - 2013-04-29 13:00:08

Too true!

Matthew Landauer - 2013-07-19 12:08:07

We haven't added support for production deploys to capistrano. However, staging deploys work so I think I'll close this ticket.

"WARN clock time '18:10' not in right format" when loading divisions (PW-26)

Only seems to be since 2010 or so. Files before then seem to load fine.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-04-26 19:45:12
Updated 2013-04-29 18:08:54

Imported Jira Comments

Henare Degan - 2013-04-29 18:08:54

Mainly fixed: d9237c7

We also need to fix OA-531 so maybe we should add the seconds in the parser too to make it consistent.

Menu is too wide for current text (PW-28)

The menu text flows over onto another line


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2013-04-29 12:55:36
Updated 2013-07-16 11:42:19

Imported Jira Comments

Matthew Landauer - 2013-07-16 11:42:19

This looks to be fixed now

Cannot add division to policy (PW-43)

After you create a policy it says "...To select votes for your new policy, search or browse for divisions. On the page for each division you can choose how somebody supporting your policy would have voted."

I can't see anywhere on the division page that allows me to add it to a policy.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-01 15:45:06
Updated 2013-05-02 18:56:04

Imported Jira Comments

Henare Degan - 2013-05-02 16:26:20

You need to add "&display=policies" to the URL to get it to display the policy adding UI.

Henare Degan - 2013-05-02 18:56:04

Well there's no link in the UI (see PW-47) but if you add that to your query string you can add the division and it does show up in MP profiles. Yay.

Parse divisions (voting information) (PW-24)

Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2008-03-21 15:34:00
Updated 2009-09-28 16:17:10

Imported Jira Comments

Matthew Landauer - 2009-06-11 20:39:57

This is already done. So, resolving this

UX framework definition for The Public Whip site (PW-25)

Deifnition of UX framework for The Public Whip - discrete tasks will result from the initial framework specs.

Files for review/discussion/feedback will be added to this ticket when ready.


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Alex Young
Created 2009-11-08 03:35:10
Updated 2013-04-26 09:55:24

Distance scripts never seem to finish (PW-45)

/loader/division_distance.php calculates an MP's preference for a policy.

/loader/mp_distance.php calculates an MP's similarity to other MPs.

Neither of these scripts seem to finish running.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-02 17:21:48
Updated 2013-05-02 20:24:59

Imported Jira Comments

Henare Degan - 2013-05-02 20:24:59

They ran OK on the server but did take a while.

Aussieify the add policy page (PW-42)

at /account/addpolicy.php


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-05-01 15:41:56
Updated 2013-05-02 19:14:53

How do we represent the coalition? (PW-32)

The Coalition is a prominent part of the parliament.

I don't think we're serving the user by displaying, for example in the House of Representatives, three different parties (Country Liberal Party, Liberal Party and National Party).


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Henare Degan
Created 2013-04-29 18:38:18
Updated 2013-04-29 18:54:07

Register domain name for Australian Public Whip? (PW-8)

Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2009-04-01 03:27:10
Updated 2013-08-22 23:41:18

Imported Jira Comments

Daniel Hoolihan - 2009-10-11 10:42:26

Is there an entity that a domain can be registered on behalf of?

publicwhip.org.au is available, and i'm happy to register it for an initial 2 yrs.. but need to know who/what the registrant would be??

i also noticed openaustralia.org.au is free, so same offer.. but same question??

Matthew Landauer - 2013-04-29 12:59:34

Hmmm... Need to decide on a name. Do we want Public Whip or something else?

Names are so tricky!

Henare Degan - 2013-04-29 13:07:43

Tricky indeed.

I always thought the Public Whip was overly wonky but the more I think about the project the more I think the project is wonky anyway so it doesn't matter.

Matthew Landauer - 2013-04-29 16:45:56

Yes and no. Part of the aim is to make ordinary people more aware of the
votes so I don't think we should marginalise it before it's started!

On Mon, Apr 29, 2013 at 1:07 PM, Henare Degan (JIRA) <

โ€“
Dr Matthew Landauer
Director, OpenAustralia Foundation

[email protected]

Henare Degan - 2013-04-29 17:23:55

Fair call.

Did you see the email from Francis? Maybe we should just call it
OpenAustralia Divisions or something if we're planning to merge the
projects later.

Henare Degan - 2013-05-04 17:24:49

I'm liking the idea of having it beside OpenAustralia more and more.

I think votes.openaustralia.org would be a good place for it and name it OpenAustralia Votes.

Matthew Landauer - 2013-05-04 17:56:59

I like it

Matthew Landauer - 2013-08-22 23:41:18

I think this is still an open question

Is voting both aye and no allowed in Australia? (PW-31)

It is in the UK: http://www.publicwhip.org.uk/boths.php

Update site help as appropriate.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-04-29 17:38:27
Updated 2013-08-22 19:51:10

Imported Jira Comments

Matthew Landauer - 2013-07-19 12:10:08

I looked through the parliamentary handbooks to see if there was any mention of being able to vote aye and no. I couldn't find anything. So for the time being assuming it's not possible.

Henare Degan - 2013-08-22 00:23:45

I agree with Matthew. I've checked everywhere and can't see anything but I asked just in case: https://twitter.com/OpenAustralia/status/370186601529217024

Henare Degan - 2013-08-22 19:51:10

Confirmed: https://twitter.com/AuSenate/status/370316942885679105

No link to add or edit a policy (PW-46)

We need a link on policy pages to the edit page, which just has '&display=editdefinition' appended to the URL.

There should also be some kind of link to '/account/addpolicy.php' on the policies page.


Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-05-02 18:03:20
Updated 2013-08-15 22:31:07

Imported Jira Comments

Henare Degan - 2013-08-15 22:31:07

Both types of links are now present.

Update help text (PW-30)

It's all focused on the UK. Probably needs a pretty major rewrite.


Issue details imported from Jira:

Detail Value
Assignee Unassigned
Reporter Matthew Landauer
Created 2013-04-29 13:55:36
Updated 2013-07-16 14:20:07

User confirmation email has hardcoded UK URL (PW-38)

Issue details imported from Jira:

Detail Value
Assignee Henare Degan
Reporter Henare Degan
Created 2013-04-30 16:13:38
Updated 2013-05-02 19:42:34

Imported Jira Comments

Henare Degan - 2013-05-02 19:42:34

Unhardcoded domain.

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.