{"action":"created","issue":{"url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/25","labels_url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/25/comments","events_url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/25/events","html_url":"https://github.com/OpenTechStrategies/openhmis-intake/issues/25","id":99032004,"number":25,"title":"Implement import from .csv files","user":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-04T18:37:20Z","updated_at":"2015-08-05T19:17:57Z","closed_at":null,"body":"See the \"examples\" directory on the 14-export-clients branch.  For now, we'll show an \"import\" button that brings up a prompt that asks a user to choose a .csv file to import.  We'll POST the rows from that file via the API.  For each row, we'll check to make sure that a record with that SSN does not already exist.  If one does, we will not POST that row but will instead store it in a list of (possible) duplicates to be shown to the user after the import.  \r\n\r\nLater, we'll probably have smarter behavior for duplicate records."},"comment":{"url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/comments/128115909","html_url":"https://github.com/OpenTechStrategies/openhmis-intake/issues/25#issuecomment-128115909","issue_url":"https://api.github.com/repos/OpenTechStrategies/openhmis-intake/issues/25","id":128115909,"user":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T19:17:57Z","updated_at":"2015-08-05T19:17:57Z","body":"Note that I should also more explicitly map the csv columns to their API counterparts, as @kfogel mentions in this comment: https://github.com/OpenTechStrategies/openhmis-intake/commit/a7df4436e2cb7421128033bec5013001acdd446c#commitcomment-12549220"}}