{"action":"created","comment":{"url":"https://api.github.com/repos/motech-implementations/mim/pulls/comments/31917692","id":31917692,"diff_hunk":"@@ -0,0 +1,62 @@\n+package org.motechproject.nms.flw.controller;\n+\n+import org.motechproject.alerts.contract.AlertService;\n+import org.motechproject.alerts.domain.AlertStatus;\n+import org.motechproject.alerts.domain.AlertType;\n+import org.motechproject.nms.csv.exception.CsvImportException;\n+import org.motechproject.nms.flw.service.FrontLineWorkerImportService;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+import org.springframework.web.bind.annotation.RequestParam;\n+import org.springframework.web.bind.annotation.ResponseStatus;\n+import org.springframework.web.multipart.MultipartFile;\n+\n+import java.io.InputStream;\n+import java.io.InputStreamReader;\n+\n+@Controller\n+public class FrontLineWorkerImportController {\n+\n+    private static final Logger LOGGER = LoggerFactory.getLogger(FrontLineWorkerImportController.class);\n+\n+    private AlertService alertService;\n+\n+    private FrontLineWorkerImportService frontLineWorkerImportService;\n+\n+    @RequestMapping(value = \"/flw/import\", method = RequestMethod.POST)","path":"flw/src/main/java/org/motechproject/nms/flw/controller/FrontLineWorkerImportController.java","position":31,"original_position":31,"commit_id":"340497cf2d344200344ab12890b82ea192617fd9","original_commit_id":"48c78f85ff02dc20232c24d584211047ec9e5e1d","user":{"login":"kamknitt","id":5548137,"avatar_url":"https://avatars.githubusercontent.com/u/5548137?v=3","gravatar_id":"","url":"https://api.github.com/users/kamknitt","html_url":"https://github.com/kamknitt","followers_url":"https://api.github.com/users/kamknitt/followers","following_url":"https://api.github.com/users/kamknitt/following{/other_user}","gists_url":"https://api.github.com/users/kamknitt/gists{/gist_id}","starred_url":"https://api.github.com/users/kamknitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamknitt/subscriptions","organizations_url":"https://api.github.com/users/kamknitt/orgs","repos_url":"https://api.github.com/users/kamknitt/repos","events_url":"https://api.github.com/users/kamknitt/events{/privacy}","received_events_url":"https://api.github.com/users/kamknitt/received_events","type":"User","site_admin":false},"body":"You are right. I just wanted to be consistent with other csv imports.","created_at":"2015-06-08T14:12:47Z","updated_at":"2015-06-08T14:12:47Z","html_url":"https://github.com/motech-implementations/mim/pull/295#discussion_r31917692","pull_request_url":"https://api.github.com/repos/motech-implementations/mim/pulls/295","_links":{"self":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/comments/31917692"},"html":{"href":"https://github.com/motech-implementations/mim/pull/295#discussion_r31917692"},"pull_request":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/295"}}},"pull_request":{"url":"https://api.github.com/repos/motech-implementations/mim/pulls/295","id":36833611,"html_url":"https://github.com/motech-implementations/mim/pull/295","diff_url":"https://github.com/motech-implementations/mim/pull/295.diff","patch_url":"https://github.com/motech-implementations/mim/pull/295.patch","issue_url":"https://api.github.com/repos/motech-implementations/mim/issues/295","number":295,"state":"open","locked":false,"title":"#101: FLW Data Import","user":{"login":"kamknitt","id":5548137,"avatar_url":"https://avatars.githubusercontent.com/u/5548137?v=3","gravatar_id":"","url":"https://api.github.com/users/kamknitt","html_url":"https://github.com/kamknitt","followers_url":"https://api.github.com/users/kamknitt/followers","following_url":"https://api.github.com/users/kamknitt/following{/other_user}","gists_url":"https://api.github.com/users/kamknitt/gists{/gist_id}","starred_url":"https://api.github.com/users/kamknitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamknitt/subscriptions","organizations_url":"https://api.github.com/users/kamknitt/orgs","repos_url":"https://api.github.com/users/kamknitt/repos","events_url":"https://api.github.com/users/kamknitt/events{/privacy}","received_events_url":"https://api.github.com/users/kamknitt/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-03T13:44:03Z","updated_at":"2015-06-08T14:12:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b10f5df620d28239cb0cce7ae8ea3ee3ee45bd6a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/motech-implementations/mim/pulls/295/commits","review_comments_url":"https://api.github.com/repos/motech-implementations/mim/pulls/295/comments","review_comment_url":"https://api.github.com/repos/motech-implementations/mim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech-implementations/mim/issues/295/comments","statuses_url":"https://api.github.com/repos/motech-implementations/mim/statuses/340497cf2d344200344ab12890b82ea192617fd9","head":{"label":"motech-implementations:101","ref":"101","sha":"340497cf2d344200344ab12890b82ea192617fd9","user":{"login":"motech-implementations","id":6608253,"avatar_url":"https://avatars.githubusercontent.com/u/6608253?v=3","gravatar_id":"","url":"https://api.github.com/users/motech-implementations","html_url":"https://github.com/motech-implementations","followers_url":"https://api.github.com/users/motech-implementations/followers","following_url":"https://api.github.com/users/motech-implementations/following{/other_user}","gists_url":"https://api.github.com/users/motech-implementations/gists{/gist_id}","starred_url":"https://api.github.com/users/motech-implementations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech-implementations/subscriptions","organizations_url":"https://api.github.com/users/motech-implementations/orgs","repos_url":"https://api.github.com/users/motech-implementations/repos","events_url":"https://api.github.com/users/motech-implementations/events{/privacy}","received_events_url":"https://api.github.com/users/motech-implementations/received_events","type":"Organization","site_admin":false},"repo":{"id":33508795,"name":"mim","full_name":"motech-implementations/mim","owner":{"login":"motech-implementations","id":6608253,"avatar_url":"https://avatars.githubusercontent.com/u/6608253?v=3","gravatar_id":"","url":"https://api.github.com/users/motech-implementations","html_url":"https://github.com/motech-implementations","followers_url":"https://api.github.com/users/motech-implementations/followers","following_url":"https://api.github.com/users/motech-implementations/following{/other_user}","gists_url":"https://api.github.com/users/motech-implementations/gists{/gist_id}","starred_url":"https://api.github.com/users/motech-implementations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech-implementations/subscriptions","organizations_url":"https://api.github.com/users/motech-implementations/orgs","repos_url":"https://api.github.com/users/motech-implementations/repos","events_url":"https://api.github.com/users/motech-implementations/events{/privacy}","received_events_url":"https://api.github.com/users/motech-implementations/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech-implementations/mim","description":"mim","fork":false,"url":"https://api.github.com/repos/motech-implementations/mim","forks_url":"https://api.github.com/repos/motech-implementations/mim/forks","keys_url":"https://api.github.com/repos/motech-implementations/mim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech-implementations/mim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech-implementations/mim/teams","hooks_url":"https://api.github.com/repos/motech-implementations/mim/hooks","issue_events_url":"https://api.github.com/repos/motech-implementations/mim/issues/events{/number}","events_url":"https://api.github.com/repos/motech-implementations/mim/events","assignees_url":"https://api.github.com/repos/motech-implementations/mim/assignees{/user}","branches_url":"https://api.github.com/repos/motech-implementations/mim/branches{/branch}","tags_url":"https://api.github.com/repos/motech-implementations/mim/tags","blobs_url":"https://api.github.com/repos/motech-implementations/mim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech-implementations/mim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech-implementations/mim/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech-implementations/mim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech-implementations/mim/statuses/{sha}","languages_url":"https://api.github.com/repos/motech-implementations/mim/languages","stargazers_url":"https://api.github.com/repos/motech-implementations/mim/stargazers","contributors_url":"https://api.github.com/repos/motech-implementations/mim/contributors","subscribers_url":"https://api.github.com/repos/motech-implementations/mim/subscribers","subscription_url":"https://api.github.com/repos/motech-implementations/mim/subscription","commits_url":"https://api.github.com/repos/motech-implementations/mim/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech-implementations/mim/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech-implementations/mim/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech-implementations/mim/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech-implementations/mim/contents/{+path}","compare_url":"https://api.github.com/repos/motech-implementations/mim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech-implementations/mim/merges","archive_url":"https://api.github.com/repos/motech-implementations/mim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech-implementations/mim/downloads","issues_url":"https://api.github.com/repos/motech-implementations/mim/issues{/number}","pulls_url":"https://api.github.com/repos/motech-implementations/mim/pulls{/number}","milestones_url":"https://api.github.com/repos/motech-implementations/mim/milestones{/number}","notifications_url":"https://api.github.com/repos/motech-implementations/mim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech-implementations/mim/labels{/name}","releases_url":"https://api.github.com/repos/motech-implementations/mim/releases{/id}","created_at":"2015-04-06T22:18:18Z","updated_at":"2015-05-09T02:09:40Z","pushed_at":"2015-06-08T13:00:40Z","git_url":"git://github.com/motech-implementations/mim.git","ssh_url":"git@github.com:motech-implementations/mim.git","clone_url":"https://github.com/motech-implementations/mim.git","svn_url":"https://github.com/motech-implementations/mim","homepage":null,"size":17312,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":86,"forks":3,"open_issues":86,"watchers":1,"default_branch":"master"}},"base":{"label":"motech-implementations:master","ref":"master","sha":"fa2dae12c34fdc149a84bed5dd05e16ebcf99cdb","user":{"login":"motech-implementations","id":6608253,"avatar_url":"https://avatars.githubusercontent.com/u/6608253?v=3","gravatar_id":"","url":"https://api.github.com/users/motech-implementations","html_url":"https://github.com/motech-implementations","followers_url":"https://api.github.com/users/motech-implementations/followers","following_url":"https://api.github.com/users/motech-implementations/following{/other_user}","gists_url":"https://api.github.com/users/motech-implementations/gists{/gist_id}","starred_url":"https://api.github.com/users/motech-implementations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech-implementations/subscriptions","organizations_url":"https://api.github.com/users/motech-implementations/orgs","repos_url":"https://api.github.com/users/motech-implementations/repos","events_url":"https://api.github.com/users/motech-implementations/events{/privacy}","received_events_url":"https://api.github.com/users/motech-implementations/received_events","type":"Organization","site_admin":false},"repo":{"id":33508795,"name":"mim","full_name":"motech-implementations/mim","owner":{"login":"motech-implementations","id":6608253,"avatar_url":"https://avatars.githubusercontent.com/u/6608253?v=3","gravatar_id":"","url":"https://api.github.com/users/motech-implementations","html_url":"https://github.com/motech-implementations","followers_url":"https://api.github.com/users/motech-implementations/followers","following_url":"https://api.github.com/users/motech-implementations/following{/other_user}","gists_url":"https://api.github.com/users/motech-implementations/gists{/gist_id}","starred_url":"https://api.github.com/users/motech-implementations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech-implementations/subscriptions","organizations_url":"https://api.github.com/users/motech-implementations/orgs","repos_url":"https://api.github.com/users/motech-implementations/repos","events_url":"https://api.github.com/users/motech-implementations/events{/privacy}","received_events_url":"https://api.github.com/users/motech-implementations/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech-implementations/mim","description":"mim","fork":false,"url":"https://api.github.com/repos/motech-implementations/mim","forks_url":"https://api.github.com/repos/motech-implementations/mim/forks","keys_url":"https://api.github.com/repos/motech-implementations/mim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech-implementations/mim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech-implementations/mim/teams","hooks_url":"https://api.github.com/repos/motech-implementations/mim/hooks","issue_events_url":"https://api.github.com/repos/motech-implementations/mim/issues/events{/number}","events_url":"https://api.github.com/repos/motech-implementations/mim/events","assignees_url":"https://api.github.com/repos/motech-implementations/mim/assignees{/user}","branches_url":"https://api.github.com/repos/motech-implementations/mim/branches{/branch}","tags_url":"https://api.github.com/repos/motech-implementations/mim/tags","blobs_url":"https://api.github.com/repos/motech-implementations/mim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech-implementations/mim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech-implementations/mim/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech-implementations/mim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech-implementations/mim/statuses/{sha}","languages_url":"https://api.github.com/repos/motech-implementations/mim/languages","stargazers_url":"https://api.github.com/repos/motech-implementations/mim/stargazers","contributors_url":"https://api.github.com/repos/motech-implementations/mim/contributors","subscribers_url":"https://api.github.com/repos/motech-implementations/mim/subscribers","subscription_url":"https://api.github.com/repos/motech-implementations/mim/subscription","commits_url":"https://api.github.com/repos/motech-implementations/mim/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech-implementations/mim/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech-implementations/mim/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech-implementations/mim/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech-implementations/mim/contents/{+path}","compare_url":"https://api.github.com/repos/motech-implementations/mim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech-implementations/mim/merges","archive_url":"https://api.github.com/repos/motech-implementations/mim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech-implementations/mim/downloads","issues_url":"https://api.github.com/repos/motech-implementations/mim/issues{/number}","pulls_url":"https://api.github.com/repos/motech-implementations/mim/pulls{/number}","milestones_url":"https://api.github.com/repos/motech-implementations/mim/milestones{/number}","notifications_url":"https://api.github.com/repos/motech-implementations/mim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech-implementations/mim/labels{/name}","releases_url":"https://api.github.com/repos/motech-implementations/mim/releases{/id}","created_at":"2015-04-06T22:18:18Z","updated_at":"2015-05-09T02:09:40Z","pushed_at":"2015-06-08T13:00:40Z","git_url":"git://github.com/motech-implementations/mim.git","ssh_url":"git@github.com:motech-implementations/mim.git","clone_url":"https://github.com/motech-implementations/mim.git","svn_url":"https://github.com/motech-implementations/mim","homepage":null,"size":17312,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":86,"forks":3,"open_issues":86,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/295"},"html":{"href":"https://github.com/motech-implementations/mim/pull/295"},"issue":{"href":"https://api.github.com/repos/motech-implementations/mim/issues/295"},"comments":{"href":"https://api.github.com/repos/motech-implementations/mim/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech-implementations/mim/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/motech-implementations/mim/statuses/340497cf2d344200344ab12890b82ea192617fd9"}}}}