{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/comments/172579071","pull_request_review_id":101619415,"id":172579071,"diff_hunk":"@@ -78,6 +81,23 @@\n     function setDecision(id, decision) {\n       HoldingPenRecordService.setBatchDecision($scope.vm.invenioSearchResults.hits.hits, [+id], decision);\n     }\n+\n+    function onBestMatchSelected(workflowId){\n+      HoldingPenRecordService.setMatchDecision(workflowId, $scope.selectedBestMatchesById[workflowId])\n+        .then(function () {\n+          $scope.matched = true;","path":"src/inspirehep-holdingpen-js/holdingpen/holdingpen.controllers.js","position":23,"original_position":23,"commit_id":"eb4e467b2cdbbfd2783b1f444000b0713f4522d5","original_commit_id":"eb4e467b2cdbbfd2783b1f444000b0713f4522d5","user":{"login":"drjova","id":4287772,"avatar_url":"https://avatars3.githubusercontent.com/u/4287772?v=4","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"body":"this will affect the whole result list, it's better to handle it per ``workflowId ``","created_at":"2018-03-06T16:35:29Z","updated_at":"2018-03-06T16:35:29Z","html_url":"https://github.com/inspirehep/inspirehep-search-js/pull/65#discussion_r172579071","pull_request_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/comments/172579071"},"html":{"href":"https://github.com/inspirehep/inspirehep-search-js/pull/65#discussion_r172579071"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65","id":165472403,"html_url":"https://github.com/inspirehep/inspirehep-search-js/pull/65","diff_url":"https://github.com/inspirehep/inspirehep-search-js/pull/65.diff","patch_url":"https://github.com/inspirehep/inspirehep-search-js/pull/65.patch","issue_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/65","number":65,"state":"open","locked":false,"title":"provide ui for choosing best match of a record","user":{"login":"Dinika","id":11242410,"avatar_url":"https://avatars1.githubusercontent.com/u/11242410?v=4","gravatar_id":"","url":"https://api.github.com/users/Dinika","html_url":"https://github.com/Dinika","followers_url":"https://api.github.com/users/Dinika/followers","following_url":"https://api.github.com/users/Dinika/following{/other_user}","gists_url":"https://api.github.com/users/Dinika/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinika/subscriptions","organizations_url":"https://api.github.com/users/Dinika/orgs","repos_url":"https://api.github.com/users/Dinika/repos","events_url":"https://api.github.com/users/Dinika/events{/privacy}","received_events_url":"https://api.github.com/users/Dinika/received_events","type":"User","site_admin":false},"body":"Needs [#3150](https://github.com/inspirehep/inspire-next/pull/3150) on inspire-next for styling the UI\r\n\r\nOn the search results\r\n![screenshot from 2018-02-02 10-28-09](https://user-images.githubusercontent.com/11242410/35726239-74e191fe-0804-11e8-8004-77b287219d2f.png)\r\n\r\nOn detailed record page\r\n![screenshot from 2018-02-02 10-28-27](https://user-images.githubusercontent.com/11242410/35726458-42ef4e88-0805-11e8-9f29-6e01ff39bd55.png)\r\n\r\n\r\nSigned-off-by: Dinika Saxena <dinika.saxena@cern.ch>","created_at":"2018-01-26T22:10:16Z","updated_at":"2018-03-06T16:35:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92118fe6e6bdd54f3422cc8079a0485b256a113f","assignee":{"login":"Dinika","id":11242410,"avatar_url":"https://avatars1.githubusercontent.com/u/11242410?v=4","gravatar_id":"","url":"https://api.github.com/users/Dinika","html_url":"https://github.com/Dinika","followers_url":"https://api.github.com/users/Dinika/followers","following_url":"https://api.github.com/users/Dinika/following{/other_user}","gists_url":"https://api.github.com/users/Dinika/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinika/subscriptions","organizations_url":"https://api.github.com/users/Dinika/orgs","repos_url":"https://api.github.com/users/Dinika/repos","events_url":"https://api.github.com/users/Dinika/events{/privacy}","received_events_url":"https://api.github.com/users/Dinika/received_events","type":"User","site_admin":false},"assignees":[{"login":"harunurhan","id":4868667,"avatar_url":"https://avatars1.githubusercontent.com/u/4868667?v=4","gravatar_id":"","url":"https://api.github.com/users/harunurhan","html_url":"https://github.com/harunurhan","followers_url":"https://api.github.com/users/harunurhan/followers","following_url":"https://api.github.com/users/harunurhan/following{/other_user}","gists_url":"https://api.github.com/users/harunurhan/gists{/gist_id}","starred_url":"https://api.github.com/users/harunurhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harunurhan/subscriptions","organizations_url":"https://api.github.com/users/harunurhan/orgs","repos_url":"https://api.github.com/users/harunurhan/repos","events_url":"https://api.github.com/users/harunurhan/events{/privacy}","received_events_url":"https://api.github.com/users/harunurhan/received_events","type":"User","site_admin":false},{"login":"Dinika","id":11242410,"avatar_url":"https://avatars1.githubusercontent.com/u/11242410?v=4","gravatar_id":"","url":"https://api.github.com/users/Dinika","html_url":"https://github.com/Dinika","followers_url":"https://api.github.com/users/Dinika/followers","following_url":"https://api.github.com/users/Dinika/following{/other_user}","gists_url":"https://api.github.com/users/Dinika/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinika/subscriptions","organizations_url":"https://api.github.com/users/Dinika/orgs","repos_url":"https://api.github.com/users/Dinika/repos","events_url":"https://api.github.com/users/Dinika/events{/privacy}","received_events_url":"https://api.github.com/users/Dinika/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"ammirate","id":8048761,"avatar_url":"https://avatars0.githubusercontent.com/u/8048761?v=4","gravatar_id":"","url":"https://api.github.com/users/ammirate","html_url":"https://github.com/ammirate","followers_url":"https://api.github.com/users/ammirate/followers","following_url":"https://api.github.com/users/ammirate/following{/other_user}","gists_url":"https://api.github.com/users/ammirate/gists{/gist_id}","starred_url":"https://api.github.com/users/ammirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammirate/subscriptions","organizations_url":"https://api.github.com/users/ammirate/orgs","repos_url":"https://api.github.com/users/ammirate/repos","events_url":"https://api.github.com/users/ammirate/events{/privacy}","received_events_url":"https://api.github.com/users/ammirate/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":828440253,"url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/labels/Review:%20Ready%20for%20Review","name":"Review: Ready for Review","color":"75b1b8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/65/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/statuses/eb4e467b2cdbbfd2783b1f444000b0713f4522d5","head":{"label":"Dinika:record-matched","ref":"record-matched","sha":"eb4e467b2cdbbfd2783b1f444000b0713f4522d5","user":{"login":"Dinika","id":11242410,"avatar_url":"https://avatars1.githubusercontent.com/u/11242410?v=4","gravatar_id":"","url":"https://api.github.com/users/Dinika","html_url":"https://github.com/Dinika","followers_url":"https://api.github.com/users/Dinika/followers","following_url":"https://api.github.com/users/Dinika/following{/other_user}","gists_url":"https://api.github.com/users/Dinika/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinika/subscriptions","organizations_url":"https://api.github.com/users/Dinika/orgs","repos_url":"https://api.github.com/users/Dinika/repos","events_url":"https://api.github.com/users/Dinika/events{/privacy}","received_events_url":"https://api.github.com/users/Dinika/received_events","type":"User","site_admin":false},"repo":{"id":103264738,"name":"inspirehep-search-js","full_name":"Dinika/inspirehep-search-js","owner":{"login":"Dinika","id":11242410,"avatar_url":"https://avatars1.githubusercontent.com/u/11242410?v=4","gravatar_id":"","url":"https://api.github.com/users/Dinika","html_url":"https://github.com/Dinika","followers_url":"https://api.github.com/users/Dinika/followers","following_url":"https://api.github.com/users/Dinika/following{/other_user}","gists_url":"https://api.github.com/users/Dinika/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinika/subscriptions","organizations_url":"https://api.github.com/users/Dinika/orgs","repos_url":"https://api.github.com/users/Dinika/repos","events_url":"https://api.github.com/users/Dinika/events{/privacy}","received_events_url":"https://api.github.com/users/Dinika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dinika/inspirehep-search-js","description":"Angular JS application used in search results page","fork":true,"url":"https://api.github.com/repos/Dinika/inspirehep-search-js","forks_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/forks","keys_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/teams","hooks_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/hooks","issue_events_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/issues/events{/number}","events_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/events","assignees_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/assignees{/user}","branches_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/branches{/branch}","tags_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/tags","blobs_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/statuses/{sha}","languages_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/languages","stargazers_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/stargazers","contributors_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/contributors","subscribers_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/subscribers","subscription_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/subscription","commits_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/contents/{+path}","compare_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/merges","archive_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/downloads","issues_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/issues{/number}","pulls_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/pulls{/number}","milestones_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/milestones{/number}","notifications_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/labels{/name}","releases_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/releases{/id}","deployments_url":"https://api.github.com/repos/Dinika/inspirehep-search-js/deployments","created_at":"2017-09-12T11:58:01Z","updated_at":"2017-09-12T11:58:02Z","pushed_at":"2018-03-06T16:26:54Z","git_url":"git://github.com/Dinika/inspirehep-search-js.git","ssh_url":"git@github.com:Dinika/inspirehep-search-js.git","clone_url":"https://github.com/Dinika/inspirehep-search-js.git","svn_url":"https://github.com/Dinika/inspirehep-search-js","homepage":null,"size":263,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inspirehep:master","ref":"master","sha":"7c986be1e55a24132ea3de48e4198c325b170d6e","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":53311532,"name":"inspirehep-search-js","full_name":"inspirehep/inspirehep-search-js","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars3.githubusercontent.com/u/356664?v=4","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspirehep-search-js","description":"Angular JS application used in search results page","fork":false,"url":"https://api.github.com/repos/inspirehep/inspirehep-search-js","forks_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/forks","keys_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/events","assignees_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/merges","archive_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/releases{/id}","deployments_url":"https://api.github.com/repos/inspirehep/inspirehep-search-js/deployments","created_at":"2016-03-07T09:09:37Z","updated_at":"2016-11-10T17:32:34Z","pushed_at":"2018-03-06T16:26:56Z","git_url":"git://github.com/inspirehep/inspirehep-search-js.git","ssh_url":"git@github.com:inspirehep/inspirehep-search-js.git","clone_url":"https://github.com/inspirehep/inspirehep-search-js.git","svn_url":"https://github.com/inspirehep/inspirehep-search-js","homepage":null,"size":258,"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":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":16,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65"},"html":{"href":"https://github.com/inspirehep/inspirehep-search-js/pull/65"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/65"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspirehep-search-js/statuses/eb4e467b2cdbbfd2783b1f444000b0713f4522d5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"drjova"}}