{"action":"created","comment":{"url":"https://api.github.com/repos/overture-stack/arranger/pulls/comments/167252846","pull_request_review_id":95450440,"id":167252846,"diff_hunk":"@@ -0,0 +1,108 @@\n+import React from 'react';\n+import FacetViewNode from './FacetViewNode';\n+import $ from 'jquery';\n+import { debounce } from 'lodash';\n+\n+const serializeToDomId = path => path.split('.').join('__');\n+const serializeDomIdToPath = path => path.split('.').join('__');\n+\n+export default class FacetView extends React.Component {\n+  state = {\n+    isAnimating: false,\n+  };\n+  componentWillReceiveProps({\n+    selectedMapping,\n+    path: selectedPath,\n+    aggregations,\n+    disPlayTreeData,\n+  }) {\n+    if (selectedPath) {\n+      this.scrollToPath(selectedPath);\n+    }\n+  }\n+\n+  scrollToPath = path => {\n+    const targetElementId = serializeToDomId(path);\n+    const targetElement = $(this.root).find(`#${targetElementId}`);\n+    if (targetElement) {\n+      this.setState({ isAnimating: true });\n+      $(this.root)\n+        .stop()\n+        .animate(\n+          {\n+            scrollTop:\n+              $(this.root).scrollTop() +\n+              targetElement.offset().top -\n+              $(this.root).offset().top,\n+          },\n+          {\n+            duration: 500,\n+            complete: () => this.stopScrollAnimation(),\n+          },\n+        );\n+    }\n+  };\n+\n+  stopScrollAnimation = () => {\n+    $(this.root).stop();\n+    this.setState({ isAnimating: false });\n+  };\n+\n+  onScroll = debounce(e => {","path":"modules/components/src/AdvancedFacetView/FacetView.js","position":null,"original_position":51,"commit_id":"704456ae0085592c14a3abb49648fcf3054819a8","original_commit_id":"bccdfe292007c2ba694d43a5866021254ec7e1c2","user":{"login":"hlminh2000","id":11821106,"avatar_url":"https://avatars3.githubusercontent.com/u/11821106?v=4","gravatar_id":"","url":"https://api.github.com/users/hlminh2000","html_url":"https://github.com/hlminh2000","followers_url":"https://api.github.com/users/hlminh2000/followers","following_url":"https://api.github.com/users/hlminh2000/following{/other_user}","gists_url":"https://api.github.com/users/hlminh2000/gists{/gist_id}","starred_url":"https://api.github.com/users/hlminh2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlminh2000/subscriptions","organizations_url":"https://api.github.com/users/hlminh2000/orgs","repos_url":"https://api.github.com/users/hlminh2000/repos","events_url":"https://api.github.com/users/hlminh2000/events{/privacy}","received_events_url":"https://api.github.com/users/hlminh2000/received_events","type":"User","site_admin":false},"body":"I will opt for the refactoring we talked about yesterday to remove the extra feature so I don't we'll need to worry about this :)","created_at":"2018-02-09T15:12:03Z","updated_at":"2018-02-09T15:12:03Z","html_url":"https://github.com/overture-stack/arranger/pull/119#discussion_r167252846","pull_request_url":"https://api.github.com/repos/overture-stack/arranger/pulls/119","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/comments/167252846"},"html":{"href":"https://github.com/overture-stack/arranger/pull/119#discussion_r167252846"},"pull_request":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/119"}},"in_reply_to_id":167003368},"pull_request":{"url":"https://api.github.com/repos/overture-stack/arranger/pulls/119","id":167261927,"html_url":"https://github.com/overture-stack/arranger/pull/119","diff_url":"https://github.com/overture-stack/arranger/pull/119.diff","patch_url":"https://github.com/overture-stack/arranger/pull/119.patch","issue_url":"https://api.github.com/repos/overture-stack/arranger/issues/119","number":119,"state":"open","locked":false,"title":"✨ Feat/advanced facet view","user":{"login":"hlminh2000","id":11821106,"avatar_url":"https://avatars3.githubusercontent.com/u/11821106?v=4","gravatar_id":"","url":"https://api.github.com/users/hlminh2000","html_url":"https://github.com/hlminh2000","followers_url":"https://api.github.com/users/hlminh2000/followers","following_url":"https://api.github.com/users/hlminh2000/following{/other_user}","gists_url":"https://api.github.com/users/hlminh2000/gists{/gist_id}","starred_url":"https://api.github.com/users/hlminh2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlminh2000/subscriptions","organizations_url":"https://api.github.com/users/hlminh2000/orgs","repos_url":"https://api.github.com/users/hlminh2000/repos","events_url":"https://api.github.com/users/hlminh2000/events{/privacy}","received_events_url":"https://api.github.com/users/hlminh2000/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-05T21:40:45Z","updated_at":"2018-02-09T15:12:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ae3ef27de6ce37d14e190ea09b8c8dada0e76cb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/overture-stack/arranger/pulls/119/commits","review_comments_url":"https://api.github.com/repos/overture-stack/arranger/pulls/119/comments","review_comment_url":"https://api.github.com/repos/overture-stack/arranger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/overture-stack/arranger/issues/119/comments","statuses_url":"https://api.github.com/repos/overture-stack/arranger/statuses/704456ae0085592c14a3abb49648fcf3054819a8","head":{"label":"overture-stack:feat/advanced-facet-view","ref":"feat/advanced-facet-view","sha":"704456ae0085592c14a3abb49648fcf3054819a8","user":{"login":"overture-stack","id":32498250,"avatar_url":"https://avatars3.githubusercontent.com/u/32498250?v=4","gravatar_id":"","url":"https://api.github.com/users/overture-stack","html_url":"https://github.com/overture-stack","followers_url":"https://api.github.com/users/overture-stack/followers","following_url":"https://api.github.com/users/overture-stack/following{/other_user}","gists_url":"https://api.github.com/users/overture-stack/gists{/gist_id}","starred_url":"https://api.github.com/users/overture-stack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overture-stack/subscriptions","organizations_url":"https://api.github.com/users/overture-stack/orgs","repos_url":"https://api.github.com/users/overture-stack/repos","events_url":"https://api.github.com/users/overture-stack/events{/privacy}","received_events_url":"https://api.github.com/users/overture-stack/received_events","type":"Organization","site_admin":false},"repo":{"id":114295302,"name":"arranger","full_name":"overture-stack/arranger","owner":{"login":"overture-stack","id":32498250,"avatar_url":"https://avatars3.githubusercontent.com/u/32498250?v=4","gravatar_id":"","url":"https://api.github.com/users/overture-stack","html_url":"https://github.com/overture-stack","followers_url":"https://api.github.com/users/overture-stack/followers","following_url":"https://api.github.com/users/overture-stack/following{/other_user}","gists_url":"https://api.github.com/users/overture-stack/gists{/gist_id}","starred_url":"https://api.github.com/users/overture-stack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overture-stack/subscriptions","organizations_url":"https://api.github.com/users/overture-stack/orgs","repos_url":"https://api.github.com/users/overture-stack/repos","events_url":"https://api.github.com/users/overture-stack/events{/privacy}","received_events_url":"https://api.github.com/users/overture-stack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/overture-stack/arranger","description":"🚧 Data Portal Generation","fork":false,"url":"https://api.github.com/repos/overture-stack/arranger","forks_url":"https://api.github.com/repos/overture-stack/arranger/forks","keys_url":"https://api.github.com/repos/overture-stack/arranger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/overture-stack/arranger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/overture-stack/arranger/teams","hooks_url":"https://api.github.com/repos/overture-stack/arranger/hooks","issue_events_url":"https://api.github.com/repos/overture-stack/arranger/issues/events{/number}","events_url":"https://api.github.com/repos/overture-stack/arranger/events","assignees_url":"https://api.github.com/repos/overture-stack/arranger/assignees{/user}","branches_url":"https://api.github.com/repos/overture-stack/arranger/branches{/branch}","tags_url":"https://api.github.com/repos/overture-stack/arranger/tags","blobs_url":"https://api.github.com/repos/overture-stack/arranger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/overture-stack/arranger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/overture-stack/arranger/git/refs{/sha}","trees_url":"https://api.github.com/repos/overture-stack/arranger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/overture-stack/arranger/statuses/{sha}","languages_url":"https://api.github.com/repos/overture-stack/arranger/languages","stargazers_url":"https://api.github.com/repos/overture-stack/arranger/stargazers","contributors_url":"https://api.github.com/repos/overture-stack/arranger/contributors","subscribers_url":"https://api.github.com/repos/overture-stack/arranger/subscribers","subscription_url":"https://api.github.com/repos/overture-stack/arranger/subscription","commits_url":"https://api.github.com/repos/overture-stack/arranger/commits{/sha}","git_commits_url":"https://api.github.com/repos/overture-stack/arranger/git/commits{/sha}","comments_url":"https://api.github.com/repos/overture-stack/arranger/comments{/number}","issue_comment_url":"https://api.github.com/repos/overture-stack/arranger/issues/comments{/number}","contents_url":"https://api.github.com/repos/overture-stack/arranger/contents/{+path}","compare_url":"https://api.github.com/repos/overture-stack/arranger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/overture-stack/arranger/merges","archive_url":"https://api.github.com/repos/overture-stack/arranger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/overture-stack/arranger/downloads","issues_url":"https://api.github.com/repos/overture-stack/arranger/issues{/number}","pulls_url":"https://api.github.com/repos/overture-stack/arranger/pulls{/number}","milestones_url":"https://api.github.com/repos/overture-stack/arranger/milestones{/number}","notifications_url":"https://api.github.com/repos/overture-stack/arranger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/overture-stack/arranger/labels{/name}","releases_url":"https://api.github.com/repos/overture-stack/arranger/releases{/id}","deployments_url":"https://api.github.com/repos/overture-stack/arranger/deployments","created_at":"2017-12-14T20:54:13Z","updated_at":"2018-02-05T20:19:28Z","pushed_at":"2018-02-09T14:30:38Z","git_url":"git://github.com/overture-stack/arranger.git","ssh_url":"git@github.com:overture-stack/arranger.git","clone_url":"https://github.com/overture-stack/arranger.git","svn_url":"https://github.com/overture-stack/arranger","homepage":null,"size":941,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":37,"watchers":4,"default_branch":"master"}},"base":{"label":"overture-stack:master","ref":"master","sha":"14287b2cfe97202765757f8e35a20bd44610279b","user":{"login":"overture-stack","id":32498250,"avatar_url":"https://avatars3.githubusercontent.com/u/32498250?v=4","gravatar_id":"","url":"https://api.github.com/users/overture-stack","html_url":"https://github.com/overture-stack","followers_url":"https://api.github.com/users/overture-stack/followers","following_url":"https://api.github.com/users/overture-stack/following{/other_user}","gists_url":"https://api.github.com/users/overture-stack/gists{/gist_id}","starred_url":"https://api.github.com/users/overture-stack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overture-stack/subscriptions","organizations_url":"https://api.github.com/users/overture-stack/orgs","repos_url":"https://api.github.com/users/overture-stack/repos","events_url":"https://api.github.com/users/overture-stack/events{/privacy}","received_events_url":"https://api.github.com/users/overture-stack/received_events","type":"Organization","site_admin":false},"repo":{"id":114295302,"name":"arranger","full_name":"overture-stack/arranger","owner":{"login":"overture-stack","id":32498250,"avatar_url":"https://avatars3.githubusercontent.com/u/32498250?v=4","gravatar_id":"","url":"https://api.github.com/users/overture-stack","html_url":"https://github.com/overture-stack","followers_url":"https://api.github.com/users/overture-stack/followers","following_url":"https://api.github.com/users/overture-stack/following{/other_user}","gists_url":"https://api.github.com/users/overture-stack/gists{/gist_id}","starred_url":"https://api.github.com/users/overture-stack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overture-stack/subscriptions","organizations_url":"https://api.github.com/users/overture-stack/orgs","repos_url":"https://api.github.com/users/overture-stack/repos","events_url":"https://api.github.com/users/overture-stack/events{/privacy}","received_events_url":"https://api.github.com/users/overture-stack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/overture-stack/arranger","description":"🚧 Data Portal Generation","fork":false,"url":"https://api.github.com/repos/overture-stack/arranger","forks_url":"https://api.github.com/repos/overture-stack/arranger/forks","keys_url":"https://api.github.com/repos/overture-stack/arranger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/overture-stack/arranger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/overture-stack/arranger/teams","hooks_url":"https://api.github.com/repos/overture-stack/arranger/hooks","issue_events_url":"https://api.github.com/repos/overture-stack/arranger/issues/events{/number}","events_url":"https://api.github.com/repos/overture-stack/arranger/events","assignees_url":"https://api.github.com/repos/overture-stack/arranger/assignees{/user}","branches_url":"https://api.github.com/repos/overture-stack/arranger/branches{/branch}","tags_url":"https://api.github.com/repos/overture-stack/arranger/tags","blobs_url":"https://api.github.com/repos/overture-stack/arranger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/overture-stack/arranger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/overture-stack/arranger/git/refs{/sha}","trees_url":"https://api.github.com/repos/overture-stack/arranger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/overture-stack/arranger/statuses/{sha}","languages_url":"https://api.github.com/repos/overture-stack/arranger/languages","stargazers_url":"https://api.github.com/repos/overture-stack/arranger/stargazers","contributors_url":"https://api.github.com/repos/overture-stack/arranger/contributors","subscribers_url":"https://api.github.com/repos/overture-stack/arranger/subscribers","subscription_url":"https://api.github.com/repos/overture-stack/arranger/subscription","commits_url":"https://api.github.com/repos/overture-stack/arranger/commits{/sha}","git_commits_url":"https://api.github.com/repos/overture-stack/arranger/git/commits{/sha}","comments_url":"https://api.github.com/repos/overture-stack/arranger/comments{/number}","issue_comment_url":"https://api.github.com/repos/overture-stack/arranger/issues/comments{/number}","contents_url":"https://api.github.com/repos/overture-stack/arranger/contents/{+path}","compare_url":"https://api.github.com/repos/overture-stack/arranger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/overture-stack/arranger/merges","archive_url":"https://api.github.com/repos/overture-stack/arranger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/overture-stack/arranger/downloads","issues_url":"https://api.github.com/repos/overture-stack/arranger/issues{/number}","pulls_url":"https://api.github.com/repos/overture-stack/arranger/pulls{/number}","milestones_url":"https://api.github.com/repos/overture-stack/arranger/milestones{/number}","notifications_url":"https://api.github.com/repos/overture-stack/arranger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/overture-stack/arranger/labels{/name}","releases_url":"https://api.github.com/repos/overture-stack/arranger/releases{/id}","deployments_url":"https://api.github.com/repos/overture-stack/arranger/deployments","created_at":"2017-12-14T20:54:13Z","updated_at":"2018-02-05T20:19:28Z","pushed_at":"2018-02-09T14:30:38Z","git_url":"git://github.com/overture-stack/arranger.git","ssh_url":"git@github.com:overture-stack/arranger.git","clone_url":"https://github.com/overture-stack/arranger.git","svn_url":"https://github.com/overture-stack/arranger","homepage":null,"size":941,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":37,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/119"},"html":{"href":"https://github.com/overture-stack/arranger/pull/119"},"issue":{"href":"https://api.github.com/repos/overture-stack/arranger/issues/119"},"comments":{"href":"https://api.github.com/repos/overture-stack/arranger/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/overture-stack/arranger/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/overture-stack/arranger/statuses/704456ae0085592c14a3abb49648fcf3054819a8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hlminh2000"}}