{"action":"opened","issue":{"url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/363","labels_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/363/comments","events_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/363/events","html_url":"https://github.com/codeforamerica/ohana-api/issues/363","id":104825761,"number":363,"title":"At end of import only update imported locations","user":{"login":"monfresh","id":811150,"avatar_url":"https://avatars.githubusercontent.com/u/811150?v=3","gravatar_id":"","url":"https://api.github.com/users/monfresh","html_url":"https://github.com/monfresh","followers_url":"https://api.github.com/users/monfresh/followers","following_url":"https://api.github.com/users/monfresh/following{/other_user}","gists_url":"https://api.github.com/users/monfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/monfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monfresh/subscriptions","organizations_url":"https://api.github.com/users/monfresh/orgs","repos_url":"https://api.github.com/users/monfresh/repos","events_url":"https://api.github.com/users/monfresh/events{/privacy}","received_events_url":"https://api.github.com/users/monfresh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T03:49:11Z","updated_at":"2015-09-04T03:49:11Z","closed_at":null,"body":"To fix:\r\n\r\n- Add an `imported_ids` method to `LocationImporter` that creates an array of ids from `locations.csv`\r\n- Add a `where` clause to limit the query to the imported ids: `Location.where(id: imported_ids).update_all(updated_at: Time.zone.now)`"}}