{"action":"created","issue":{"url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/198","repository_url":"https://api.github.com/repos/sfbrigade/adopt-a-drain","labels_url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/198/comments","events_url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/198/events","html_url":"https://github.com/sfbrigade/adopt-a-drain/pull/198","id":190490145,"number":198,"title":"Updated load_drains rake task.","user":{"login":"squidarth","id":850115,"avatar_url":"https://avatars.githubusercontent.com/u/850115?v=3","gravatar_id":"","url":"https://api.github.com/users/squidarth","html_url":"https://github.com/squidarth","followers_url":"https://api.github.com/users/squidarth/followers","following_url":"https://api.github.com/users/squidarth/following{/other_user}","gists_url":"https://api.github.com/users/squidarth/gists{/gist_id}","starred_url":"https://api.github.com/users/squidarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidarth/subscriptions","organizations_url":"https://api.github.com/users/squidarth/orgs","repos_url":"https://api.github.com/users/squidarth/repos","events_url":"https://api.github.com/users/squidarth/events{/privacy}","received_events_url":"https://api.github.com/users/squidarth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-11-19T10:52:15Z","updated_at":"2016-12-21T10:57:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/pulls/198","html_url":"https://github.com/sfbrigade/adopt-a-drain/pull/198","diff_url":"https://github.com/sfbrigade/adopt-a-drain/pull/198.diff","patch_url":"https://github.com/sfbrigade/adopt-a-drain/pull/198.patch"},"body":"@jszwedko @jasonlally Finally got around to this!\r\n\r\n#### Broader context\r\n\r\n@jasonlally and I discussed at the last civic hack night that we want to start syncing the drains in the database w/ the data set of drains on the open data website.\r\n\r\n#### Changes\r\n\r\nThe main change I had to make here was delete all the drains in the DB that no longer exist in the dataset. We discussed the product implications of this (if you adopted a drain that doesn't exist, it'll disappear), and decided it's not that big a deal.\r\n\r\nFixed a couple other bugs--mainly `gsub!` actually returns `nil`, so we weren't properly doing updates.\r\n\r\nLet me know what you think!"},"comment":{"url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/comments/268494730","html_url":"https://github.com/sfbrigade/adopt-a-drain/pull/198#issuecomment-268494730","issue_url":"https://api.github.com/repos/sfbrigade/adopt-a-drain/issues/198","id":268494730,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T10:57:44Z","updated_at":"2016-12-21T10:57:44Z","body":"\n[![Coverage Status](https://coveralls.io/builds/9375634/badge)](https://coveralls.io/builds/9375634)\n\nCoverage increased (+0.5%) to 98.141% when pulling **b9815c968d4cabdaa242538e16394325e72aca00 on squidarth:sid-shanker/update-rake-task** into **5a324128d52dab4387d4fa6c31119393324f7ee8 on sfbrigade:production**.\n"}}
{"actor":{"display_login":"coveralls"}}