{"action":"opened","number":465,"pull_request":{"url":"https://api.github.com/repos/FluxNotes/flux/pulls/465","id":218675016,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4Njc1MDE2","html_url":"https://github.com/FluxNotes/flux/pull/465","diff_url":"https://github.com/FluxNotes/flux/pull/465.diff","patch_url":"https://github.com/FluxNotes/flux/pull/465.patch","issue_url":"https://api.github.com/repos/FluxNotes/flux/issues/465","number":465,"state":"open","locked":false,"title":"Scroll to structured data when opening source note.","user":{"login":"danlee1025","id":6588796,"node_id":"MDQ6VXNlcjY1ODg3OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6588796?v=4","gravatar_id":"","url":"https://api.github.com/users/danlee1025","html_url":"https://github.com/danlee1025","followers_url":"https://api.github.com/users/danlee1025/followers","following_url":"https://api.github.com/users/danlee1025/following{/other_user}","gists_url":"https://api.github.com/users/danlee1025/gists{/gist_id}","starred_url":"https://api.github.com/users/danlee1025/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlee1025/subscriptions","organizations_url":"https://api.github.com/users/danlee1025/orgs","repos_url":"https://api.github.com/users/danlee1025/repos","events_url":"https://api.github.com/users/danlee1025/events{/privacy}","received_events_url":"https://api.github.com/users/danlee1025/received_events","type":"User","site_admin":false},"body":"_Pull requests into Flux require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable (**N/A**) and :white_check_mark:._\r\n\r\nAddresses JIRA-1227.\r\n\r\n- Note now scrolls to structured data when using `Open Source Note` action.\r\n- Added entryIds to notes of hardcoded patients.\r\n\r\nPotential shortcoming:\r\n-  Requires a `setTimeout` of 0 in order to get scroll timing correct.  This doesn't seem to slow down the app too much as the loading animation is occurring but doesn't seem like the right way to fix this.  I played around with the React lifecycle functions but could not get the timing right.\r\n\r\nTo test:  Create a new note with structured data(disease status, toxicity, or staging) and fill the note with text.  Then click on the structured data on the targeted data panel and open source note.\r\n\r\n## Submitter:\r\n\r\n**Running the Application**\r\n\r\n- [x] Manually tested in Chrome\r\n- [ ] Manually tested in IE\r\n\r\n**Documentation**\r\n\r\n- [x] This pull request describes why these changes were made\r\n- [x] Recognizes any potential shortcomings/bugs in the description \r\n-  Cheat sheet is updated\r\n-  Demo script is updated \r\n-  Documentation on Wiki has been updated \r\n-  Additional technical components and libraries are documented and added to wiki as needed\r\n\r\n**NoteParser**\r\n\r\n-  Note parser has been updated if structured phrases change\r\n\r\n**Code Quality**\r\n\r\n- [x] 4-space indents - convert any tabs to spaces\r\n- [x] Use public class field syntax for binding functions - ex. handleChange = () => { ... };\r\n- [x] Code is commented\r\n\r\n**Tests**\r\n\r\n- [x] Existing tests passed\r\n-  Added Enzyme-UI tests for slim mode \r\n-  Added Enzyme-UI tests for full mode\r\n-  Added backend tests for new functionality added\r\n-  Added note parser examples to test new functionality\r\n\r\n\r\n## Reviewer 1: Name\r\n\r\n- [ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose\r\n- [ ] The tests appropriately test the new code, including edge cases\r\n- [ ] You have tried to break the code\r\n\r\n\r\n## Reviewer 2: Name\r\n\r\n- [ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose\r\n- [ ] The tests appropriately test the new code, including edge cases\r\n- [ ] You have tried to break the code\r\n","created_at":"2018-09-27T14:30:48Z","updated_at":"2018-09-27T14:30:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FluxNotes/flux/pulls/465/commits","review_comments_url":"https://api.github.com/repos/FluxNotes/flux/pulls/465/comments","review_comment_url":"https://api.github.com/repos/FluxNotes/flux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FluxNotes/flux/issues/465/comments","statuses_url":"https://api.github.com/repos/FluxNotes/flux/statuses/4def02038d8b70f7efccd88322f0c424944c6a82","head":{"label":"FluxNotes:scroll-open-source-note","ref":"scroll-open-source-note","sha":"4def02038d8b70f7efccd88322f0c424944c6a82","user":{"login":"FluxNotes","id":37755753,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzU1NzUz","avatar_url":"https://avatars0.githubusercontent.com/u/37755753?v=4","gravatar_id":"","url":"https://api.github.com/users/FluxNotes","html_url":"https://github.com/FluxNotes","followers_url":"https://api.github.com/users/FluxNotes/followers","following_url":"https://api.github.com/users/FluxNotes/following{/other_user}","gists_url":"https://api.github.com/users/FluxNotes/gists{/gist_id}","starred_url":"https://api.github.com/users/FluxNotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FluxNotes/subscriptions","organizations_url":"https://api.github.com/users/FluxNotes/orgs","repos_url":"https://api.github.com/users/FluxNotes/repos","events_url":"https://api.github.com/users/FluxNotes/events{/privacy}","received_events_url":"https://api.github.com/users/FluxNotes/received_events","type":"Organization","site_admin":false},"repo":{"id":90062848,"node_id":"MDEwOlJlcG9zaXRvcnk5MDA2Mjg0OA==","name":"flux","full_name":"FluxNotes/flux","private":false,"owner":{"login":"FluxNotes","id":37755753,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzU1NzUz","avatar_url":"https://avatars0.githubusercontent.com/u/37755753?v=4","gravatar_id":"","url":"https://api.github.com/users/FluxNotes","html_url":"https://github.com/FluxNotes","followers_url":"https://api.github.com/users/FluxNotes/followers","following_url":"https://api.github.com/users/FluxNotes/following{/other_user}","gists_url":"https://api.github.com/users/FluxNotes/gists{/gist_id}","starred_url":"https://api.github.com/users/FluxNotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FluxNotes/subscriptions","organizations_url":"https://api.github.com/users/FluxNotes/orgs","repos_url":"https://api.github.com/users/FluxNotes/repos","events_url":"https://api.github.com/users/FluxNotes/events{/privacy}","received_events_url":"https://api.github.com/users/FluxNotes/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/FluxNotes/flux","description":"Flux: Data Capture Prototype for Clinical Oncology ","fork":false,"url":"https://api.github.com/repos/FluxNotes/flux","forks_url":"https://api.github.com/repos/FluxNotes/flux/forks","keys_url":"https://api.github.com/repos/FluxNotes/flux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FluxNotes/flux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FluxNotes/flux/teams","hooks_url":"https://api.github.com/repos/FluxNotes/flux/hooks","issue_events_url":"https://api.github.com/repos/FluxNotes/flux/issues/events{/number}","events_url":"https://api.github.com/repos/FluxNotes/flux/events","assignees_url":"https://api.github.com/repos/FluxNotes/flux/assignees{/user}","branches_url":"https://api.github.com/repos/FluxNotes/flux/branches{/branch}","tags_url":"https://api.github.com/repos/FluxNotes/flux/tags","blobs_url":"https://api.github.com/repos/FluxNotes/flux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FluxNotes/flux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FluxNotes/flux/git/refs{/sha}","trees_url":"https://api.github.com/repos/FluxNotes/flux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FluxNotes/flux/statuses/{sha}","languages_url":"https://api.github.com/repos/FluxNotes/flux/languages","stargazers_url":"https://api.github.com/repos/FluxNotes/flux/stargazers","contributors_url":"https://api.github.com/repos/FluxNotes/flux/contributors","subscribers_url":"https://api.github.com/repos/FluxNotes/flux/subscribers","subscription_url":"https://api.github.com/repos/FluxNotes/flux/subscription","commits_url":"https://api.github.com/repos/FluxNotes/flux/commits{/sha}","git_commits_url":"https://api.github.com/repos/FluxNotes/flux/git/commits{/sha}","comments_url":"https://api.github.com/repos/FluxNotes/flux/comments{/number}","issue_comment_url":"https://api.github.com/repos/FluxNotes/flux/issues/comments{/number}","contents_url":"https://api.github.com/repos/FluxNotes/flux/contents/{+path}","compare_url":"https://api.github.com/repos/FluxNotes/flux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FluxNotes/flux/merges","archive_url":"https://api.github.com/repos/FluxNotes/flux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FluxNotes/flux/downloads","issues_url":"https://api.github.com/repos/FluxNotes/flux/issues{/number}","pulls_url":"https://api.github.com/repos/FluxNotes/flux/pulls{/number}","milestones_url":"https://api.github.com/repos/FluxNotes/flux/milestones{/number}","notifications_url":"https://api.github.com/repos/FluxNotes/flux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FluxNotes/flux/labels{/name}","releases_url":"https://api.github.com/repos/FluxNotes/flux/releases{/id}","deployments_url":"https://api.github.com/repos/FluxNotes/flux/deployments","created_at":"2017-05-02T18:02:07Z","updated_at":"2018-09-25T20:03:54Z","pushed_at":"2018-09-27T14:23:11Z","git_url":"git://github.com/FluxNotes/flux.git","ssh_url":"git@github.com:FluxNotes/flux.git","clone_url":"https://github.com/FluxNotes/flux.git","svn_url":"https://github.com/FluxNotes/flux","homepage":"","size":25199,"stargazers_count":7,"watchers_count":7,"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":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":6,"watchers":7,"default_branch":"master"}},"base":{"label":"FluxNotes:master","ref":"master","sha":"74ce6bccb32e211e977f9f8c9ba41be58b662a54","user":{"login":"FluxNotes","id":37755753,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzU1NzUz","avatar_url":"https://avatars0.githubusercontent.com/u/37755753?v=4","gravatar_id":"","url":"https://api.github.com/users/FluxNotes","html_url":"https://github.com/FluxNotes","followers_url":"https://api.github.com/users/FluxNotes/followers","following_url":"https://api.github.com/users/FluxNotes/following{/other_user}","gists_url":"https://api.github.com/users/FluxNotes/gists{/gist_id}","starred_url":"https://api.github.com/users/FluxNotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FluxNotes/subscriptions","organizations_url":"https://api.github.com/users/FluxNotes/orgs","repos_url":"https://api.github.com/users/FluxNotes/repos","events_url":"https://api.github.com/users/FluxNotes/events{/privacy}","received_events_url":"https://api.github.com/users/FluxNotes/received_events","type":"Organization","site_admin":false},"repo":{"id":90062848,"node_id":"MDEwOlJlcG9zaXRvcnk5MDA2Mjg0OA==","name":"flux","full_name":"FluxNotes/flux","private":false,"owner":{"login":"FluxNotes","id":37755753,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzU1NzUz","avatar_url":"https://avatars0.githubusercontent.com/u/37755753?v=4","gravatar_id":"","url":"https://api.github.com/users/FluxNotes","html_url":"https://github.com/FluxNotes","followers_url":"https://api.github.com/users/FluxNotes/followers","following_url":"https://api.github.com/users/FluxNotes/following{/other_user}","gists_url":"https://api.github.com/users/FluxNotes/gists{/gist_id}","starred_url":"https://api.github.com/users/FluxNotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FluxNotes/subscriptions","organizations_url":"https://api.github.com/users/FluxNotes/orgs","repos_url":"https://api.github.com/users/FluxNotes/repos","events_url":"https://api.github.com/users/FluxNotes/events{/privacy}","received_events_url":"https://api.github.com/users/FluxNotes/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/FluxNotes/flux","description":"Flux: Data Capture Prototype for Clinical Oncology ","fork":false,"url":"https://api.github.com/repos/FluxNotes/flux","forks_url":"https://api.github.com/repos/FluxNotes/flux/forks","keys_url":"https://api.github.com/repos/FluxNotes/flux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FluxNotes/flux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FluxNotes/flux/teams","hooks_url":"https://api.github.com/repos/FluxNotes/flux/hooks","issue_events_url":"https://api.github.com/repos/FluxNotes/flux/issues/events{/number}","events_url":"https://api.github.com/repos/FluxNotes/flux/events","assignees_url":"https://api.github.com/repos/FluxNotes/flux/assignees{/user}","branches_url":"https://api.github.com/repos/FluxNotes/flux/branches{/branch}","tags_url":"https://api.github.com/repos/FluxNotes/flux/tags","blobs_url":"https://api.github.com/repos/FluxNotes/flux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FluxNotes/flux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FluxNotes/flux/git/refs{/sha}","trees_url":"https://api.github.com/repos/FluxNotes/flux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FluxNotes/flux/statuses/{sha}","languages_url":"https://api.github.com/repos/FluxNotes/flux/languages","stargazers_url":"https://api.github.com/repos/FluxNotes/flux/stargazers","contributors_url":"https://api.github.com/repos/FluxNotes/flux/contributors","subscribers_url":"https://api.github.com/repos/FluxNotes/flux/subscribers","subscription_url":"https://api.github.com/repos/FluxNotes/flux/subscription","commits_url":"https://api.github.com/repos/FluxNotes/flux/commits{/sha}","git_commits_url":"https://api.github.com/repos/FluxNotes/flux/git/commits{/sha}","comments_url":"https://api.github.com/repos/FluxNotes/flux/comments{/number}","issue_comment_url":"https://api.github.com/repos/FluxNotes/flux/issues/comments{/number}","contents_url":"https://api.github.com/repos/FluxNotes/flux/contents/{+path}","compare_url":"https://api.github.com/repos/FluxNotes/flux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FluxNotes/flux/merges","archive_url":"https://api.github.com/repos/FluxNotes/flux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FluxNotes/flux/downloads","issues_url":"https://api.github.com/repos/FluxNotes/flux/issues{/number}","pulls_url":"https://api.github.com/repos/FluxNotes/flux/pulls{/number}","milestones_url":"https://api.github.com/repos/FluxNotes/flux/milestones{/number}","notifications_url":"https://api.github.com/repos/FluxNotes/flux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FluxNotes/flux/labels{/name}","releases_url":"https://api.github.com/repos/FluxNotes/flux/releases{/id}","deployments_url":"https://api.github.com/repos/FluxNotes/flux/deployments","created_at":"2017-05-02T18:02:07Z","updated_at":"2018-09-25T20:03:54Z","pushed_at":"2018-09-27T14:23:11Z","git_url":"git://github.com/FluxNotes/flux.git","ssh_url":"git@github.com:FluxNotes/flux.git","clone_url":"https://github.com/FluxNotes/flux.git","svn_url":"https://github.com/FluxNotes/flux","homepage":"","size":25199,"stargazers_count":7,"watchers_count":7,"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":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FluxNotes/flux/pulls/465"},"html":{"href":"https://github.com/FluxNotes/flux/pull/465"},"issue":{"href":"https://api.github.com/repos/FluxNotes/flux/issues/465"},"comments":{"href":"https://api.github.com/repos/FluxNotes/flux/issues/465/comments"},"review_comments":{"href":"https://api.github.com/repos/FluxNotes/flux/pulls/465/comments"},"review_comment":{"href":"https://api.github.com/repos/FluxNotes/flux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FluxNotes/flux/pulls/465/commits"},"statuses":{"href":"https://api.github.com/repos/FluxNotes/flux/statuses/4def02038d8b70f7efccd88322f0c424944c6a82"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":97,"deletions":21,"changed_files":9}}
{"actor":{"display_login":"danlee1025"}}