{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/comments/84192870","pull_request_review_id":4985306,"id":84192870,"diff_hunk":"@@ -102,8 +107,7 @@ def on_fetched(self, docs):\n class SavedSearchesService(BaseService):\n     def on_create(self, docs):\n         for doc in docs:\n-            if 'user' not in doc and request:\n-                doc['user'] = request.view_args.get('user')\n+            doc['user'] = get_user(required=True)['_id']","path":"apps/saved_searches/saved_searches.py","position":null,"original_position":60,"commit_id":"8dff17f6bec17a20c898afce5a17fc3779ccb1be","original_commit_id":"891efce6b4bc86236656a99f02506f74a14c8fc2","user":{"login":"nrvikas","id":13354440,"avatar_url":"https://avatars.githubusercontent.com/u/13354440?v=3","gravatar_id":"","url":"https://api.github.com/users/nrvikas","html_url":"https://github.com/nrvikas","followers_url":"https://api.github.com/users/nrvikas/followers","following_url":"https://api.github.com/users/nrvikas/following{/other_user}","gists_url":"https://api.github.com/users/nrvikas/gists{/gist_id}","starred_url":"https://api.github.com/users/nrvikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrvikas/subscriptions","organizations_url":"https://api.github.com/users/nrvikas/orgs","repos_url":"https://api.github.com/users/nrvikas/repos","events_url":"https://api.github.com/users/nrvikas/events{/privacy}","received_events_url":"https://api.github.com/users/nrvikas/received_events","type":"User","site_admin":false},"body":"Yup, I have modified the file. Thanks.","created_at":"2016-10-20T00:08:42Z","updated_at":"2016-10-20T00:08:42Z","html_url":"https://github.com/superdesk/superdesk-core/pull/626#discussion_r84192870","pull_request_url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/comments/84192870"},"html":{"href":"https://github.com/superdesk/superdesk-core/pull/626#discussion_r84192870"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626","id":89918899,"html_url":"https://github.com/superdesk/superdesk-core/pull/626","diff_url":"https://github.com/superdesk/superdesk-core/pull/626.diff","patch_url":"https://github.com/superdesk/superdesk-core/pull/626.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/626","number":626,"state":"open","locked":false,"title":"[SD-5553] Modified saved search end-point.","user":{"login":"nrvikas","id":13354440,"avatar_url":"https://avatars.githubusercontent.com/u/13354440?v=3","gravatar_id":"","url":"https://api.github.com/users/nrvikas","html_url":"https://github.com/nrvikas","followers_url":"https://api.github.com/users/nrvikas/followers","following_url":"https://api.github.com/users/nrvikas/following{/other_user}","gists_url":"https://api.github.com/users/nrvikas/gists{/gist_id}","starred_url":"https://api.github.com/users/nrvikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrvikas/subscriptions","organizations_url":"https://api.github.com/users/nrvikas/orgs","repos_url":"https://api.github.com/users/nrvikas/repos","events_url":"https://api.github.com/users/nrvikas/events{/privacy}","received_events_url":"https://api.github.com/users/nrvikas/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-18T23:44:20Z","updated_at":"2016-10-20T00:08:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d2dddf4471de5ac23473799869d7e7f8e6911ab","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/superdesk/superdesk-core/milestones/4","html_url":"https://github.com/superdesk/superdesk-core/milestones/1.4","labels_url":"https://api.github.com/repos/superdesk/superdesk-core/milestones/4/labels","id":1998597,"number":4,"title":"1.4","description":"","creator":{"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},"open_issues":4,"closed_issues":14,"state":"open","created_at":"2016-09-12T14:54:48Z","updated_at":"2016-10-19T17:15:07Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/626/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk-core/statuses/8dff17f6bec17a20c898afce5a17fc3779ccb1be","head":{"label":"nrvikas:SD-5553","ref":"SD-5553","sha":"8dff17f6bec17a20c898afce5a17fc3779ccb1be","user":{"login":"nrvikas","id":13354440,"avatar_url":"https://avatars.githubusercontent.com/u/13354440?v=3","gravatar_id":"","url":"https://api.github.com/users/nrvikas","html_url":"https://github.com/nrvikas","followers_url":"https://api.github.com/users/nrvikas/followers","following_url":"https://api.github.com/users/nrvikas/following{/other_user}","gists_url":"https://api.github.com/users/nrvikas/gists{/gist_id}","starred_url":"https://api.github.com/users/nrvikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrvikas/subscriptions","organizations_url":"https://api.github.com/users/nrvikas/orgs","repos_url":"https://api.github.com/users/nrvikas/repos","events_url":"https://api.github.com/users/nrvikas/events{/privacy}","received_events_url":"https://api.github.com/users/nrvikas/received_events","type":"User","site_admin":false},"repo":{"id":69923462,"name":"superdesk-core","full_name":"nrvikas/superdesk-core","owner":{"login":"nrvikas","id":13354440,"avatar_url":"https://avatars.githubusercontent.com/u/13354440?v=3","gravatar_id":"","url":"https://api.github.com/users/nrvikas","html_url":"https://github.com/nrvikas","followers_url":"https://api.github.com/users/nrvikas/followers","following_url":"https://api.github.com/users/nrvikas/following{/other_user}","gists_url":"https://api.github.com/users/nrvikas/gists{/gist_id}","starred_url":"https://api.github.com/users/nrvikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrvikas/subscriptions","organizations_url":"https://api.github.com/users/nrvikas/orgs","repos_url":"https://api.github.com/users/nrvikas/repos","events_url":"https://api.github.com/users/nrvikas/events{/privacy}","received_events_url":"https://api.github.com/users/nrvikas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nrvikas/superdesk-core","description":"common server modules for superdesk","fork":true,"url":"https://api.github.com/repos/nrvikas/superdesk-core","forks_url":"https://api.github.com/repos/nrvikas/superdesk-core/forks","keys_url":"https://api.github.com/repos/nrvikas/superdesk-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nrvikas/superdesk-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nrvikas/superdesk-core/teams","hooks_url":"https://api.github.com/repos/nrvikas/superdesk-core/hooks","issue_events_url":"https://api.github.com/repos/nrvikas/superdesk-core/issues/events{/number}","events_url":"https://api.github.com/repos/nrvikas/superdesk-core/events","assignees_url":"https://api.github.com/repos/nrvikas/superdesk-core/assignees{/user}","branches_url":"https://api.github.com/repos/nrvikas/superdesk-core/branches{/branch}","tags_url":"https://api.github.com/repos/nrvikas/superdesk-core/tags","blobs_url":"https://api.github.com/repos/nrvikas/superdesk-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nrvikas/superdesk-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nrvikas/superdesk-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/nrvikas/superdesk-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nrvikas/superdesk-core/statuses/{sha}","languages_url":"https://api.github.com/repos/nrvikas/superdesk-core/languages","stargazers_url":"https://api.github.com/repos/nrvikas/superdesk-core/stargazers","contributors_url":"https://api.github.com/repos/nrvikas/superdesk-core/contributors","subscribers_url":"https://api.github.com/repos/nrvikas/superdesk-core/subscribers","subscription_url":"https://api.github.com/repos/nrvikas/superdesk-core/subscription","commits_url":"https://api.github.com/repos/nrvikas/superdesk-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/nrvikas/superdesk-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/nrvikas/superdesk-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/nrvikas/superdesk-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/nrvikas/superdesk-core/contents/{+path}","compare_url":"https://api.github.com/repos/nrvikas/superdesk-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nrvikas/superdesk-core/merges","archive_url":"https://api.github.com/repos/nrvikas/superdesk-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nrvikas/superdesk-core/downloads","issues_url":"https://api.github.com/repos/nrvikas/superdesk-core/issues{/number}","pulls_url":"https://api.github.com/repos/nrvikas/superdesk-core/pulls{/number}","milestones_url":"https://api.github.com/repos/nrvikas/superdesk-core/milestones{/number}","notifications_url":"https://api.github.com/repos/nrvikas/superdesk-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nrvikas/superdesk-core/labels{/name}","releases_url":"https://api.github.com/repos/nrvikas/superdesk-core/releases{/id}","deployments_url":"https://api.github.com/repos/nrvikas/superdesk-core/deployments","created_at":"2016-10-04T00:51:33Z","updated_at":"2016-10-04T00:51:35Z","pushed_at":"2016-10-20T00:05:46Z","git_url":"git://github.com/nrvikas/superdesk-core.git","ssh_url":"git@github.com:nrvikas/superdesk-core.git","clone_url":"https://github.com/nrvikas/superdesk-core.git","svn_url":"https://github.com/nrvikas/superdesk-core","homepage":"","size":8483,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"5565e92e7070eaf9c080769cd04abacc5918c209","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":41092776,"name":"superdesk-core","full_name":"superdesk/superdesk-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-core","description":"common server modules for superdesk","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk-core","forks_url":"https://api.github.com/repos/superdesk/superdesk-core/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk-core/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk-core/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk-core/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk-core/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk-core/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk-core/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk-core/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk-core/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk-core/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk-core/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk-core/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk-core/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk-core/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk-core/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk-core/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk-core/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk-core/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk-core/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk-core/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk-core/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/superdesk-core/deployments","created_at":"2015-08-20T11:46:19Z","updated_at":"2016-10-17T13:09:55Z","pushed_at":"2016-10-20T00:05:46Z","git_url":"git://github.com/superdesk/superdesk-core.git","ssh_url":"git@github.com:superdesk/superdesk-core.git","clone_url":"https://github.com/superdesk/superdesk-core.git","svn_url":"https://github.com/superdesk/superdesk-core","homepage":"https://superdesk.readthedocs.io/","size":8691,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":8,"forks":32,"open_issues":8,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626"},"html":{"href":"https://github.com/superdesk/superdesk-core/pull/626"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk-core/issues/626"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk-core/issues/626/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk-core/pulls/626/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk-core/statuses/8dff17f6bec17a20c898afce5a17fc3779ccb1be"}}}}
{"actor":{"display_login":"nrvikas"}}