GitHub PushEvent at 2014-07-14 16:42:29
Repository: ohana-web-search
Actor: declan
Payload: {"shas":[["41081aa260fab98072d2104898094fd6adfb224d","de26239ecb88e1a6399bb324e31a5cf6543da5e5@done","Make attribute presence checks more flexible\n\nUsing the `key?` method, as in `org.key?(:attribute)`, to check for the presence of an attribute assumes that the API will never return attributes whose values are nil or blank. By checking for the presence via `.present?`, it allows the client to continue working even if the API decides to return nil/blank attributes. The next updates to the API will in fact return nil attributes, so this change is necessary to make sure this client still works once the updates are pushed.\n\nThis change works with the current version of the API, so it can safely be merged even before the API updates are pushed.\n\nIn the process, I also cleaned up a bunch of unnecessary presence checks, and optimized the code.\n\nUI changes include:\n\n- On the details page, always show both Physical and Mailing Addresses, and show Physical Address first. By not showing one or the other (as we had before when they were the same), it made it look like that the one that wasn't showing up didn't exist.\n\n- On the results page, only the first phone number is displayed. Otherwise, you'd end up with a bunch of phone numbers without any context for each one.\n\nI also spent a lot of time that I hadn't anticipated fixing the filter specs which started breaking again for some reason. I switched back to capybara-webkit because Poltergeist wasn't able to click on the toggles. Instead of using CSS classes, I tried using the xpath, and Capybara said that it couldn't click on a particular element because there was another one overlapping it. I think this is the main reason we have been having so much trouble with these specs. I'm not sure whether or not having overlapping elements is considered a bad practice, but it certainly doesn't help with these tests. I think I was able to find the right xpath to click on, and so far, the specs are passing locally.\n\nI really can't wait until we replace the filters with just one simple input field for location and agency name.\n\nI also fixed issue #462 because I wasn't sure whether the filter specs issues were due to RequireJS not being loaded.","Moncef Belyamani",false],["ad303b53c8742199a63976794fd814be7176d4f0","456be21ad35d03a22d99faa01cd6f741a69beb75@users.noreply.github.com","Merge pull request #466 from codeforamerica/api-updates\n\nMake attribute presence checks more flexible","Moncef Belyamani",false],["1fa7ce353e267f67e34786e882f348f19a4e46dd","de26239ecb88e1a6399bb324e31a5cf6543da5e5@done","Update ohanakapa gem to version 1.1.1\n\nThis includes a security fix to redact the API Token from error logs.","Moncef Belyamani",false],["f3335c03b1e4d302872a7fa0d8c7c3af6deafb15","b097b85f25bb03c9605cb17ee0441f9baca6e399@codeforamerica.org","Merge pull request #472 from codeforamerica/update-ohanakapa\n\nUpdate ohanakapa gem to version 1.1.1","Ans",false],["b69a1b8b667fde735cffd08d7d5af95a0355bfbf","cbca70d5b622ff299c080cac4f1195b094cf0111@gmail.com","finished merge w/ upstream/master","Declan Frye",false],["e20ff25114847f24b9e1044953f71453e3af2c5c","cbca70d5b622ff299c080cac4f1195b094cf0111@gmail.com","Merge branch 'master' into 464-refactor-color-variables","Declan Frye",true],["d556b2348c1716d0374303299f0e3be9e7e74f0a","cbca70d5b622ff299c080cac4f1195b094cf0111@gmail.com","pulled cassettes in from upstream","Declan Frye",true]],"size":7,"ref":"refs/heads/464-refactor-color-variables","head":"d556b2348c1716d0374303299f0e3be9e7e74f0a"}