{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/44512200","id":44512200,"diff_hunk":"@@ -40,20 +40,39 @@ <h3 translate>Monitoring settings</h3>\n \n     <div sd-wizard-step data-title=\"{{ :: 'Saved Searches' | translate }}\" data-code=\"searches\">\n         <div class=\"content\">\n-            <div class=\"legend\" translate>Select saved searches for view.  \n-                <span sd-switch class=\"pull-right\" ng-model=\"showAllSavedSearches\" \n-                 ng-click=\"initSavedSearches(showAllSavedSearches)\" title=\"{{'Show all saved searches'}} | translate\"></span>\n+            <div class=\"legend\" translate>Select global saved searches  \n+                <span sd-switch class=\"pull-right\" ng-model=\"showGlobalSavedSearches\" \n+                 title=\"{{'Show all saved searches'}} | translate\"></span>\n             </div>\n-            <div class=\"desk\" ng-repeat=\"search in currentSavedSearches | orderBy: 'name'\">\n+            <div class=\"desk\" ng-repeat=\"search in globalSavedSearches | orderBy: 'name'\" ng-if=\"showGlobalSavedSearches\">\n                 <div class=\"desk-title\">\n-                    {{search.name}}\n-                    <span sd-switch class=\"pull-right\" ng-model=\"editGroups[search._id].selected\" ng-click=\"setSearchInfo(search._id)\"></span>\n+                    <div>\n+                        {{search.name}} <i>by {{userLookup[search.user].display_name}}</i><br />\n+                        <span class=\"search-description\">{{ search.description }} </span>\n+                    </div>\n+                    <div class=\"switch\">\n+                        <span sd-switch  ng-model=\"editGroups[search._id].selected\" ng-click=\"setSearchInfo(search._id)\"></span>\n+                    </div>\n+                    \n                 </div>\n             </div>\n-            <div ng-show=\"\" class=\"legend\" translate>Select saved searches for view</div>\n \n-        </div>\n+            <div class=\"legend\"  ng-if=\"showPrivateSavedSearches\" translate>Private saved searches </div>\n \n+            <div class=\"desk\" ng-repeat=\"search in privateSavedSearches | orderBy: 'name'\" ng-if=\"showPrivateSavedSearches\">\n+                <div class=\"desk-title\">\n+                    <div>\n+                        {{search.name}}<br />\n+                        <span class=\"search-description\">{{ search.description }} </span>","path":"client/app/scripts/superdesk-desks/views/aggregate-settings.html","position":35,"original_position":35,"commit_id":"02c51f10879f7f2d252f858e4f994ec58a7c8029","original_commit_id":"02c51f10879f7f2d252f858e4f994ec58a7c8029","user":{"login":"plamut","id":1235663,"avatar_url":"https://avatars.githubusercontent.com/u/1235663?v=3","gravatar_id":"","url":"https://api.github.com/users/plamut","html_url":"https://github.com/plamut","followers_url":"https://api.github.com/users/plamut/followers","following_url":"https://api.github.com/users/plamut/following{/other_user}","gists_url":"https://api.github.com/users/plamut/gists{/gist_id}","starred_url":"https://api.github.com/users/plamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamut/subscriptions","organizations_url":"https://api.github.com/users/plamut/orgs","repos_url":"https://api.github.com/users/plamut/repos","events_url":"https://api.github.com/users/plamut/events{/privacy}","received_events_url":"https://api.github.com/users/plamut/received_events","type":"User","site_admin":false},"body":"Same here, one-time bindings can (and should) be used if items' names and descriptions don't change...","created_at":"2015-11-11T08:49:39Z","updated_at":"2015-11-11T08:49:39Z","html_url":"https://github.com/superdesk/superdesk/pull/1373#discussion_r44512200","pull_request_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1373","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/44512200"},"html":{"href":"https://github.com/superdesk/superdesk/pull/1373#discussion_r44512200"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1373"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/1373","id":50351850,"html_url":"https://github.com/superdesk/superdesk/pull/1373","diff_url":"https://github.com/superdesk/superdesk/pull/1373.diff","patch_url":"https://github.com/superdesk/superdesk/pull/1373.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk/issues/1373","number":1373,"state":"open","locked":false,"title":"[SD-3436] [SD-3596] Global saved searches","user":{"login":"akintolga","id":8636746,"avatar_url":"https://avatars.githubusercontent.com/u/8636746?v=3","gravatar_id":"","url":"https://api.github.com/users/akintolga","html_url":"https://github.com/akintolga","followers_url":"https://api.github.com/users/akintolga/followers","following_url":"https://api.github.com/users/akintolga/following{/other_user}","gists_url":"https://api.github.com/users/akintolga/gists{/gist_id}","starred_url":"https://api.github.com/users/akintolga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintolga/subscriptions","organizations_url":"https://api.github.com/users/akintolga/orgs","repos_url":"https://api.github.com/users/akintolga/repos","events_url":"https://api.github.com/users/akintolga/events{/privacy}","received_events_url":"https://api.github.com/users/akintolga/received_events","type":"User","site_admin":false},"body":"- [x] Creating global saved searches\r\n- [x] Monitoring settings will display global saved searches only for desks\r\n- [x] Monitoring settings will display global and private saved searches only for workspaces\r\n- [x] Edit/Save-As a saved search\r\n- [x] New privilege to update other users global searches\r\n- [x] Behave tests\r\n- [ ] e2e tests\r\n","created_at":"2015-11-11T06:18:44Z","updated_at":"2015-11-11T08:49:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faccddd1f6c21c06ce2cb9cbe6f2603dfbce3f21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1373/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1373/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk/issues/1373/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/02c51f10879f7f2d252f858e4f994ec58a7c8029","head":{"label":"akintolga:save-search","ref":"save-search","sha":"02c51f10879f7f2d252f858e4f994ec58a7c8029","user":{"login":"akintolga","id":8636746,"avatar_url":"https://avatars.githubusercontent.com/u/8636746?v=3","gravatar_id":"","url":"https://api.github.com/users/akintolga","html_url":"https://github.com/akintolga","followers_url":"https://api.github.com/users/akintolga/followers","following_url":"https://api.github.com/users/akintolga/following{/other_user}","gists_url":"https://api.github.com/users/akintolga/gists{/gist_id}","starred_url":"https://api.github.com/users/akintolga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintolga/subscriptions","organizations_url":"https://api.github.com/users/akintolga/orgs","repos_url":"https://api.github.com/users/akintolga/repos","events_url":"https://api.github.com/users/akintolga/events{/privacy}","received_events_url":"https://api.github.com/users/akintolga/received_events","type":"User","site_admin":false},"repo":{"id":30847038,"name":"superdesk","full_name":"akintolga/superdesk","owner":{"login":"akintolga","id":8636746,"avatar_url":"https://avatars.githubusercontent.com/u/8636746?v=3","gravatar_id":"","url":"https://api.github.com/users/akintolga","html_url":"https://github.com/akintolga","followers_url":"https://api.github.com/users/akintolga/followers","following_url":"https://api.github.com/users/akintolga/following{/other_user}","gists_url":"https://api.github.com/users/akintolga/gists{/gist_id}","starred_url":"https://api.github.com/users/akintolga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintolga/subscriptions","organizations_url":"https://api.github.com/users/akintolga/orgs","repos_url":"https://api.github.com/users/akintolga/repos","events_url":"https://api.github.com/users/akintolga/events{/privacy}","received_events_url":"https://api.github.com/users/akintolga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintolga/superdesk","description":"","fork":true,"url":"https://api.github.com/repos/akintolga/superdesk","forks_url":"https://api.github.com/repos/akintolga/superdesk/forks","keys_url":"https://api.github.com/repos/akintolga/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintolga/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintolga/superdesk/teams","hooks_url":"https://api.github.com/repos/akintolga/superdesk/hooks","issue_events_url":"https://api.github.com/repos/akintolga/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/akintolga/superdesk/events","assignees_url":"https://api.github.com/repos/akintolga/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/akintolga/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/akintolga/superdesk/tags","blobs_url":"https://api.github.com/repos/akintolga/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintolga/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintolga/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintolga/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintolga/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/akintolga/superdesk/languages","stargazers_url":"https://api.github.com/repos/akintolga/superdesk/stargazers","contributors_url":"https://api.github.com/repos/akintolga/superdesk/contributors","subscribers_url":"https://api.github.com/repos/akintolga/superdesk/subscribers","subscription_url":"https://api.github.com/repos/akintolga/superdesk/subscription","commits_url":"https://api.github.com/repos/akintolga/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintolga/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintolga/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintolga/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintolga/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/akintolga/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintolga/superdesk/merges","archive_url":"https://api.github.com/repos/akintolga/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintolga/superdesk/downloads","issues_url":"https://api.github.com/repos/akintolga/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/akintolga/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/akintolga/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/akintolga/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintolga/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/akintolga/superdesk/releases{/id}","created_at":"2015-02-15T23:57:11Z","updated_at":"2015-09-01T02:50:42Z","pushed_at":"2015-11-11T06:10:24Z","git_url":"git://github.com/akintolga/superdesk.git","ssh_url":"git@github.com:akintolga/superdesk.git","clone_url":"https://github.com/akintolga/superdesk.git","svn_url":"https://github.com/akintolga/superdesk","homepage":null,"size":59789,"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":"3a7eb0ac69493f353bc9b0073ee061b89ea42a57","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":23570030,"name":"superdesk","full_name":"superdesk/superdesk","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","description":"Superdesk is an end-to-end news creation, production, curation, distribution, and publishing platform.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk","forks_url":"https://api.github.com/repos/superdesk/superdesk/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk/releases{/id}","created_at":"2014-09-02T07:56:17Z","updated_at":"2015-11-06T10:48:12Z","pushed_at":"2015-11-11T08:23:51Z","git_url":"git://github.com/superdesk/superdesk.git","ssh_url":"git@github.com:superdesk/superdesk.git","clone_url":"https://github.com/superdesk/superdesk.git","svn_url":"https://github.com/superdesk/superdesk","homepage":"http://www.superdesk.org/","size":71991,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":17,"forks":35,"open_issues":17,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1373"},"html":{"href":"https://github.com/superdesk/superdesk/pull/1373"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/1373"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/1373/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1373/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1373/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk/statuses/02c51f10879f7f2d252f858e4f994ec58a7c8029"}}}}