{"action":"created","comment":{"url":"https://api.github.com/repos/ca-cwds/intake/pulls/comments/147234076","pull_request_review_id":72302502,"id":147234076,"diff_hunk":"@@ -0,0 +1,23 @@\n+import {createSelector} from 'reselect'\n+import {List, Map} from 'immutable'\n+import {getInvestigationSelector} from 'selectors/investigationSelectors'\n+import {getAllegationTypesSelector} from 'selectors/systemCodeSelectors'\n+import nameFormatter from 'utils/nameFormatter'\n+\n+const systemCodeDisplayValue = (code, systemCodes) => systemCodes.find(\n+  (systemCode) => systemCode.get('code') === code, null, Map()\n+).get('value')\n+\n+export const getFormattedAllegationsSelector = createSelector(\n+  getInvestigationSelector,\n+  getAllegationTypesSelector,\n+  (investigation, allegationTypes) => (\n+    investigation.get('allegations', List()).map((allegation) => (\n+      Map({\n+        victim: nameFormatter(allegation.get('victim').toJS()),","path":"app/javascript/selectors/allegationShowSelectors.js","position":17,"original_position":17,"commit_id":"a82eb0254989fbcabdf40e0600972d074f925694","original_commit_id":"603feece2dab3ddecd2e37001f601ed238f8ab8e","user":{"login":"TylerOSI","id":33132169,"avatar_url":"https://avatars3.githubusercontent.com/u/33132169?v=4","gravatar_id":"","url":"https://api.github.com/users/TylerOSI","html_url":"https://github.com/TylerOSI","followers_url":"https://api.github.com/users/TylerOSI/followers","following_url":"https://api.github.com/users/TylerOSI/following{/other_user}","gists_url":"https://api.github.com/users/TylerOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerOSI/subscriptions","organizations_url":"https://api.github.com/users/TylerOSI/orgs","repos_url":"https://api.github.com/users/TylerOSI/repos","events_url":"https://api.github.com/users/TylerOSI/events{/privacy}","received_events_url":"https://api.github.com/users/TylerOSI/received_events","type":"User","site_admin":false},"body":"so its using 'Unknown Person' 👍 ","created_at":"2017-10-26T18:50:09Z","updated_at":"2017-10-26T18:50:09Z","html_url":"https://github.com/ca-cwds/intake/pull/361#discussion_r147234076","pull_request_url":"https://api.github.com/repos/ca-cwds/intake/pulls/361","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/comments/147234076"},"html":{"href":"https://github.com/ca-cwds/intake/pull/361#discussion_r147234076"},"pull_request":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/361"}},"in_reply_to_id":147225649},"pull_request":{"url":"https://api.github.com/repos/ca-cwds/intake/pulls/361","id":148977615,"html_url":"https://github.com/ca-cwds/intake/pull/361","diff_url":"https://github.com/ca-cwds/intake/pull/361.diff","patch_url":"https://github.com/ca-cwds/intake/pull/361.patch","issue_url":"https://api.github.com/repos/ca-cwds/intake/issues/361","number":361,"state":"open","locked":false,"title":"In 150375125 allegations on investigation","user":{"login":"saraOSI","id":26719864,"avatar_url":"https://avatars3.githubusercontent.com/u/26719864?v=4","gravatar_id":"","url":"https://api.github.com/users/saraOSI","html_url":"https://github.com/saraOSI","followers_url":"https://api.github.com/users/saraOSI/followers","following_url":"https://api.github.com/users/saraOSI/following{/other_user}","gists_url":"https://api.github.com/users/saraOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/saraOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraOSI/subscriptions","organizations_url":"https://api.github.com/users/saraOSI/orgs","repos_url":"https://api.github.com/users/saraOSI/repos","events_url":"https://api.github.com/users/saraOSI/events{/privacy}","received_events_url":"https://api.github.com/users/saraOSI/received_events","type":"User","site_admin":false},"body":"### Pivotal Story\r\n\r\n- [Show allegations information from the referral](https://www.pivotaltracker.com/story/show/150375125)\r\n\r\n### Purpose\r\nShow allegations on the investigations page\r\n\r\n### Background\r\nWe're shooting for parity with screenings for the first pass here, so no info on disposition, etc.\r\n\r\n### Questions for Reviewer\r\n\r\n\r\n### Notes for Reviewer\r\n\r\n\r\n### Testing Notes\r\n\r\n","created_at":"2017-10-26T16:01:32Z","updated_at":"2017-10-26T18:50:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cb9d29d7d6a7576d71a9ab7b3b61d53bac8f927","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ca-cwds/intake/pulls/361/commits","review_comments_url":"https://api.github.com/repos/ca-cwds/intake/pulls/361/comments","review_comment_url":"https://api.github.com/repos/ca-cwds/intake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ca-cwds/intake/issues/361/comments","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/a82eb0254989fbcabdf40e0600972d074f925694","head":{"label":"ca-cwds:in_150375125_allegations_on_investigation","ref":"in_150375125_allegations_on_investigation","sha":"a82eb0254989fbcabdf40e0600972d074f925694","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":69582220,"name":"intake","full_name":"ca-cwds/intake","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ca-cwds/intake","description":"The Casebook Intake Accelerator","fork":true,"url":"https://api.github.com/repos/ca-cwds/intake","forks_url":"https://api.github.com/repos/ca-cwds/intake/forks","keys_url":"https://api.github.com/repos/ca-cwds/intake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/intake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/intake/teams","hooks_url":"https://api.github.com/repos/ca-cwds/intake/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/intake/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/intake/events","assignees_url":"https://api.github.com/repos/ca-cwds/intake/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/intake/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/intake/tags","blobs_url":"https://api.github.com/repos/ca-cwds/intake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/intake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/intake/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/intake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/intake/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/intake/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/intake/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/intake/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/intake/subscription","commits_url":"https://api.github.com/repos/ca-cwds/intake/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/intake/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/intake/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/intake/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/intake/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/intake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/intake/merges","archive_url":"https://api.github.com/repos/ca-cwds/intake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/intake/downloads","issues_url":"https://api.github.com/repos/ca-cwds/intake/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/intake/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/intake/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/intake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/intake/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/intake/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/intake/deployments","created_at":"2016-09-29T15:42:09Z","updated_at":"2017-10-25T20:40:18Z","pushed_at":"2017-10-26T18:45:56Z","git_url":"git://github.com/ca-cwds/intake.git","ssh_url":"git@github.com:ca-cwds/intake.git","clone_url":"https://github.com/ca-cwds/intake.git","svn_url":"https://github.com/ca-cwds/intake","homepage":"","size":5461,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":6,"default_branch":"master"}},"base":{"label":"ca-cwds:master","ref":"master","sha":"c9da7f0a670bfa020ceaa52d6173181bd665d036","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":69582220,"name":"intake","full_name":"ca-cwds/intake","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ca-cwds/intake","description":"The Casebook Intake Accelerator","fork":true,"url":"https://api.github.com/repos/ca-cwds/intake","forks_url":"https://api.github.com/repos/ca-cwds/intake/forks","keys_url":"https://api.github.com/repos/ca-cwds/intake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/intake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/intake/teams","hooks_url":"https://api.github.com/repos/ca-cwds/intake/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/intake/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/intake/events","assignees_url":"https://api.github.com/repos/ca-cwds/intake/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/intake/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/intake/tags","blobs_url":"https://api.github.com/repos/ca-cwds/intake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/intake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/intake/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/intake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/intake/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/intake/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/intake/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/intake/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/intake/subscription","commits_url":"https://api.github.com/repos/ca-cwds/intake/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/intake/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/intake/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/intake/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/intake/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/intake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/intake/merges","archive_url":"https://api.github.com/repos/ca-cwds/intake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/intake/downloads","issues_url":"https://api.github.com/repos/ca-cwds/intake/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/intake/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/intake/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/intake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/intake/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/intake/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/intake/deployments","created_at":"2016-09-29T15:42:09Z","updated_at":"2017-10-25T20:40:18Z","pushed_at":"2017-10-26T18:45:56Z","git_url":"git://github.com/ca-cwds/intake.git","ssh_url":"git@github.com:ca-cwds/intake.git","clone_url":"https://github.com/ca-cwds/intake.git","svn_url":"https://github.com/ca-cwds/intake","homepage":"","size":5461,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/361"},"html":{"href":"https://github.com/ca-cwds/intake/pull/361"},"issue":{"href":"https://api.github.com/repos/ca-cwds/intake/issues/361"},"comments":{"href":"https://api.github.com/repos/ca-cwds/intake/issues/361/comments"},"review_comments":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/361/comments"},"review_comment":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/361/commits"},"statuses":{"href":"https://api.github.com/repos/ca-cwds/intake/statuses/a82eb0254989fbcabdf40e0600972d074f925694"}},"author_association":"NONE"}}
{"actor":{"display_login":"TylerOSI"}}