{"action":"created","comment":{"url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/comments/239559728","pull_request_review_id":182378424,"id":239559728,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTU1OTcyOA==","diff_hunk":"@@ -0,0 +1,136 @@\n+# Recidiviz - a platform for tracking granular recidivism metrics in real time\n+# Copyright (C) 2018 Recidiviz, Inc.\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see <https://www.gnu.org/licenses/>.\n+# =============================================================================\n+\n+\"\"\"Tests for ingest_info_utils\"\"\"\n+\n+from recidiviz.ingest import ingest_info_utils\n+from recidiviz.ingest.models import ingest_info\n+from recidiviz.ingest.models import ingest_info_pb2\n+\n+\n+def test_id_is_generated():\n+    info = ingest_info.IngestInfo()\n+    person = info.create_person()\n+    person.surname = 'testname'","path":"recidiviz/tests/ingest/ingest_info_utils_test.py","position":28,"original_position":28,"commit_id":"fcb849ba63d584f3996971cb6ed200df2560d4e1","original_commit_id":"1f993db349e7bc9ad14518ce793c7030034fc60c","user":{"login":"arian487","id":1262163,"node_id":"MDQ6VXNlcjEyNjIxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1262163?v=4","gravatar_id":"","url":"https://api.github.com/users/arian487","html_url":"https://github.com/arian487","followers_url":"https://api.github.com/users/arian487/followers","following_url":"https://api.github.com/users/arian487/following{/other_user}","gists_url":"https://api.github.com/users/arian487/gists{/gist_id}","starred_url":"https://api.github.com/users/arian487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arian487/subscriptions","organizations_url":"https://api.github.com/users/arian487/orgs","repos_url":"https://api.github.com/users/arian487/repos","events_url":"https://api.github.com/users/arian487/events{/privacy}","received_events_url":"https://api.github.com/users/arian487/received_events","type":"User","site_admin":false},"body":"Eh, don't think its too necessary for unit tests that'll likely never change.","created_at":"2018-12-06T18:18:30Z","updated_at":"2018-12-06T18:18:30Z","html_url":"https://github.com/Recidiviz/recidiviz-data/pull/258#discussion_r239559728","pull_request_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/comments/239559728"},"html":{"href":"https://github.com/Recidiviz/recidiviz-data/pull/258#discussion_r239559728"},"pull_request":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258"}},"in_reply_to_id":239494736},"pull_request":{"url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258","id":236334741,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MzM0NzQx","html_url":"https://github.com/Recidiviz/recidiviz-data/pull/258","diff_url":"https://github.com/Recidiviz/recidiviz-data/pull/258.diff","patch_url":"https://github.com/Recidiviz/recidiviz-data/pull/258.patch","issue_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/258","number":258,"state":"open","locked":false,"title":"Add a converter to go from ingest_info to ingest_info_proto","user":{"login":"arian487","id":1262163,"node_id":"MDQ6VXNlcjEyNjIxNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1262163?v=4","gravatar_id":"","url":"https://api.github.com/users/arian487","html_url":"https://github.com/arian487","followers_url":"https://api.github.com/users/arian487/followers","following_url":"https://api.github.com/users/arian487/following{/other_user}","gists_url":"https://api.github.com/users/arian487/gists{/gist_id}","starred_url":"https://api.github.com/users/arian487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arian487/subscriptions","organizations_url":"https://api.github.com/users/arian487/orgs","repos_url":"https://api.github.com/users/arian487/repos","events_url":"https://api.github.com/users/arian487/events{/privacy}","received_events_url":"https://api.github.com/users/arian487/received_events","type":"User","site_admin":false},"body":"This adds a util to go from IngestInfo python to an ingest info proto.  It uses python memory address as the ID to maintain relationships (or the provided id).  ","created_at":"2018-12-05T21:50:22Z","updated_at":"2018-12-06T18:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf7be2490c42df4b110d2b1ea74b074196541ac9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258/commits","review_comments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258/comments","review_comment_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/258/comments","statuses_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/statuses/fcb849ba63d584f3996971cb6ed200df2560d4e1","head":{"label":"Recidiviz:ingest_info_converter","ref":"ingest_info_converter","sha":"fcb849ba63d584f3996971cb6ed200df2560d4e1","user":{"login":"Recidiviz","id":35868122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1ODY4MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/35868122?v=4","gravatar_id":"","url":"https://api.github.com/users/Recidiviz","html_url":"https://github.com/Recidiviz","followers_url":"https://api.github.com/users/Recidiviz/followers","following_url":"https://api.github.com/users/Recidiviz/following{/other_user}","gists_url":"https://api.github.com/users/Recidiviz/gists{/gist_id}","starred_url":"https://api.github.com/users/Recidiviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recidiviz/subscriptions","organizations_url":"https://api.github.com/users/Recidiviz/orgs","repos_url":"https://api.github.com/users/Recidiviz/repos","events_url":"https://api.github.com/users/Recidiviz/events{/privacy}","received_events_url":"https://api.github.com/users/Recidiviz/received_events","type":"Organization","site_admin":false},"repo":{"id":108306686,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgzMDY2ODY=","name":"recidiviz-data","full_name":"Recidiviz/recidiviz-data","private":false,"owner":{"login":"Recidiviz","id":35868122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1ODY4MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/35868122?v=4","gravatar_id":"","url":"https://api.github.com/users/Recidiviz","html_url":"https://github.com/Recidiviz","followers_url":"https://api.github.com/users/Recidiviz/followers","following_url":"https://api.github.com/users/Recidiviz/following{/other_user}","gists_url":"https://api.github.com/users/Recidiviz/gists{/gist_id}","starred_url":"https://api.github.com/users/Recidiviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recidiviz/subscriptions","organizations_url":"https://api.github.com/users/Recidiviz/orgs","repos_url":"https://api.github.com/users/Recidiviz/repos","events_url":"https://api.github.com/users/Recidiviz/events{/privacy}","received_events_url":"https://api.github.com/users/Recidiviz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Recidiviz/recidiviz-data","description":"Ingesting prison and jail records from various data sources and calculating criminal justice metrics","fork":false,"url":"https://api.github.com/repos/Recidiviz/recidiviz-data","forks_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/forks","keys_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/teams","hooks_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/hooks","issue_events_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/events{/number}","events_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/events","assignees_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/assignees{/user}","branches_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/branches{/branch}","tags_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/tags","blobs_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/statuses/{sha}","languages_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/languages","stargazers_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/stargazers","contributors_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/contributors","subscribers_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/subscribers","subscription_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/subscription","commits_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/contents/{+path}","compare_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/merges","archive_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/downloads","issues_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues{/number}","pulls_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls{/number}","milestones_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/milestones{/number}","notifications_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/labels{/name}","releases_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/releases{/id}","deployments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/deployments","created_at":"2017-10-25T18:04:59Z","updated_at":"2018-12-06T15:51:51Z","pushed_at":"2018-12-06T17:17:08Z","git_url":"git://github.com/Recidiviz/recidiviz-data.git","ssh_url":"git@github.com:Recidiviz/recidiviz-data.git","clone_url":"https://github.com/Recidiviz/recidiviz-data.git","svn_url":"https://github.com/Recidiviz/recidiviz-data","homepage":"","size":4822,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":7,"open_issues":78,"watchers":6,"default_branch":"master"}},"base":{"label":"Recidiviz:master","ref":"master","sha":"c11ee5a7936e15b8d9be24455907d0297d34fa6e","user":{"login":"Recidiviz","id":35868122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1ODY4MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/35868122?v=4","gravatar_id":"","url":"https://api.github.com/users/Recidiviz","html_url":"https://github.com/Recidiviz","followers_url":"https://api.github.com/users/Recidiviz/followers","following_url":"https://api.github.com/users/Recidiviz/following{/other_user}","gists_url":"https://api.github.com/users/Recidiviz/gists{/gist_id}","starred_url":"https://api.github.com/users/Recidiviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recidiviz/subscriptions","organizations_url":"https://api.github.com/users/Recidiviz/orgs","repos_url":"https://api.github.com/users/Recidiviz/repos","events_url":"https://api.github.com/users/Recidiviz/events{/privacy}","received_events_url":"https://api.github.com/users/Recidiviz/received_events","type":"Organization","site_admin":false},"repo":{"id":108306686,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgzMDY2ODY=","name":"recidiviz-data","full_name":"Recidiviz/recidiviz-data","private":false,"owner":{"login":"Recidiviz","id":35868122,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1ODY4MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/35868122?v=4","gravatar_id":"","url":"https://api.github.com/users/Recidiviz","html_url":"https://github.com/Recidiviz","followers_url":"https://api.github.com/users/Recidiviz/followers","following_url":"https://api.github.com/users/Recidiviz/following{/other_user}","gists_url":"https://api.github.com/users/Recidiviz/gists{/gist_id}","starred_url":"https://api.github.com/users/Recidiviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recidiviz/subscriptions","organizations_url":"https://api.github.com/users/Recidiviz/orgs","repos_url":"https://api.github.com/users/Recidiviz/repos","events_url":"https://api.github.com/users/Recidiviz/events{/privacy}","received_events_url":"https://api.github.com/users/Recidiviz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Recidiviz/recidiviz-data","description":"Ingesting prison and jail records from various data sources and calculating criminal justice metrics","fork":false,"url":"https://api.github.com/repos/Recidiviz/recidiviz-data","forks_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/forks","keys_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/teams","hooks_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/hooks","issue_events_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/events{/number}","events_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/events","assignees_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/assignees{/user}","branches_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/branches{/branch}","tags_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/tags","blobs_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/statuses/{sha}","languages_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/languages","stargazers_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/stargazers","contributors_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/contributors","subscribers_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/subscribers","subscription_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/subscription","commits_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/contents/{+path}","compare_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/merges","archive_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/downloads","issues_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues{/number}","pulls_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls{/number}","milestones_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/milestones{/number}","notifications_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/labels{/name}","releases_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/releases{/id}","deployments_url":"https://api.github.com/repos/Recidiviz/recidiviz-data/deployments","created_at":"2017-10-25T18:04:59Z","updated_at":"2018-12-06T15:51:51Z","pushed_at":"2018-12-06T17:17:08Z","git_url":"git://github.com/Recidiviz/recidiviz-data.git","ssh_url":"git@github.com:Recidiviz/recidiviz-data.git","clone_url":"https://github.com/Recidiviz/recidiviz-data.git","svn_url":"https://github.com/Recidiviz/recidiviz-data","homepage":"","size":4822,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":7,"open_issues":78,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258"},"html":{"href":"https://github.com/Recidiviz/recidiviz-data/pull/258"},"issue":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/258"},"comments":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/issues/258/comments"},"review_comments":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258/comments"},"review_comment":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/pulls/258/commits"},"statuses":{"href":"https://api.github.com/repos/Recidiviz/recidiviz-data/statuses/fcb849ba63d584f3996971cb6ed200df2560d4e1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"arian487"}}