{"action":"created","comment":{"url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/comments/175390812","pull_request_review_id":104909517,"id":175390812,"diff_hunk":"@@ -0,0 +1,52 @@\n+/*\n+  *\n+  * Copyright 2017 Observational Health Data Sciences and Informatics\n+  * Licensed under the Apache License, Version 2.0 (the \"License\");\n+  * you may not use this file except in compliance with the License.\n+  * You may obtain a copy of the License at\n+  *\n+  *     http://www.apache.org/licenses/LICENSE-2.0\n+  *\n+  * Unless required by applicable law or agreed to in writing, software\n+  * distributed under the License is distributed on an \"AS IS\" BASIS,\n+  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+  * See the License for the specific language governing permissions and\n+  * limitations under the License.\n+  *\n+  * Company: Odysseus Data Services, Inc.\n+  * Product Owner/Architecture: Gregory Klebanov\n+  * Authors: Pavel Grafkin, Alexander Saltykov, Vitaly Koulakov, Anton Gackovka, Alexandr Ryabokon, Mikhail Mironov\n+  * Created: Monday, March 19, 2018 11:24 AM\n+  *\n+  */\n+\n+import React from 'react';\n+import BEMHelper from 'services/BemHelper';\n+\n+import './style.scss';\n+\n+const detectorRegexp = /(\\[b\\][^\\[]*\\[\\/b\\])/g;\n+const isHighlightedRegexp = /^(\\[b\\])[^\\[]*(\\[\\/b\\])$/g;\n+const classes = new BEMHelper('highlight');\n+\n+function Part({ value }) {\n+  const isMatch = isHighlightedRegexp.test(value);\n+  return (<span {...classes('part', { matched: isMatch })}>\n+    {value.replace(/\\[\\/?b\\]/g, ' ')}\n+  </span>);\n+}\n+\n+function Highlight(props) {\n+  const { field, value } = props;\n+\n+  return (    \n+    <div {...classes()}>\n+      <span {...classes('field')}>{field}</span>\n+      <div {...classes('value')}>\n+        {value.split(detectorRegexp).map(part => <Part value={part} />)}","path":"src/modules/Portal/components/Search/Results/List/ResultItem/components/Highlight/presenter.jsx","position":46,"original_position":46,"commit_id":"36106c75739d7c31ed910cf9e4d6e3971bf1c2bf","original_commit_id":"36106c75739d7c31ed910cf9e4d6e3971bf1c2bf","user":{"login":"johnSamilin","id":5821894,"avatar_url":"https://avatars2.githubusercontent.com/u/5821894?v=4","gravatar_id":"","url":"https://api.github.com/users/johnSamilin","html_url":"https://github.com/johnSamilin","followers_url":"https://api.github.com/users/johnSamilin/followers","following_url":"https://api.github.com/users/johnSamilin/following{/other_user}","gists_url":"https://api.github.com/users/johnSamilin/gists{/gist_id}","starred_url":"https://api.github.com/users/johnSamilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnSamilin/subscriptions","organizations_url":"https://api.github.com/users/johnSamilin/orgs","repos_url":"https://api.github.com/users/johnSamilin/repos","events_url":"https://api.github.com/users/johnSamilin/events{/privacy}","received_events_url":"https://api.github.com/users/johnSamilin/received_events","type":"User","site_admin":false},"body":"they will do the same job each time, won't they?","created_at":"2018-03-19T10:42:07Z","updated_at":"2018-03-19T10:42:07Z","html_url":"https://github.com/OHDSI/ArachneUI/pull/326#discussion_r175390812","pull_request_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/comments/175390812"},"html":{"href":"https://github.com/OHDSI/ArachneUI/pull/326#discussion_r175390812"},"pull_request":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326"}},"in_reply_to_id":175390113},"pull_request":{"url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326","id":175858408,"html_url":"https://github.com/OHDSI/ArachneUI/pull/326","diff_url":"https://github.com/OHDSI/ArachneUI/pull/326.diff","patch_url":"https://github.com/OHDSI/ArachneUI/pull/326.patch","issue_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/326","number":326,"state":"open","locked":false,"title":"Added PAPERS domain","user":{"login":"johnSamilin","id":5821894,"avatar_url":"https://avatars2.githubusercontent.com/u/5821894?v=4","gravatar_id":"","url":"https://api.github.com/users/johnSamilin","html_url":"https://github.com/johnSamilin","followers_url":"https://api.github.com/users/johnSamilin/followers","following_url":"https://api.github.com/users/johnSamilin/following{/other_user}","gists_url":"https://api.github.com/users/johnSamilin/gists{/gist_id}","starred_url":"https://api.github.com/users/johnSamilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnSamilin/subscriptions","organizations_url":"https://api.github.com/users/johnSamilin/orgs","repos_url":"https://api.github.com/users/johnSamilin/repos","events_url":"https://api.github.com/users/johnSamilin/events{/privacy}","received_events_url":"https://api.github.com/users/johnSamilin/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-19T10:31:35Z","updated_at":"2018-03-19T10:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36aea3ead359913c01689119cc8c1ecf5caf074c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"agackovka","id":4963106,"avatar_url":"https://avatars2.githubusercontent.com/u/4963106?v=4","gravatar_id":"","url":"https://api.github.com/users/agackovka","html_url":"https://github.com/agackovka","followers_url":"https://api.github.com/users/agackovka/followers","following_url":"https://api.github.com/users/agackovka/following{/other_user}","gists_url":"https://api.github.com/users/agackovka/gists{/gist_id}","starred_url":"https://api.github.com/users/agackovka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agackovka/subscriptions","organizations_url":"https://api.github.com/users/agackovka/orgs","repos_url":"https://api.github.com/users/agackovka/repos","events_url":"https://api.github.com/users/agackovka/events{/privacy}","received_events_url":"https://api.github.com/users/agackovka/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326/commits","review_comments_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326/comments","review_comment_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/326/comments","statuses_url":"https://api.github.com/repos/OHDSI/ArachneUI/statuses/36106c75739d7c31ed910cf9e4d6e3971bf1c2bf","head":{"label":"OHDSI:ARACHNE-1852-Front-end-for-Arachne-global-search","ref":"ARACHNE-1852-Front-end-for-Arachne-global-search","sha":"36106c75739d7c31ed910cf9e4d6e3971bf1c2bf","user":{"login":"OHDSI","id":6570077,"avatar_url":"https://avatars1.githubusercontent.com/u/6570077?v=4","gravatar_id":"","url":"https://api.github.com/users/OHDSI","html_url":"https://github.com/OHDSI","followers_url":"https://api.github.com/users/OHDSI/followers","following_url":"https://api.github.com/users/OHDSI/following{/other_user}","gists_url":"https://api.github.com/users/OHDSI/gists{/gist_id}","starred_url":"https://api.github.com/users/OHDSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OHDSI/subscriptions","organizations_url":"https://api.github.com/users/OHDSI/orgs","repos_url":"https://api.github.com/users/OHDSI/repos","events_url":"https://api.github.com/users/OHDSI/events{/privacy}","received_events_url":"https://api.github.com/users/OHDSI/received_events","type":"Organization","site_admin":false},"repo":{"id":87432014,"name":"ArachneUI","full_name":"OHDSI/ArachneUI","owner":{"login":"OHDSI","id":6570077,"avatar_url":"https://avatars1.githubusercontent.com/u/6570077?v=4","gravatar_id":"","url":"https://api.github.com/users/OHDSI","html_url":"https://github.com/OHDSI","followers_url":"https://api.github.com/users/OHDSI/followers","following_url":"https://api.github.com/users/OHDSI/following{/other_user}","gists_url":"https://api.github.com/users/OHDSI/gists{/gist_id}","starred_url":"https://api.github.com/users/OHDSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OHDSI/subscriptions","organizations_url":"https://api.github.com/users/OHDSI/orgs","repos_url":"https://api.github.com/users/OHDSI/repos","events_url":"https://api.github.com/users/OHDSI/events{/privacy}","received_events_url":"https://api.github.com/users/OHDSI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OHDSI/ArachneUI","description":"Network infrastructure for collaborative studies across disparate data nodes and researches","fork":false,"url":"https://api.github.com/repos/OHDSI/ArachneUI","forks_url":"https://api.github.com/repos/OHDSI/ArachneUI/forks","keys_url":"https://api.github.com/repos/OHDSI/ArachneUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OHDSI/ArachneUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OHDSI/ArachneUI/teams","hooks_url":"https://api.github.com/repos/OHDSI/ArachneUI/hooks","issue_events_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/events{/number}","events_url":"https://api.github.com/repos/OHDSI/ArachneUI/events","assignees_url":"https://api.github.com/repos/OHDSI/ArachneUI/assignees{/user}","branches_url":"https://api.github.com/repos/OHDSI/ArachneUI/branches{/branch}","tags_url":"https://api.github.com/repos/OHDSI/ArachneUI/tags","blobs_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OHDSI/ArachneUI/statuses/{sha}","languages_url":"https://api.github.com/repos/OHDSI/ArachneUI/languages","stargazers_url":"https://api.github.com/repos/OHDSI/ArachneUI/stargazers","contributors_url":"https://api.github.com/repos/OHDSI/ArachneUI/contributors","subscribers_url":"https://api.github.com/repos/OHDSI/ArachneUI/subscribers","subscription_url":"https://api.github.com/repos/OHDSI/ArachneUI/subscription","commits_url":"https://api.github.com/repos/OHDSI/ArachneUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/OHDSI/ArachneUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/OHDSI/ArachneUI/contents/{+path}","compare_url":"https://api.github.com/repos/OHDSI/ArachneUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OHDSI/ArachneUI/merges","archive_url":"https://api.github.com/repos/OHDSI/ArachneUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OHDSI/ArachneUI/downloads","issues_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues{/number}","pulls_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls{/number}","milestones_url":"https://api.github.com/repos/OHDSI/ArachneUI/milestones{/number}","notifications_url":"https://api.github.com/repos/OHDSI/ArachneUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OHDSI/ArachneUI/labels{/name}","releases_url":"https://api.github.com/repos/OHDSI/ArachneUI/releases{/id}","deployments_url":"https://api.github.com/repos/OHDSI/ArachneUI/deployments","created_at":"2017-04-06T13:23:46Z","updated_at":"2018-03-16T15:22:18Z","pushed_at":"2018-03-19T10:31:35Z","git_url":"git://github.com/OHDSI/ArachneUI.git","ssh_url":"git@github.com:OHDSI/ArachneUI.git","clone_url":"https://github.com/OHDSI/ArachneUI.git","svn_url":"https://github.com/OHDSI/ArachneUI","homepage":null,"size":13891,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":8,"default_branch":"develop"}},"base":{"label":"OHDSI:develop","ref":"develop","sha":"82483b270d4b3ae2e3df6b05ff05a44100b24be9","user":{"login":"OHDSI","id":6570077,"avatar_url":"https://avatars1.githubusercontent.com/u/6570077?v=4","gravatar_id":"","url":"https://api.github.com/users/OHDSI","html_url":"https://github.com/OHDSI","followers_url":"https://api.github.com/users/OHDSI/followers","following_url":"https://api.github.com/users/OHDSI/following{/other_user}","gists_url":"https://api.github.com/users/OHDSI/gists{/gist_id}","starred_url":"https://api.github.com/users/OHDSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OHDSI/subscriptions","organizations_url":"https://api.github.com/users/OHDSI/orgs","repos_url":"https://api.github.com/users/OHDSI/repos","events_url":"https://api.github.com/users/OHDSI/events{/privacy}","received_events_url":"https://api.github.com/users/OHDSI/received_events","type":"Organization","site_admin":false},"repo":{"id":87432014,"name":"ArachneUI","full_name":"OHDSI/ArachneUI","owner":{"login":"OHDSI","id":6570077,"avatar_url":"https://avatars1.githubusercontent.com/u/6570077?v=4","gravatar_id":"","url":"https://api.github.com/users/OHDSI","html_url":"https://github.com/OHDSI","followers_url":"https://api.github.com/users/OHDSI/followers","following_url":"https://api.github.com/users/OHDSI/following{/other_user}","gists_url":"https://api.github.com/users/OHDSI/gists{/gist_id}","starred_url":"https://api.github.com/users/OHDSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OHDSI/subscriptions","organizations_url":"https://api.github.com/users/OHDSI/orgs","repos_url":"https://api.github.com/users/OHDSI/repos","events_url":"https://api.github.com/users/OHDSI/events{/privacy}","received_events_url":"https://api.github.com/users/OHDSI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OHDSI/ArachneUI","description":"Network infrastructure for collaborative studies across disparate data nodes and researches","fork":false,"url":"https://api.github.com/repos/OHDSI/ArachneUI","forks_url":"https://api.github.com/repos/OHDSI/ArachneUI/forks","keys_url":"https://api.github.com/repos/OHDSI/ArachneUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OHDSI/ArachneUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OHDSI/ArachneUI/teams","hooks_url":"https://api.github.com/repos/OHDSI/ArachneUI/hooks","issue_events_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/events{/number}","events_url":"https://api.github.com/repos/OHDSI/ArachneUI/events","assignees_url":"https://api.github.com/repos/OHDSI/ArachneUI/assignees{/user}","branches_url":"https://api.github.com/repos/OHDSI/ArachneUI/branches{/branch}","tags_url":"https://api.github.com/repos/OHDSI/ArachneUI/tags","blobs_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OHDSI/ArachneUI/statuses/{sha}","languages_url":"https://api.github.com/repos/OHDSI/ArachneUI/languages","stargazers_url":"https://api.github.com/repos/OHDSI/ArachneUI/stargazers","contributors_url":"https://api.github.com/repos/OHDSI/ArachneUI/contributors","subscribers_url":"https://api.github.com/repos/OHDSI/ArachneUI/subscribers","subscription_url":"https://api.github.com/repos/OHDSI/ArachneUI/subscription","commits_url":"https://api.github.com/repos/OHDSI/ArachneUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/OHDSI/ArachneUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/OHDSI/ArachneUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/OHDSI/ArachneUI/contents/{+path}","compare_url":"https://api.github.com/repos/OHDSI/ArachneUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OHDSI/ArachneUI/merges","archive_url":"https://api.github.com/repos/OHDSI/ArachneUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OHDSI/ArachneUI/downloads","issues_url":"https://api.github.com/repos/OHDSI/ArachneUI/issues{/number}","pulls_url":"https://api.github.com/repos/OHDSI/ArachneUI/pulls{/number}","milestones_url":"https://api.github.com/repos/OHDSI/ArachneUI/milestones{/number}","notifications_url":"https://api.github.com/repos/OHDSI/ArachneUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OHDSI/ArachneUI/labels{/name}","releases_url":"https://api.github.com/repos/OHDSI/ArachneUI/releases{/id}","deployments_url":"https://api.github.com/repos/OHDSI/ArachneUI/deployments","created_at":"2017-04-06T13:23:46Z","updated_at":"2018-03-16T15:22:18Z","pushed_at":"2018-03-19T10:31:35Z","git_url":"git://github.com/OHDSI/ArachneUI.git","ssh_url":"git@github.com:OHDSI/ArachneUI.git","clone_url":"https://github.com/OHDSI/ArachneUI.git","svn_url":"https://github.com/OHDSI/ArachneUI","homepage":null,"size":13891,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326"},"html":{"href":"https://github.com/OHDSI/ArachneUI/pull/326"},"issue":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/issues/326"},"comments":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/issues/326/comments"},"review_comments":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326/comments"},"review_comment":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/pulls/326/commits"},"statuses":{"href":"https://api.github.com/repos/OHDSI/ArachneUI/statuses/36106c75739d7c31ed910cf9e4d6e3971bf1c2bf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johnSamilin"}}