{"action":"created","comment":{"url":"https://api.github.com/repos/planorama/noot.js/pulls/comments/84432876","pull_request_review_id":5211780,"id":84432876,"diff_hunk":"@@ -163,6 +163,18 @@ var Resource = NOOT.Object.extend(Authable).extend(Queryable).extend({\n     callback = callback || stack.next;\n     var pack = stack.package;\n     if (!pack.messages.length) delete pack.messages;\n+\n+    // if there is a select qs, we override `minimize` settings\n+    if (NOOT.tryGet(stack, 'query.raw.select')) {\n+      var keys = _.chain(stack.query.select).keys().concat(['_id']).uniq().value();\n+\n+      pack.data = _.map(pack.data, function(item) {\n+        var newItem = {};","path":"src/api/lib/resources/lib/resource.js","position":10,"original_position":10,"commit_id":"bc78b848473c2b50866062760193c6d926245834","original_commit_id":"bc78b848473c2b50866062760193c6d926245834","user":{"login":"peterporfy","id":656554,"avatar_url":"https://avatars.githubusercontent.com/u/656554?v=3","gravatar_id":"","url":"https://api.github.com/users/peterporfy","html_url":"https://github.com/peterporfy","followers_url":"https://api.github.com/users/peterporfy/followers","following_url":"https://api.github.com/users/peterporfy/following{/other_user}","gists_url":"https://api.github.com/users/peterporfy/gists{/gist_id}","starred_url":"https://api.github.com/users/peterporfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterporfy/subscriptions","organizations_url":"https://api.github.com/users/peterporfy/orgs","repos_url":"https://api.github.com/users/peterporfy/repos","events_url":"https://api.github.com/users/peterporfy/events{/privacy}","received_events_url":"https://api.github.com/users/peterporfy/received_events","type":"User","site_admin":false},"body":"`return _.pick(item, keys);`?","created_at":"2016-10-21T07:47:03Z","updated_at":"2016-10-21T07:47:03Z","html_url":"https://github.com/planorama/noot.js/pull/42#discussion_r84432876","pull_request_url":"https://api.github.com/repos/planorama/noot.js/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/comments/84432876"},"html":{"href":"https://github.com/planorama/noot.js/pull/42#discussion_r84432876"},"pull_request":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/planorama/noot.js/pulls/42","id":90336141,"html_url":"https://github.com/planorama/noot.js/pull/42","diff_url":"https://github.com/planorama/noot.js/pull/42.diff","patch_url":"https://github.com/planorama/noot.js/pull/42.patch","issue_url":"https://api.github.com/repos/planorama/noot.js/issues/42","number":42,"state":"open","locked":false,"title":"[#WPLAT-953 Improvement] when select is present, select only those fields","user":{"login":"tamassandor-planorama","id":13768191,"avatar_url":"https://avatars.githubusercontent.com/u/13768191?v=3","gravatar_id":"","url":"https://api.github.com/users/tamassandor-planorama","html_url":"https://github.com/tamassandor-planorama","followers_url":"https://api.github.com/users/tamassandor-planorama/followers","following_url":"https://api.github.com/users/tamassandor-planorama/following{/other_user}","gists_url":"https://api.github.com/users/tamassandor-planorama/gists{/gist_id}","starred_url":"https://api.github.com/users/tamassandor-planorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamassandor-planorama/subscriptions","organizations_url":"https://api.github.com/users/tamassandor-planorama/orgs","repos_url":"https://api.github.com/users/tamassandor-planorama/repos","events_url":"https://api.github.com/users/tamassandor-planorama/events{/privacy}","received_events_url":"https://api.github.com/users/tamassandor-planorama/received_events","type":"User","site_admin":false},"body":"Ticket: https://planorama.atlassian.net/browse/WPLAT-953","created_at":"2016-10-21T07:40:45Z","updated_at":"2016-10-21T07:47:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4aca95088640acd826dff34a1ac638cf93973f4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/planorama/noot.js/pulls/42/commits","review_comments_url":"https://api.github.com/repos/planorama/noot.js/pulls/42/comments","review_comment_url":"https://api.github.com/repos/planorama/noot.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/planorama/noot.js/issues/42/comments","statuses_url":"https://api.github.com/repos/planorama/noot.js/statuses/bc78b848473c2b50866062760193c6d926245834","head":{"label":"planorama:WPLAT-953","ref":"WPLAT-953","sha":"bc78b848473c2b50866062760193c6d926245834","user":{"login":"planorama","id":2003882,"avatar_url":"https://avatars.githubusercontent.com/u/2003882?v=3","gravatar_id":"","url":"https://api.github.com/users/planorama","html_url":"https://github.com/planorama","followers_url":"https://api.github.com/users/planorama/followers","following_url":"https://api.github.com/users/planorama/following{/other_user}","gists_url":"https://api.github.com/users/planorama/gists{/gist_id}","starred_url":"https://api.github.com/users/planorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/planorama/subscriptions","organizations_url":"https://api.github.com/users/planorama/orgs","repos_url":"https://api.github.com/users/planorama/repos","events_url":"https://api.github.com/users/planorama/events{/privacy}","received_events_url":"https://api.github.com/users/planorama/received_events","type":"Organization","site_admin":false},"repo":{"id":22808447,"name":"noot.js","full_name":"planorama/noot.js","owner":{"login":"planorama","id":2003882,"avatar_url":"https://avatars.githubusercontent.com/u/2003882?v=3","gravatar_id":"","url":"https://api.github.com/users/planorama","html_url":"https://github.com/planorama","followers_url":"https://api.github.com/users/planorama/followers","following_url":"https://api.github.com/users/planorama/following{/other_user}","gists_url":"https://api.github.com/users/planorama/gists{/gist_id}","starred_url":"https://api.github.com/users/planorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/planorama/subscriptions","organizations_url":"https://api.github.com/users/planorama/orgs","repos_url":"https://api.github.com/users/planorama/repos","events_url":"https://api.github.com/users/planorama/events{/privacy}","received_events_url":"https://api.github.com/users/planorama/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/planorama/noot.js","description":"High quality, well tested, lightweight object oriented toolset for Node.js.","fork":false,"url":"https://api.github.com/repos/planorama/noot.js","forks_url":"https://api.github.com/repos/planorama/noot.js/forks","keys_url":"https://api.github.com/repos/planorama/noot.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/planorama/noot.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/planorama/noot.js/teams","hooks_url":"https://api.github.com/repos/planorama/noot.js/hooks","issue_events_url":"https://api.github.com/repos/planorama/noot.js/issues/events{/number}","events_url":"https://api.github.com/repos/planorama/noot.js/events","assignees_url":"https://api.github.com/repos/planorama/noot.js/assignees{/user}","branches_url":"https://api.github.com/repos/planorama/noot.js/branches{/branch}","tags_url":"https://api.github.com/repos/planorama/noot.js/tags","blobs_url":"https://api.github.com/repos/planorama/noot.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/planorama/noot.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/planorama/noot.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/planorama/noot.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/planorama/noot.js/statuses/{sha}","languages_url":"https://api.github.com/repos/planorama/noot.js/languages","stargazers_url":"https://api.github.com/repos/planorama/noot.js/stargazers","contributors_url":"https://api.github.com/repos/planorama/noot.js/contributors","subscribers_url":"https://api.github.com/repos/planorama/noot.js/subscribers","subscription_url":"https://api.github.com/repos/planorama/noot.js/subscription","commits_url":"https://api.github.com/repos/planorama/noot.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/planorama/noot.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/planorama/noot.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/planorama/noot.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/planorama/noot.js/contents/{+path}","compare_url":"https://api.github.com/repos/planorama/noot.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/planorama/noot.js/merges","archive_url":"https://api.github.com/repos/planorama/noot.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/planorama/noot.js/downloads","issues_url":"https://api.github.com/repos/planorama/noot.js/issues{/number}","pulls_url":"https://api.github.com/repos/planorama/noot.js/pulls{/number}","milestones_url":"https://api.github.com/repos/planorama/noot.js/milestones{/number}","notifications_url":"https://api.github.com/repos/planorama/noot.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/planorama/noot.js/labels{/name}","releases_url":"https://api.github.com/repos/planorama/noot.js/releases{/id}","deployments_url":"https://api.github.com/repos/planorama/noot.js/deployments","created_at":"2014-08-10T12:30:37Z","updated_at":"2016-01-11T09:46:58Z","pushed_at":"2016-10-21T07:40:45Z","git_url":"git://github.com/planorama/noot.js.git","ssh_url":"git@github.com:planorama/noot.js.git","clone_url":"https://github.com/planorama/noot.js.git","svn_url":"https://github.com/planorama/noot.js","homepage":"","size":602,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"planorama:master","ref":"master","sha":"1c3bf772fad948088dbf610390b8d30f28cf5466","user":{"login":"planorama","id":2003882,"avatar_url":"https://avatars.githubusercontent.com/u/2003882?v=3","gravatar_id":"","url":"https://api.github.com/users/planorama","html_url":"https://github.com/planorama","followers_url":"https://api.github.com/users/planorama/followers","following_url":"https://api.github.com/users/planorama/following{/other_user}","gists_url":"https://api.github.com/users/planorama/gists{/gist_id}","starred_url":"https://api.github.com/users/planorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/planorama/subscriptions","organizations_url":"https://api.github.com/users/planorama/orgs","repos_url":"https://api.github.com/users/planorama/repos","events_url":"https://api.github.com/users/planorama/events{/privacy}","received_events_url":"https://api.github.com/users/planorama/received_events","type":"Organization","site_admin":false},"repo":{"id":22808447,"name":"noot.js","full_name":"planorama/noot.js","owner":{"login":"planorama","id":2003882,"avatar_url":"https://avatars.githubusercontent.com/u/2003882?v=3","gravatar_id":"","url":"https://api.github.com/users/planorama","html_url":"https://github.com/planorama","followers_url":"https://api.github.com/users/planorama/followers","following_url":"https://api.github.com/users/planorama/following{/other_user}","gists_url":"https://api.github.com/users/planorama/gists{/gist_id}","starred_url":"https://api.github.com/users/planorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/planorama/subscriptions","organizations_url":"https://api.github.com/users/planorama/orgs","repos_url":"https://api.github.com/users/planorama/repos","events_url":"https://api.github.com/users/planorama/events{/privacy}","received_events_url":"https://api.github.com/users/planorama/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/planorama/noot.js","description":"High quality, well tested, lightweight object oriented toolset for Node.js.","fork":false,"url":"https://api.github.com/repos/planorama/noot.js","forks_url":"https://api.github.com/repos/planorama/noot.js/forks","keys_url":"https://api.github.com/repos/planorama/noot.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/planorama/noot.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/planorama/noot.js/teams","hooks_url":"https://api.github.com/repos/planorama/noot.js/hooks","issue_events_url":"https://api.github.com/repos/planorama/noot.js/issues/events{/number}","events_url":"https://api.github.com/repos/planorama/noot.js/events","assignees_url":"https://api.github.com/repos/planorama/noot.js/assignees{/user}","branches_url":"https://api.github.com/repos/planorama/noot.js/branches{/branch}","tags_url":"https://api.github.com/repos/planorama/noot.js/tags","blobs_url":"https://api.github.com/repos/planorama/noot.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/planorama/noot.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/planorama/noot.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/planorama/noot.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/planorama/noot.js/statuses/{sha}","languages_url":"https://api.github.com/repos/planorama/noot.js/languages","stargazers_url":"https://api.github.com/repos/planorama/noot.js/stargazers","contributors_url":"https://api.github.com/repos/planorama/noot.js/contributors","subscribers_url":"https://api.github.com/repos/planorama/noot.js/subscribers","subscription_url":"https://api.github.com/repos/planorama/noot.js/subscription","commits_url":"https://api.github.com/repos/planorama/noot.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/planorama/noot.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/planorama/noot.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/planorama/noot.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/planorama/noot.js/contents/{+path}","compare_url":"https://api.github.com/repos/planorama/noot.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/planorama/noot.js/merges","archive_url":"https://api.github.com/repos/planorama/noot.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/planorama/noot.js/downloads","issues_url":"https://api.github.com/repos/planorama/noot.js/issues{/number}","pulls_url":"https://api.github.com/repos/planorama/noot.js/pulls{/number}","milestones_url":"https://api.github.com/repos/planorama/noot.js/milestones{/number}","notifications_url":"https://api.github.com/repos/planorama/noot.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/planorama/noot.js/labels{/name}","releases_url":"https://api.github.com/repos/planorama/noot.js/releases{/id}","deployments_url":"https://api.github.com/repos/planorama/noot.js/deployments","created_at":"2014-08-10T12:30:37Z","updated_at":"2016-01-11T09:46:58Z","pushed_at":"2016-10-21T07:40:45Z","git_url":"git://github.com/planorama/noot.js.git","ssh_url":"git@github.com:planorama/noot.js.git","clone_url":"https://github.com/planorama/noot.js.git","svn_url":"https://github.com/planorama/noot.js","homepage":"","size":602,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/42"},"html":{"href":"https://github.com/planorama/noot.js/pull/42"},"issue":{"href":"https://api.github.com/repos/planorama/noot.js/issues/42"},"comments":{"href":"https://api.github.com/repos/planorama/noot.js/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/planorama/noot.js/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/planorama/noot.js/statuses/bc78b848473c2b50866062760193c6d926245834"}}}}
{"actor":{"display_login":"peterporfy"}}