{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/24910050","id":24910050,"diff_hunk":"@@ -1,2 +1,11 @@\n class LookupErrors:\n     NotFound, MultipleResults = range(2)\n+\n+\n+class ImportErrors:\n+    InvalidOwnerName = 'Invalid Owner Name'\n+    InvalidOwnerId = 'Invalid Owner ID'\n+    InvalidParentId = 'Invalid Parent ID'\n+    InvalidDate = 'Invalid Date'\n+    BlankExternalId = 'Blank External ID'\n+    CaseGeneration = 'Case Generation Error'","path":"corehq/apps/importer/const.py","position":11,"original_position":11,"commit_id":"7ba45a02b5ca7321643feb37c0e640f02adbc162","original_commit_id":"7ba45a02b5ca7321643feb37c0e640f02adbc162","user":{"login":"benrudolph","id":918514,"avatar_url":"https://avatars.githubusercontent.com/u/918514?v=3","gravatar_id":"","url":"https://api.github.com/users/benrudolph","html_url":"https://github.com/benrudolph","followers_url":"https://api.github.com/users/benrudolph/followers","following_url":"https://api.github.com/users/benrudolph/following{/other_user}","gists_url":"https://api.github.com/users/benrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/benrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrudolph/subscriptions","organizations_url":"https://api.github.com/users/benrudolph/orgs","repos_url":"https://api.github.com/users/benrudolph/repos","events_url":"https://api.github.com/users/benrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/benrudolph/received_events","type":"User","site_admin":false},"body":"https://github.com/dimagi/commcare-hq/pull/5584","created_at":"2015-02-18T15:39:33Z","updated_at":"2015-02-18T15:39:33Z","html_url":"https://github.com/dimagi/commcare-hq/pull/5554#discussion_r24910050","pull_request_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/24910050"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/5554#discussion_r24910050"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554","id":29396309,"html_url":"https://github.com/dimagi/commcare-hq/pull/5554","diff_url":"https://github.com/dimagi/commcare-hq/pull/5554.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/5554.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/5554","number":5554,"state":"closed","locked":false,"title":"(FB: 157140) - Show missing parent errors","user":{"login":"benrudolph","id":918514,"avatar_url":"https://avatars.githubusercontent.com/u/918514?v=3","gravatar_id":"","url":"https://api.github.com/users/benrudolph","html_url":"https://github.com/benrudolph","followers_url":"https://api.github.com/users/benrudolph/followers","following_url":"https://api.github.com/users/benrudolph/following{/other_user}","gists_url":"https://api.github.com/users/benrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/benrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrudolph/subscriptions","organizations_url":"https://api.github.com/users/benrudolph/orgs","repos_url":"https://api.github.com/users/benrudolph/repos","events_url":"https://api.github.com/users/benrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/benrudolph/received_events","type":"User","site_admin":false},"body":"Small refactor of error handling in bulk importer\r\n\r\nhttp://manage.dimagi.com/default.asp?157140\r\n![screen shot 2015-02-16 at 2 00 20 pm](https://cloud.githubusercontent.com/assets/918514/6218201/d7e72766-b5e9-11e4-9b35-540168dbef5a.png)\r\n\r\n@twymer ","created_at":"2015-02-16T19:41:29Z","updated_at":"2015-02-18T15:39:33Z","closed_at":"2015-02-16T20:56:00Z","merged_at":"2015-02-16T20:56:00Z","merge_commit_sha":"e97183d5dfb3dc8fd562560c325e0386baaf1050","assignee":{"login":"twymer","id":152134,"avatar_url":"https://avatars.githubusercontent.com/u/152134?v=3","gravatar_id":"","url":"https://api.github.com/users/twymer","html_url":"https://github.com/twymer","followers_url":"https://api.github.com/users/twymer/followers","following_url":"https://api.github.com/users/twymer/following{/other_user}","gists_url":"https://api.github.com/users/twymer/gists{/gist_id}","starred_url":"https://api.github.com/users/twymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twymer/subscriptions","organizations_url":"https://api.github.com/users/twymer/orgs","repos_url":"https://api.github.com/users/twymer/repos","events_url":"https://api.github.com/users/twymer/events{/privacy}","received_events_url":"https://api.github.com/users/twymer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/5554/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/7ba45a02b5ca7321643feb37c0e640f02adbc162","head":{"label":"benrudolph:missing-parent-err-157140","ref":"missing-parent-err-157140","sha":"7ba45a02b5ca7321643feb37c0e640f02adbc162","user":{"login":"benrudolph","id":918514,"avatar_url":"https://avatars.githubusercontent.com/u/918514?v=3","gravatar_id":"","url":"https://api.github.com/users/benrudolph","html_url":"https://github.com/benrudolph","followers_url":"https://api.github.com/users/benrudolph/followers","following_url":"https://api.github.com/users/benrudolph/following{/other_user}","gists_url":"https://api.github.com/users/benrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/benrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrudolph/subscriptions","organizations_url":"https://api.github.com/users/benrudolph/orgs","repos_url":"https://api.github.com/users/benrudolph/repos","events_url":"https://api.github.com/users/benrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/benrudolph/received_events","type":"User","site_admin":false},"repo":{"id":29495609,"name":"commcare-hq","full_name":"benrudolph/commcare-hq","owner":{"login":"benrudolph","id":918514,"avatar_url":"https://avatars.githubusercontent.com/u/918514?v=3","gravatar_id":"","url":"https://api.github.com/users/benrudolph","html_url":"https://github.com/benrudolph","followers_url":"https://api.github.com/users/benrudolph/followers","following_url":"https://api.github.com/users/benrudolph/following{/other_user}","gists_url":"https://api.github.com/users/benrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/benrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrudolph/subscriptions","organizations_url":"https://api.github.com/users/benrudolph/orgs","repos_url":"https://api.github.com/users/benrudolph/repos","events_url":"https://api.github.com/users/benrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/benrudolph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benrudolph/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":true,"url":"https://api.github.com/repos/benrudolph/commcare-hq","forks_url":"https://api.github.com/repos/benrudolph/commcare-hq/forks","keys_url":"https://api.github.com/repos/benrudolph/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benrudolph/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benrudolph/commcare-hq/teams","hooks_url":"https://api.github.com/repos/benrudolph/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/benrudolph/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/benrudolph/commcare-hq/events","assignees_url":"https://api.github.com/repos/benrudolph/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/benrudolph/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/benrudolph/commcare-hq/tags","blobs_url":"https://api.github.com/repos/benrudolph/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benrudolph/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benrudolph/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/benrudolph/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benrudolph/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/benrudolph/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/benrudolph/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/benrudolph/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/benrudolph/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/benrudolph/commcare-hq/subscription","commits_url":"https://api.github.com/repos/benrudolph/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/benrudolph/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/benrudolph/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/benrudolph/commcare-hq/issues/comments/{number}","contents_url":"https://api.github.com/repos/benrudolph/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/benrudolph/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benrudolph/commcare-hq/merges","archive_url":"https://api.github.com/repos/benrudolph/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benrudolph/commcare-hq/downloads","issues_url":"https://api.github.com/repos/benrudolph/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/benrudolph/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/benrudolph/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/benrudolph/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benrudolph/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/benrudolph/commcare-hq/releases{/id}","created_at":"2015-01-19T20:37:56Z","updated_at":"2015-02-17T20:22:13Z","pushed_at":"2015-02-18T15:37:33Z","git_url":"git://github.com/benrudolph/commcare-hq.git","ssh_url":"git@github.com:benrudolph/commcare-hq.git","clone_url":"https://github.com/benrudolph/commcare-hq.git","svn_url":"https://github.com/benrudolph/commcare-hq","homepage":"http://www.commcarehq.org","size":133497,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"1519eb99b6e481ba785fea416453c548fc53acbf","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":247278,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments/{number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-02-18T12:23:21Z","pushed_at":"2015-02-18T15:38:21Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"http://www.commcarehq.org","size":202020,"stargazers_count":42,"watchers_count":42,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":57,"mirror_url":null,"open_issues_count":40,"forks":57,"open_issues":40,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/5554"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/5554"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/5554/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/5554/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-hq/statuses/7ba45a02b5ca7321643feb37c0e640f02adbc162"}}}}