Permalink
Switch branches/tags
Nothing to show
Commits on Apr 21, 2015
  1. use our Memcache class rather than the php extension directly

    struan committed Apr 14, 2015
    rather than having all the setup code duplicated everywhere
  2. store promo banner text in the database

    struan committed Apr 8, 2015
    Rather than have the banner text hard coded in the templates create a
    database table for editorial content and use this for the banner text.
    Also add an admin interface to this so that non-devs can update the
    banner.
  3. Add banner to new style pages

    struan committed Apr 3, 2015
    Goes between the hero image and the nav and steals the purple colour
    from the front page design in #589.
  4. do not display divisions that a policy abstains on

    struan committed Apr 21, 2015
    On PublicWhip it's possible to list a division as abstained to indicate
    that it's related to a policy but that it doesn't count towards an MPs
    position on the policy. This is probably just a bit to confusing for
    TheyWorkForYou so don't include them in the list of divisions for a
    policy.
    
    Fixes #830
Commits on Apr 20, 2015
Commits on Apr 19, 2015
Commits on Apr 15, 2015
  1. Import from new minister JSON.

    dracos committed Apr 14, 2015
  2. Parameterize a few missing db queries.

    dracos committed Apr 15, 2015
    Escape a few variables. Turn off Scrutinizer failure options on issues,
    as it is failing to filter out false positives.
Commits on Apr 14, 2015
Commits on Apr 13, 2015
  1. extract test GetConnection out to abstract class and inherit

    struan committed Apr 9, 2015
    rather than having the same getConnection method in all the database
    tests extract it out to an abstract class and inherit from that.
    Also move the includes for it and the FetchPage test class to the
    bootstrapper so they don't need to be included in every file.
  2. Merge branch 'improved-testing'

    jacksonj04 committed Apr 13, 2015
  3. update commonlib to latest version

    struan committed Apr 13, 2015
    For removal of PHP short tags
Commits on Apr 12, 2015
  1. Update PHPUnit to 4.6 to prevent Gemnasium version warning.

    jacksonj04 committed Apr 12, 2015
    Also updates Composer to latest version.
Commits on Apr 10, 2015
  1. show that someone was teller on a vote

    struan committed Apr 10, 2015
    add a case to handle teller votes, and also italicize the bill titles in
    cases where we're not using the single line descriptions.
    
    Fixes #809
Commits on Apr 9, 2015
  1. Link policy to Policy page on PublicWhip

    struan committed Apr 9, 2015
    Rather than a generic PublicWhip link link to the equivalent page there.
    
    For #807
  2. improve layout of policy editing interface

    struan committed Apr 9, 2015
    Sort out the display of the fields, add a bit of spacing to the list of
    policies and sort the ordering. Also add in the policy id to the list to
    make it easier to find a specific policy.
  3. Correct policy position text if MP has never voted

    struan committed Apr 9, 2015
    The policy position text on the divisions page assumed that the MP
    always had a position on a policy so did not read well if they had never
    voted (e.g the speaker).
  4. prefer TWFY wording for Policy descriptions over PW

    struan committed Apr 9, 2015
    The PW descriptions are both constrained in length and also need to
    express a position which means they can be a bit confusing on TWFY.
    This updates the policy import script to update the titles and
    descriptions and also the JSON importer to not overwrite the local
    descriptions.
    
    Fixes #806
Commits on Apr 7, 2015
  1. Show weak votes by default if there are no strong votes

    struan committed Apr 7, 2015
    It's possible than an MP may only have voted on weak votes associated
    with a policy in which case it makes no sense to hide them and force the
    user to have to click a button to see any content on the page. In this
    situation hide the button and display all the votes.
  2. encode vote direction text on import from PubliWhip

    struan committed Apr 7, 2015
    The single line descriptions of yes and no votes from PublicWhip were
    not being converted to ISO-8869-1 from the UTF-8 in the JSON so
    malformed characters were appearing on the front end
  3. add some missing motion directions

    struan committed Apr 7, 2015
    the motion direction enum didn't have all the possible directions that
    publicwhip can have so add them.
  4. fix missing semi-colon

    struan committed Apr 7, 2015
  5. Add a /divisions page listing votes in policies

    struan committed Feb 23, 2015
    For each MP add a page that shows all the votes that make up each policy
    and how they voted on them. Plus script to generate the data for this
    from JSON exported from PublicWhip
    
    Fixes #773
  6. Split MP header out into a template that can be shared

    struan committed Apr 2, 2015
    Instead of having the same header code for the MP pages in multiple
    templates create a header template and then include that in each page.
    
    Fixes #796
Commits on Apr 4, 2015
  1. Include Foundation table styling.

    dracos committed Apr 4, 2015
    Fixes #791, thanks Duncan Stuart.
Commits on Apr 3, 2015
  1. Fix variables not being created early enough

    struan committed Apr 3, 2015
    $q_person and %major_to_house were being instantiated after they were
    used which was causing the script to fail so move instantiation earlier.
Commits on Apr 2, 2015
  1. Fix couple of bad major references.

    dracos committed Apr 2, 2015
    0fb50ca somehow missed out commentlist.php entirely, so fix that too.
  2. Fix references to member IDs, now person IDs.

    dracos committed Apr 2, 2015
    Also use person IDs in search results. Fixes #802.
Commits on Apr 1, 2015