{"action":"created","comment":{"url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/comments/77722255","id":77722255,"diff_hunk":"@@ -14,8 +14,12 @@ export const gget = (collection, id, searchProp, getProp) => _.get(get(collectio\n export const getFn = (coll, getProp='id', inProp='id') => !coll ? nullFn : e => get(coll, _.get(e, inProp), getProp)\n \n export const filter = (collection, id, prop='id') => allPresent(collection, id) ? collection.filter(equalsProp(id, prop)) : []\n+export const filterByInclusion = (collection, prop, ...ids) => allPresent(collection, ids) ? collection.filter(e => ids.includes(_.get(e, prop))) : []","path":"src/lib/engine/collections.js","position":4,"original_position":4,"commit_id":"9ad34130163e83c4d0b0c906b2bc9d3abe88bb98","original_commit_id":"9ad34130163e83c4d0b0c906b2bc9d3abe88bb98","user":{"login":"OAGr","id":377065,"avatar_url":"https://avatars.githubusercontent.com/u/377065?v=3","gravatar_id":"","url":"https://api.github.com/users/OAGr","html_url":"https://github.com/OAGr","followers_url":"https://api.github.com/users/OAGr/followers","following_url":"https://api.github.com/users/OAGr/following{/other_user}","gists_url":"https://api.github.com/users/OAGr/gists{/gist_id}","starred_url":"https://api.github.com/users/OAGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OAGr/subscriptions","organizations_url":"https://api.github.com/users/OAGr/orgs","repos_url":"https://api.github.com/users/OAGr/repos","events_url":"https://api.github.com/users/OAGr/events{/privacy}","received_events_url":"https://api.github.com/users/OAGr/received_events","type":"User","site_admin":false},"body":"can ids be array?","created_at":"2016-09-06T21:30:49Z","updated_at":"2016-09-06T21:30:49Z","html_url":"https://github.com/getguesstimate/guesstimate-app/pull/806#discussion_r77722255","pull_request_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806","_links":{"self":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/comments/77722255"},"html":{"href":"https://github.com/getguesstimate/guesstimate-app/pull/806#discussion_r77722255"},"pull_request":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806"}}},"pull_request":{"url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806","id":84043906,"html_url":"https://github.com/getguesstimate/guesstimate-app/pull/806","diff_url":"https://github.com/getguesstimate/guesstimate-app/pull/806.diff","patch_url":"https://github.com/getguesstimate/guesstimate-app/pull/806.patch","issue_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/806","number":806,"state":"open","locked":false,"title":"Fact dependency graph","user":{"login":"mmcdermott","id":470751,"avatar_url":"https://avatars.githubusercontent.com/u/470751?v=3","gravatar_id":"","url":"https://api.github.com/users/mmcdermott","html_url":"https://github.com/mmcdermott","followers_url":"https://api.github.com/users/mmcdermott/followers","following_url":"https://api.github.com/users/mmcdermott/following{/other_user}","gists_url":"https://api.github.com/users/mmcdermott/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcdermott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcdermott/subscriptions","organizations_url":"https://api.github.com/users/mmcdermott/orgs","repos_url":"https://api.github.com/users/mmcdermott/repos","events_url":"https://api.github.com/users/mmcdermott/events{/privacy}","received_events_url":"https://api.github.com/users/mmcdermott/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-05T23:01:12Z","updated_at":"2016-09-06T21:30:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73d97815225caf52a8cd4291cc21419877a9096f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806/commits","review_comments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806/comments","review_comment_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/806/comments","statuses_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/statuses/9ad34130163e83c4d0b0c906b2bc9d3abe88bb98","head":{"label":"getguesstimate:fact-dependency-graph","ref":"fact-dependency-graph","sha":"9ad34130163e83c4d0b0c906b2bc9d3abe88bb98","user":{"login":"getguesstimate","id":13894028,"avatar_url":"https://avatars.githubusercontent.com/u/13894028?v=3","gravatar_id":"","url":"https://api.github.com/users/getguesstimate","html_url":"https://github.com/getguesstimate","followers_url":"https://api.github.com/users/getguesstimate/followers","following_url":"https://api.github.com/users/getguesstimate/following{/other_user}","gists_url":"https://api.github.com/users/getguesstimate/gists{/gist_id}","starred_url":"https://api.github.com/users/getguesstimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getguesstimate/subscriptions","organizations_url":"https://api.github.com/users/getguesstimate/orgs","repos_url":"https://api.github.com/users/getguesstimate/repos","events_url":"https://api.github.com/users/getguesstimate/events{/privacy}","received_events_url":"https://api.github.com/users/getguesstimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41168144,"name":"guesstimate-app","full_name":"getguesstimate/guesstimate-app","owner":{"login":"getguesstimate","id":13894028,"avatar_url":"https://avatars.githubusercontent.com/u/13894028?v=3","gravatar_id":"","url":"https://api.github.com/users/getguesstimate","html_url":"https://github.com/getguesstimate","followers_url":"https://api.github.com/users/getguesstimate/followers","following_url":"https://api.github.com/users/getguesstimate/following{/other_user}","gists_url":"https://api.github.com/users/getguesstimate/gists{/gist_id}","starred_url":"https://api.github.com/users/getguesstimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getguesstimate/subscriptions","organizations_url":"https://api.github.com/users/getguesstimate/orgs","repos_url":"https://api.github.com/users/getguesstimate/repos","events_url":"https://api.github.com/users/getguesstimate/events{/privacy}","received_events_url":"https://api.github.com/users/getguesstimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getguesstimate/guesstimate-app","description":"Create Fermi Estimates and Perform Monte Carlo Estimates","fork":false,"url":"https://api.github.com/repos/getguesstimate/guesstimate-app","forks_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/forks","keys_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/teams","hooks_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/hooks","issue_events_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/events{/number}","events_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/events","assignees_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/assignees{/user}","branches_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/branches{/branch}","tags_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/tags","blobs_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/statuses/{sha}","languages_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/languages","stargazers_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/stargazers","contributors_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/contributors","subscribers_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/subscribers","subscription_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/subscription","commits_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/contents/{+path}","compare_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/merges","archive_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/downloads","issues_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues{/number}","pulls_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls{/number}","milestones_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/milestones{/number}","notifications_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/labels{/name}","releases_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/releases{/id}","deployments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/deployments","created_at":"2015-08-21T17:19:43Z","updated_at":"2016-09-06T19:44:22Z","pushed_at":"2016-09-06T18:07:15Z","git_url":"git://github.com/getguesstimate/guesstimate-app.git","ssh_url":"git@github.com:getguesstimate/guesstimate-app.git","clone_url":"https://github.com/getguesstimate/guesstimate-app.git","svn_url":"https://github.com/getguesstimate/guesstimate-app","homepage":"http://getguesstimate.com/","size":7709,"stargazers_count":1662,"watchers_count":1662,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":67,"forks":83,"open_issues":67,"watchers":1662,"default_branch":"master"}},"base":{"label":"getguesstimate:master","ref":"master","sha":"0a0000f826b1b27b7a5d55bdc3b8c95012db7f3a","user":{"login":"getguesstimate","id":13894028,"avatar_url":"https://avatars.githubusercontent.com/u/13894028?v=3","gravatar_id":"","url":"https://api.github.com/users/getguesstimate","html_url":"https://github.com/getguesstimate","followers_url":"https://api.github.com/users/getguesstimate/followers","following_url":"https://api.github.com/users/getguesstimate/following{/other_user}","gists_url":"https://api.github.com/users/getguesstimate/gists{/gist_id}","starred_url":"https://api.github.com/users/getguesstimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getguesstimate/subscriptions","organizations_url":"https://api.github.com/users/getguesstimate/orgs","repos_url":"https://api.github.com/users/getguesstimate/repos","events_url":"https://api.github.com/users/getguesstimate/events{/privacy}","received_events_url":"https://api.github.com/users/getguesstimate/received_events","type":"Organization","site_admin":false},"repo":{"id":41168144,"name":"guesstimate-app","full_name":"getguesstimate/guesstimate-app","owner":{"login":"getguesstimate","id":13894028,"avatar_url":"https://avatars.githubusercontent.com/u/13894028?v=3","gravatar_id":"","url":"https://api.github.com/users/getguesstimate","html_url":"https://github.com/getguesstimate","followers_url":"https://api.github.com/users/getguesstimate/followers","following_url":"https://api.github.com/users/getguesstimate/following{/other_user}","gists_url":"https://api.github.com/users/getguesstimate/gists{/gist_id}","starred_url":"https://api.github.com/users/getguesstimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getguesstimate/subscriptions","organizations_url":"https://api.github.com/users/getguesstimate/orgs","repos_url":"https://api.github.com/users/getguesstimate/repos","events_url":"https://api.github.com/users/getguesstimate/events{/privacy}","received_events_url":"https://api.github.com/users/getguesstimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getguesstimate/guesstimate-app","description":"Create Fermi Estimates and Perform Monte Carlo Estimates","fork":false,"url":"https://api.github.com/repos/getguesstimate/guesstimate-app","forks_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/forks","keys_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/teams","hooks_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/hooks","issue_events_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/events{/number}","events_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/events","assignees_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/assignees{/user}","branches_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/branches{/branch}","tags_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/tags","blobs_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/statuses/{sha}","languages_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/languages","stargazers_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/stargazers","contributors_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/contributors","subscribers_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/subscribers","subscription_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/subscription","commits_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/contents/{+path}","compare_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/merges","archive_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/downloads","issues_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues{/number}","pulls_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls{/number}","milestones_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/milestones{/number}","notifications_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/labels{/name}","releases_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/releases{/id}","deployments_url":"https://api.github.com/repos/getguesstimate/guesstimate-app/deployments","created_at":"2015-08-21T17:19:43Z","updated_at":"2016-09-06T19:44:22Z","pushed_at":"2016-09-06T18:07:15Z","git_url":"git://github.com/getguesstimate/guesstimate-app.git","ssh_url":"git@github.com:getguesstimate/guesstimate-app.git","clone_url":"https://github.com/getguesstimate/guesstimate-app.git","svn_url":"https://github.com/getguesstimate/guesstimate-app","homepage":"http://getguesstimate.com/","size":7709,"stargazers_count":1662,"watchers_count":1662,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":67,"forks":83,"open_issues":67,"watchers":1662,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806"},"html":{"href":"https://github.com/getguesstimate/guesstimate-app/pull/806"},"issue":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/806"},"comments":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/issues/806/comments"},"review_comments":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806/comments"},"review_comment":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/pulls/806/commits"},"statuses":{"href":"https://api.github.com/repos/getguesstimate/guesstimate-app/statuses/9ad34130163e83c4d0b0c906b2bc9d3abe88bb98"}}}}
{"actor":{"display_login":"OAGr"}}