{"action":"created","comment":{"url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/comments/31789051","id":31789051,"diff_hunk":"@@ -560,10 +560,15 @@ def _set_resource_defaults(self, resource, settings):\n         settings['datasource'].setdefault('filter', None)\n         settings['datasource'].setdefault('default_sort', None)\n \n-        projection = settings['datasource'].get('projection')\n+        projection = settings['datasource'].get('projection', {})\n         projection = projection or {}","path":"eve/flaskapp.py","position":6,"original_position":6,"commit_id":"3e15ec97f6146bc942fbee5f0dd1fb26593ada8a","original_commit_id":"3e15ec97f6146bc942fbee5f0dd1fb26593ada8a","user":{"login":"nicolaiarocci","id":512968,"avatar_url":"https://avatars.githubusercontent.com/u/512968?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"body":"Superfluous? ","created_at":"2015-06-05T05:47:10Z","updated_at":"2015-06-05T05:47:10Z","html_url":"https://github.com/nicolaiarocci/eve/pull/647#discussion_r31789051","pull_request_url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647","_links":{"self":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/comments/31789051"},"html":{"href":"https://github.com/nicolaiarocci/eve/pull/647#discussion_r31789051"},"pull_request":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647"}}},"pull_request":{"url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647","id":36994615,"html_url":"https://github.com/nicolaiarocci/eve/pull/647","diff_url":"https://github.com/nicolaiarocci/eve/pull/647.diff","patch_url":"https://github.com/nicolaiarocci/eve/pull/647.patch","issue_url":"https://api.github.com/repos/nicolaiarocci/eve/issues/647","number":647,"state":"open","locked":false,"title":"Proper fix for exclusion projection. Fix for #636","user":{"login":"amagdas","id":204229,"avatar_url":"https://avatars.githubusercontent.com/u/204229?v=3","gravatar_id":"","url":"https://api.github.com/users/amagdas","html_url":"https://github.com/amagdas","followers_url":"https://api.github.com/users/amagdas/followers","following_url":"https://api.github.com/users/amagdas/following{/other_user}","gists_url":"https://api.github.com/users/amagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/amagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagdas/subscriptions","organizations_url":"https://api.github.com/users/amagdas/orgs","repos_url":"https://api.github.com/users/amagdas/repos","events_url":"https://api.github.com/users/amagdas/events{/privacy}","received_events_url":"https://api.github.com/users/amagdas/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-05T01:43:49Z","updated_at":"2015-06-05T05:47:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70987ea5e02fb392edda2f0aa2b8b5631b7ced9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647/commits","review_comments_url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647/comments","review_comment_url":"https://api.github.com/repos/nicolaiarocci/eve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nicolaiarocci/eve/issues/647/comments","statuses_url":"https://api.github.com/repos/nicolaiarocci/eve/statuses/3e15ec97f6146bc942fbee5f0dd1fb26593ada8a","head":{"label":"amagdas:fix-projection-take2","ref":"fix-projection-take2","sha":"3e15ec97f6146bc942fbee5f0dd1fb26593ada8a","user":{"login":"amagdas","id":204229,"avatar_url":"https://avatars.githubusercontent.com/u/204229?v=3","gravatar_id":"","url":"https://api.github.com/users/amagdas","html_url":"https://github.com/amagdas","followers_url":"https://api.github.com/users/amagdas/followers","following_url":"https://api.github.com/users/amagdas/following{/other_user}","gists_url":"https://api.github.com/users/amagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/amagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagdas/subscriptions","organizations_url":"https://api.github.com/users/amagdas/orgs","repos_url":"https://api.github.com/users/amagdas/repos","events_url":"https://api.github.com/users/amagdas/events{/privacy}","received_events_url":"https://api.github.com/users/amagdas/received_events","type":"User","site_admin":false},"repo":{"id":20177372,"name":"eve","full_name":"amagdas/eve","owner":{"login":"amagdas","id":204229,"avatar_url":"https://avatars.githubusercontent.com/u/204229?v=3","gravatar_id":"","url":"https://api.github.com/users/amagdas","html_url":"https://github.com/amagdas","followers_url":"https://api.github.com/users/amagdas/followers","following_url":"https://api.github.com/users/amagdas/following{/other_user}","gists_url":"https://api.github.com/users/amagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/amagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagdas/subscriptions","organizations_url":"https://api.github.com/users/amagdas/orgs","repos_url":"https://api.github.com/users/amagdas/repos","events_url":"https://api.github.com/users/amagdas/events{/privacy}","received_events_url":"https://api.github.com/users/amagdas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amagdas/eve","description":"REST API framework powered by Flask, MongoDB and good intentions","fork":true,"url":"https://api.github.com/repos/amagdas/eve","forks_url":"https://api.github.com/repos/amagdas/eve/forks","keys_url":"https://api.github.com/repos/amagdas/eve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amagdas/eve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amagdas/eve/teams","hooks_url":"https://api.github.com/repos/amagdas/eve/hooks","issue_events_url":"https://api.github.com/repos/amagdas/eve/issues/events{/number}","events_url":"https://api.github.com/repos/amagdas/eve/events","assignees_url":"https://api.github.com/repos/amagdas/eve/assignees{/user}","branches_url":"https://api.github.com/repos/amagdas/eve/branches{/branch}","tags_url":"https://api.github.com/repos/amagdas/eve/tags","blobs_url":"https://api.github.com/repos/amagdas/eve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amagdas/eve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amagdas/eve/git/refs{/sha}","trees_url":"https://api.github.com/repos/amagdas/eve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amagdas/eve/statuses/{sha}","languages_url":"https://api.github.com/repos/amagdas/eve/languages","stargazers_url":"https://api.github.com/repos/amagdas/eve/stargazers","contributors_url":"https://api.github.com/repos/amagdas/eve/contributors","subscribers_url":"https://api.github.com/repos/amagdas/eve/subscribers","subscription_url":"https://api.github.com/repos/amagdas/eve/subscription","commits_url":"https://api.github.com/repos/amagdas/eve/commits{/sha}","git_commits_url":"https://api.github.com/repos/amagdas/eve/git/commits{/sha}","comments_url":"https://api.github.com/repos/amagdas/eve/comments{/number}","issue_comment_url":"https://api.github.com/repos/amagdas/eve/issues/comments{/number}","contents_url":"https://api.github.com/repos/amagdas/eve/contents/{+path}","compare_url":"https://api.github.com/repos/amagdas/eve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amagdas/eve/merges","archive_url":"https://api.github.com/repos/amagdas/eve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amagdas/eve/downloads","issues_url":"https://api.github.com/repos/amagdas/eve/issues{/number}","pulls_url":"https://api.github.com/repos/amagdas/eve/pulls{/number}","milestones_url":"https://api.github.com/repos/amagdas/eve/milestones{/number}","notifications_url":"https://api.github.com/repos/amagdas/eve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amagdas/eve/labels{/name}","releases_url":"https://api.github.com/repos/amagdas/eve/releases{/id}","created_at":"2014-05-26T07:17:11Z","updated_at":"2015-03-30T23:50:50Z","pushed_at":"2015-06-05T02:40:11Z","git_url":"git://github.com/amagdas/eve.git","ssh_url":"git@github.com:amagdas/eve.git","clone_url":"https://github.com/amagdas/eve.git","svn_url":"https://github.com/amagdas/eve","homepage":"python-eve.org","size":9418,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"nicolaiarocci:develop","ref":"develop","sha":"b25fc64abf8f12bd0fc6a9d418bdd980552a99df","user":{"login":"nicolaiarocci","id":512968,"avatar_url":"https://avatars.githubusercontent.com/u/512968?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"repo":{"id":6331139,"name":"eve","full_name":"nicolaiarocci/eve","owner":{"login":"nicolaiarocci","id":512968,"avatar_url":"https://avatars.githubusercontent.com/u/512968?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolaiarocci/eve","description":"Python REST API for Humans™","fork":false,"url":"https://api.github.com/repos/nicolaiarocci/eve","forks_url":"https://api.github.com/repos/nicolaiarocci/eve/forks","keys_url":"https://api.github.com/repos/nicolaiarocci/eve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolaiarocci/eve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolaiarocci/eve/teams","hooks_url":"https://api.github.com/repos/nicolaiarocci/eve/hooks","issue_events_url":"https://api.github.com/repos/nicolaiarocci/eve/issues/events{/number}","events_url":"https://api.github.com/repos/nicolaiarocci/eve/events","assignees_url":"https://api.github.com/repos/nicolaiarocci/eve/assignees{/user}","branches_url":"https://api.github.com/repos/nicolaiarocci/eve/branches{/branch}","tags_url":"https://api.github.com/repos/nicolaiarocci/eve/tags","blobs_url":"https://api.github.com/repos/nicolaiarocci/eve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolaiarocci/eve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolaiarocci/eve/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolaiarocci/eve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolaiarocci/eve/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolaiarocci/eve/languages","stargazers_url":"https://api.github.com/repos/nicolaiarocci/eve/stargazers","contributors_url":"https://api.github.com/repos/nicolaiarocci/eve/contributors","subscribers_url":"https://api.github.com/repos/nicolaiarocci/eve/subscribers","subscription_url":"https://api.github.com/repos/nicolaiarocci/eve/subscription","commits_url":"https://api.github.com/repos/nicolaiarocci/eve/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolaiarocci/eve/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolaiarocci/eve/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolaiarocci/eve/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolaiarocci/eve/contents/{+path}","compare_url":"https://api.github.com/repos/nicolaiarocci/eve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolaiarocci/eve/merges","archive_url":"https://api.github.com/repos/nicolaiarocci/eve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolaiarocci/eve/downloads","issues_url":"https://api.github.com/repos/nicolaiarocci/eve/issues{/number}","pulls_url":"https://api.github.com/repos/nicolaiarocci/eve/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolaiarocci/eve/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolaiarocci/eve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolaiarocci/eve/labels{/name}","releases_url":"https://api.github.com/repos/nicolaiarocci/eve/releases{/id}","created_at":"2012-10-22T07:39:33Z","updated_at":"2015-06-04T18:13:26Z","pushed_at":"2015-06-05T02:40:12Z","git_url":"git://github.com/nicolaiarocci/eve.git","ssh_url":"git@github.com:nicolaiarocci/eve.git","clone_url":"https://github.com/nicolaiarocci/eve.git","svn_url":"https://github.com/nicolaiarocci/eve","homepage":"http://python-eve.org","size":18628,"stargazers_count":2306,"watchers_count":2306,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":320,"mirror_url":null,"open_issues_count":26,"forks":320,"open_issues":26,"watchers":2306,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647"},"html":{"href":"https://github.com/nicolaiarocci/eve/pull/647"},"issue":{"href":"https://api.github.com/repos/nicolaiarocci/eve/issues/647"},"comments":{"href":"https://api.github.com/repos/nicolaiarocci/eve/issues/647/comments"},"review_comments":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647/comments"},"review_comment":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nicolaiarocci/eve/pulls/647/commits"},"statuses":{"href":"https://api.github.com/repos/nicolaiarocci/eve/statuses/3e15ec97f6146bc942fbee5f0dd1fb26593ada8a"}}}}