{"action":"created","comment":{"url":"https://api.github.com/repos/ca-cwds/CALS/pulls/comments/149834076","pull_request_review_id":75293031,"id":149834076,"diff_hunk":"@@ -0,0 +1,118 @@\n+import React from 'react'\n+import Immutable from 'immutable'\n+import {InputComponent} from 'components/common/inputFields'\n+import {TextAreaComponent} from 'components/common/textArea'\n+import {DropDownField} from 'components/common/dropDownField'\n+import {DateField} from '../../components/common/dateFields'\n+import CompleteNameFields from './../rfa01a_edit_view/completeNameField'\n+import CommonAddressFields from 'components/rfa_forms/commonAddressField'\n+import {dictionaryNilSelect, getDictionaryId, FormatDateForPersistance, FormatDateForDisplay} from 'helpers/commonHelper.jsx'\n+import {arrayLastToFirst, checkForNameValidation} from 'helpers/cardsHelper.jsx'\n+import {yesNo} from 'constants/constants'\n+import {BinarySelectorField} from 'components/common/binarySelectorField'\n+import {fieldErrorsAsImmutableSet} from 'helpers/validationHelper.jsx'\n+\n+const dateValidator = {rule: 'isValidDate', message: 'date is invalid'}\n+\n+export default class DesiredChildCard extends React.Component {\n+  constructor (props) {\n+    super(props)\n+    this.props.validator.addFieldValidation(this.props.idPrefix + 'date_of_birth', dateValidator)\n+    this.onChange = this.onChange.bind(this)\n+  }\n+\n+  onChange (key, value, index) {\n+    let newData = Immutable.fromJS(this.props.desiredChild)\n+    newData = newData.set(key, value)\n+    this.props.setParentState('identified_children', newData.toJS(), this.props.index)\n+  }\n+\n+  handleAddressChange (key, value, index) {\n+    let schoolAddressObj = Immutable.fromJS(this.props.desiredChild.school_address)\n+    schoolAddressObj = schoolAddressObj.set(key, value)\n+    this.props.setParentState('school_address', schoolAddressObj.toJS(), index)\n+  }\n+\n+  render () {\n+    const child = this.props.desiredChild\n+    return (\n+      <form>\n+        <div className='col-md-12'>\n+          {/* <DropDownField id='child_identified' gridClassName='col-md-12'\n+          selectClassName='reusable-select col-md-4'\n+          value={(this.props.desiredChildSection.child_identified)}\n+          optionList={yesNo.items}\n+          type='radio'\n+          label={'Is the child currently in your home?'}\n+          onChange={(event) => this.props.setParentState('child_identified', event.target.selectedOptions[0].value)} /> */}\n+        </div>\n+\n+        <div className='card-header'>Name of Child</div>\n+        <CompleteNameFields\n+          index={0}","path":"app/javascript/rfa_forms/rfa01c_edit_view/desiredChildcard.jsx","position":52,"original_position":52,"commit_id":"30ad3fb4c06bdbd3df76c4ae151127005028cdfc","original_commit_id":"5463131a614b184389152ecd8b7971fca76c34d1","user":{"login":"Nasir2712","id":8887704,"avatar_url":"https://avatars1.githubusercontent.com/u/8887704?v=4","gravatar_id":"","url":"https://api.github.com/users/Nasir2712","html_url":"https://github.com/Nasir2712","followers_url":"https://api.github.com/users/Nasir2712/followers","following_url":"https://api.github.com/users/Nasir2712/following{/other_user}","gists_url":"https://api.github.com/users/Nasir2712/gists{/gist_id}","starred_url":"https://api.github.com/users/Nasir2712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nasir2712/subscriptions","organizations_url":"https://api.github.com/users/Nasir2712/orgs","repos_url":"https://api.github.com/users/Nasir2712/repos","events_url":"https://api.github.com/users/Nasir2712/events{/privacy}","received_events_url":"https://api.github.com/users/Nasir2712/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2017-11-09T00:04:04Z","updated_at":"2017-11-09T00:04:04Z","html_url":"https://github.com/ca-cwds/CALS/pull/215#discussion_r149834076","pull_request_url":"https://api.github.com/repos/ca-cwds/CALS/pulls/215","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/comments/149834076"},"html":{"href":"https://github.com/ca-cwds/CALS/pull/215#discussion_r149834076"},"pull_request":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/215"}},"in_reply_to_id":149830392},"pull_request":{"url":"https://api.github.com/repos/ca-cwds/CALS/pulls/215","id":148737909,"html_url":"https://github.com/ca-cwds/CALS/pull/215","diff_url":"https://github.com/ca-cwds/CALS/pull/215.diff","patch_url":"https://github.com/ca-cwds/CALS/pull/215.patch","issue_url":"https://api.github.com/repos/ca-cwds/CALS/issues/215","number":215,"state":"open","locked":false,"title":"RFA01C","user":{"login":"lavanyareddyreddy","id":15152893,"avatar_url":"https://avatars2.githubusercontent.com/u/15152893?v=4","gravatar_id":"","url":"https://api.github.com/users/lavanyareddyreddy","html_url":"https://github.com/lavanyareddyreddy","followers_url":"https://api.github.com/users/lavanyareddyreddy/followers","following_url":"https://api.github.com/users/lavanyareddyreddy/following{/other_user}","gists_url":"https://api.github.com/users/lavanyareddyreddy/gists{/gist_id}","starred_url":"https://api.github.com/users/lavanyareddyreddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavanyareddyreddy/subscriptions","organizations_url":"https://api.github.com/users/lavanyareddyreddy/orgs","repos_url":"https://api.github.com/users/lavanyareddyreddy/repos","events_url":"https://api.github.com/users/lavanyareddyreddy/events{/privacy}","received_events_url":"https://api.github.com/users/lavanyareddyreddy/received_events","type":"User","site_admin":false},"body":"#### What tests were added (if relevant), and do all tests (rspec, karma, and integration CALS tests) pass?\r\n- Yes, rspec and karma\r\n\r\n#### Which User story does this relate to?\r\n- #151572413\r\n\r\n#### Brief feature description\r\n- RFA 01C - Child Desired - Has Child Been Identified/Child in Home - Education\r\n\r\n#### Does this PR block/effect other stories?\r\n- yes\r\n\r\n#### Do any commands needs to be run in order to run the project with this PR?\r\n- npm run karma\r\n\r\n#### Code coverage percent diff as a result of this PR?\r\n- 84%\r\n\r\n#### JS errors diff as a result of this PR?\r\n- n/a\r\n","created_at":"2017-10-25T17:55:05Z","updated_at":"2017-11-09T00:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb17300d866ee5666964afe9be6f10905e5b6b43","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ca-cwds/CALS/pulls/215/commits","review_comments_url":"https://api.github.com/repos/ca-cwds/CALS/pulls/215/comments","review_comment_url":"https://api.github.com/repos/ca-cwds/CALS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ca-cwds/CALS/issues/215/comments","statuses_url":"https://api.github.com/repos/ca-cwds/CALS/statuses/30ad3fb4c06bdbd3df76c4ae151127005028cdfc","head":{"label":"ca-cwds:rfa_01c_section_to_application","ref":"rfa_01c_section_to_application","sha":"30ad3fb4c06bdbd3df76c4ae151127005028cdfc","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":85239919,"name":"CALS","full_name":"ca-cwds/CALS","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/CALS","description":null,"fork":false,"url":"https://api.github.com/repos/ca-cwds/CALS","forks_url":"https://api.github.com/repos/ca-cwds/CALS/forks","keys_url":"https://api.github.com/repos/ca-cwds/CALS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/CALS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/CALS/teams","hooks_url":"https://api.github.com/repos/ca-cwds/CALS/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/CALS/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/CALS/events","assignees_url":"https://api.github.com/repos/ca-cwds/CALS/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/CALS/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/CALS/tags","blobs_url":"https://api.github.com/repos/ca-cwds/CALS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/CALS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/CALS/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/CALS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/CALS/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/CALS/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/CALS/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/CALS/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/CALS/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/CALS/subscription","commits_url":"https://api.github.com/repos/ca-cwds/CALS/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/CALS/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/CALS/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/CALS/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/CALS/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/CALS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/CALS/merges","archive_url":"https://api.github.com/repos/ca-cwds/CALS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/CALS/downloads","issues_url":"https://api.github.com/repos/ca-cwds/CALS/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/CALS/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/CALS/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/CALS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/CALS/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/CALS/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/CALS/deployments","created_at":"2017-03-16T20:43:57Z","updated_at":"2017-09-13T21:20:33Z","pushed_at":"2017-11-08T23:58:49Z","git_url":"git://github.com/ca-cwds/CALS.git","ssh_url":"git@github.com:ca-cwds/CALS.git","clone_url":"https://github.com/ca-cwds/CALS.git","svn_url":"https://github.com/ca-cwds/CALS","homepage":null,"size":30815,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":1,"default_branch":"development"}},"base":{"label":"ca-cwds:development","ref":"development","sha":"c969f11fe759667d9fd7ce7ecc9d788be664b6fb","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":85239919,"name":"CALS","full_name":"ca-cwds/CALS","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/CALS","description":null,"fork":false,"url":"https://api.github.com/repos/ca-cwds/CALS","forks_url":"https://api.github.com/repos/ca-cwds/CALS/forks","keys_url":"https://api.github.com/repos/ca-cwds/CALS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/CALS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/CALS/teams","hooks_url":"https://api.github.com/repos/ca-cwds/CALS/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/CALS/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/CALS/events","assignees_url":"https://api.github.com/repos/ca-cwds/CALS/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/CALS/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/CALS/tags","blobs_url":"https://api.github.com/repos/ca-cwds/CALS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/CALS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/CALS/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/CALS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/CALS/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/CALS/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/CALS/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/CALS/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/CALS/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/CALS/subscription","commits_url":"https://api.github.com/repos/ca-cwds/CALS/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/CALS/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/CALS/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/CALS/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/CALS/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/CALS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/CALS/merges","archive_url":"https://api.github.com/repos/ca-cwds/CALS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/CALS/downloads","issues_url":"https://api.github.com/repos/ca-cwds/CALS/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/CALS/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/CALS/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/CALS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/CALS/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/CALS/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/CALS/deployments","created_at":"2017-03-16T20:43:57Z","updated_at":"2017-09-13T21:20:33Z","pushed_at":"2017-11-08T23:58:49Z","git_url":"git://github.com/ca-cwds/CALS.git","ssh_url":"git@github.com:ca-cwds/CALS.git","clone_url":"https://github.com/ca-cwds/CALS.git","svn_url":"https://github.com/ca-cwds/CALS","homepage":null,"size":30815,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/215"},"html":{"href":"https://github.com/ca-cwds/CALS/pull/215"},"issue":{"href":"https://api.github.com/repos/ca-cwds/CALS/issues/215"},"comments":{"href":"https://api.github.com/repos/ca-cwds/CALS/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ca-cwds/CALS/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/ca-cwds/CALS/statuses/30ad3fb4c06bdbd3df76c4ae151127005028cdfc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Nasir2712"}}