{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments/59669536","id":59669536,"diff_hunk":"@@ -862,6 +901,11 @@\n                             scope.$apply(function() {\n                                 activityService.start(this.props.activity, {data: {item: this.props.item}});\n                             }.bind(this));\n+\n+                            if (_.contains(['spike', 'unspike'], this.props.activity.when)) {\n+                                $rootScope.$broadcast('multi:updateCount', this.props.item._id);","path":"scripts/superdesk-search/react.js","position":109,"original_position":109,"commit_id":"9648bcab031dba0156e452f23cb521f808276bdf","original_commit_id":"9648bcab031dba0156e452f23cb521f808276bdf","user":{"login":"petrjasek","id":179249,"avatar_url":"https://avatars.githubusercontent.com/u/179249?v=3","gravatar_id":"","url":"https://api.github.com/users/petrjasek","html_url":"https://github.com/petrjasek","followers_url":"https://api.github.com/users/petrjasek/followers","following_url":"https://api.github.com/users/petrjasek/following{/other_user}","gists_url":"https://api.github.com/users/petrjasek/gists{/gist_id}","starred_url":"https://api.github.com/users/petrjasek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrjasek/subscriptions","organizations_url":"https://api.github.com/users/petrjasek/orgs","repos_url":"https://api.github.com/users/petrjasek/repos","events_url":"https://api.github.com/users/petrjasek/events{/privacy}","received_events_url":"https://api.github.com/users/petrjasek/received_events","type":"User","site_admin":false},"body":"imo this would be better in some `item:spike` and `item:unspike` event handler, so it works also for other users via websockets and not only current user","created_at":"2016-04-14T06:45:51Z","updated_at":"2016-04-14T06:45:51Z","html_url":"https://github.com/superdesk/superdesk-client-core/pull/312#discussion_r59669536","pull_request_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments/59669536"},"html":{"href":"https://github.com/superdesk/superdesk-client-core/pull/312#discussion_r59669536"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312","id":66258591,"html_url":"https://github.com/superdesk/superdesk-client-core/pull/312","diff_url":"https://github.com/superdesk/superdesk-client-core/pull/312.diff","patch_url":"https://github.com/superdesk/superdesk-client-core/pull/312.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/312","number":312,"state":"open","locked":false,"title":"[SD 4030] Selected item count does not update properly after a selected item is killed","user":{"login":"sjunaid","id":10014395,"avatar_url":"https://avatars.githubusercontent.com/u/10014395?v=3","gravatar_id":"","url":"https://api.github.com/users/sjunaid","html_url":"https://github.com/sjunaid","followers_url":"https://api.github.com/users/sjunaid/followers","following_url":"https://api.github.com/users/sjunaid/following{/other_user}","gists_url":"https://api.github.com/users/sjunaid/gists{/gist_id}","starred_url":"https://api.github.com/users/sjunaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjunaid/subscriptions","organizations_url":"https://api.github.com/users/sjunaid/orgs","repos_url":"https://api.github.com/users/sjunaid/repos","events_url":"https://api.github.com/users/sjunaid/events{/privacy}","received_events_url":"https://api.github.com/users/sjunaid/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-13T02:49:30Z","updated_at":"2016-04-14T06:45:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb26c675b0a48f1ee9eb6cebdfc7184fcf211dd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/312/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/9648bcab031dba0156e452f23cb521f808276bdf","head":{"label":"sjunaid:sd-4030","ref":"sd-4030","sha":"9648bcab031dba0156e452f23cb521f808276bdf","user":{"login":"sjunaid","id":10014395,"avatar_url":"https://avatars.githubusercontent.com/u/10014395?v=3","gravatar_id":"","url":"https://api.github.com/users/sjunaid","html_url":"https://github.com/sjunaid","followers_url":"https://api.github.com/users/sjunaid/followers","following_url":"https://api.github.com/users/sjunaid/following{/other_user}","gists_url":"https://api.github.com/users/sjunaid/gists{/gist_id}","starred_url":"https://api.github.com/users/sjunaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjunaid/subscriptions","organizations_url":"https://api.github.com/users/sjunaid/orgs","repos_url":"https://api.github.com/users/sjunaid/repos","events_url":"https://api.github.com/users/sjunaid/events{/privacy}","received_events_url":"https://api.github.com/users/sjunaid/received_events","type":"User","site_admin":false},"repo":{"id":51117954,"name":"superdesk-client-core","full_name":"sjunaid/superdesk-client-core","owner":{"login":"sjunaid","id":10014395,"avatar_url":"https://avatars.githubusercontent.com/u/10014395?v=3","gravatar_id":"","url":"https://api.github.com/users/sjunaid","html_url":"https://github.com/sjunaid","followers_url":"https://api.github.com/users/sjunaid/followers","following_url":"https://api.github.com/users/sjunaid/following{/other_user}","gists_url":"https://api.github.com/users/sjunaid/gists{/gist_id}","starred_url":"https://api.github.com/users/sjunaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjunaid/subscriptions","organizations_url":"https://api.github.com/users/sjunaid/orgs","repos_url":"https://api.github.com/users/sjunaid/repos","events_url":"https://api.github.com/users/sjunaid/events{/privacy}","received_events_url":"https://api.github.com/users/sjunaid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjunaid/superdesk-client-core","description":"Common client modules for superdesk apps.","fork":true,"url":"https://api.github.com/repos/sjunaid/superdesk-client-core","forks_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/forks","keys_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/teams","hooks_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/hooks","issue_events_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/events","assignees_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/tags","blobs_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/languages","stargazers_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/stargazers","contributors_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/contributors","subscribers_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/subscribers","subscription_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/subscription","commits_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/merges","archive_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/downloads","issues_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/labels{/name}","releases_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/sjunaid/superdesk-client-core/deployments","created_at":"2016-02-05T01:18:11Z","updated_at":"2016-02-05T01:18:14Z","pushed_at":"2016-04-14T06:25:13Z","git_url":"git://github.com/sjunaid/superdesk-client-core.git","ssh_url":"git@github.com:sjunaid/superdesk-client-core.git","clone_url":"https://github.com/sjunaid/superdesk-client-core.git","svn_url":"https://github.com/sjunaid/superdesk-client-core","homepage":"","size":2785,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"superdesk:master","ref":"master","sha":"79ec0a2a8002c45239c4e91283ea45063ffa412e","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":50631400,"name":"superdesk-client-core","full_name":"superdesk/superdesk-client-core","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/superdesk-client-core","description":"Common client modules for superdesk apps.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk-client-core","forks_url":"https://api.github.com/repos/superdesk/superdesk-client-core/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk-client-core/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk-client-core/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk-client-core/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk-client-core/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk-client-core/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk-client-core/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk-client-core/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk-client-core/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk-client-core/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk-client-core/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk-client-core/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk-client-core/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/deployments","created_at":"2016-01-29T02:33:16Z","updated_at":"2016-02-01T00:37:29Z","pushed_at":"2016-04-14T06:32:04Z","git_url":"git://github.com/superdesk/superdesk-client-core.git","ssh_url":"git@github.com:superdesk/superdesk-client-core.git","clone_url":"https://github.com/superdesk/superdesk-client-core.git","svn_url":"https://github.com/superdesk/superdesk-client-core","homepage":"","size":2889,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":7,"forks":17,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312"},"html":{"href":"https://github.com/superdesk/superdesk-client-core/pull/312"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/312"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/9648bcab031dba0156e452f23cb521f808276bdf"}}}}