{"action":"created","comment":{"url":"https://api.github.com/repos/okfn/opendatacensus/pulls/comments/41873213","id":41873213,"diff_hunk":"@@ -141,7 +141,11 @@ var processEntries = function(data, options) {\n \n     data.pending = _.where(data.entries, {'isCurrent': false, 'reviewed': false});\n     data.rejected = _.where(data.entries, {'isCurrent': false, 'reviewed': true, 'reviewResult': false});\n-    _.remove(data.entries, function(e) { return e.isCurrent === false; });","path":"census/models/utils.js","position":4,"original_position":4,"commit_id":"0bd5007f8aff6febd3e4650fafb19bb128385a1d","original_commit_id":"0bd5007f8aff6febd3e4650fafb19bb128385a1d","user":{"login":"pwalsh","id":791678,"avatar_url":"https://avatars.githubusercontent.com/u/791678?v=3","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"body":"@kravets-levko this and below lines need explicit unit tests in https://github.com/okfn/opendatacensus/blob/develop/tests/models.js","created_at":"2015-10-13T14:34:20Z","updated_at":"2015-10-13T14:34:20Z","html_url":"https://github.com/okfn/opendatacensus/pull/707#discussion_r41873213","pull_request_url":"https://api.github.com/repos/okfn/opendatacensus/pulls/707","_links":{"self":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/comments/41873213"},"html":{"href":"https://github.com/okfn/opendatacensus/pull/707#discussion_r41873213"},"pull_request":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/707"}}},"pull_request":{"url":"https://api.github.com/repos/okfn/opendatacensus/pulls/707","id":47525707,"html_url":"https://github.com/okfn/opendatacensus/pull/707","diff_url":"https://github.com/okfn/opendatacensus/pull/707.diff","patch_url":"https://github.com/okfn/opendatacensus/pull/707.patch","issue_url":"https://api.github.com/repos/okfn/opendatacensus/issues/707","number":707,"state":"open","locked":false,"title":"Feature/updates to api","user":{"login":"kravets-levko","id":12139186,"avatar_url":"https://avatars.githubusercontent.com/u/12139186?v=3","gravatar_id":"","url":"https://api.github.com/users/kravets-levko","html_url":"https://github.com/kravets-levko","followers_url":"https://api.github.com/users/kravets-levko/followers","following_url":"https://api.github.com/users/kravets-levko/following{/other_user}","gists_url":"https://api.github.com/users/kravets-levko/gists{/gist_id}","starred_url":"https://api.github.com/users/kravets-levko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravets-levko/subscriptions","organizations_url":"https://api.github.com/users/kravets-levko/orgs","repos_url":"https://api.github.com/users/kravets-levko/repos","events_url":"https://api.github.com/users/kravets-levko/events{/privacy}","received_events_url":"https://api.github.com/users/kravets-levko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-13T12:22:10Z","updated_at":"2015-10-13T14:34:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0acc99a3764c563873e3ca3f5456bc579b0a76fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/okfn/opendatacensus/pulls/707/commits","review_comments_url":"https://api.github.com/repos/okfn/opendatacensus/pulls/707/comments","review_comment_url":"https://api.github.com/repos/okfn/opendatacensus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okfn/opendatacensus/issues/707/comments","statuses_url":"https://api.github.com/repos/okfn/opendatacensus/statuses/0bd5007f8aff6febd3e4650fafb19bb128385a1d","head":{"label":"kravets-levko:feature/updates-to-api","ref":"feature/updates-to-api","sha":"0bd5007f8aff6febd3e4650fafb19bb128385a1d","user":{"login":"kravets-levko","id":12139186,"avatar_url":"https://avatars.githubusercontent.com/u/12139186?v=3","gravatar_id":"","url":"https://api.github.com/users/kravets-levko","html_url":"https://github.com/kravets-levko","followers_url":"https://api.github.com/users/kravets-levko/followers","following_url":"https://api.github.com/users/kravets-levko/following{/other_user}","gists_url":"https://api.github.com/users/kravets-levko/gists{/gist_id}","starred_url":"https://api.github.com/users/kravets-levko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravets-levko/subscriptions","organizations_url":"https://api.github.com/users/kravets-levko/orgs","repos_url":"https://api.github.com/users/kravets-levko/repos","events_url":"https://api.github.com/users/kravets-levko/events{/privacy}","received_events_url":"https://api.github.com/users/kravets-levko/received_events","type":"User","site_admin":false},"repo":{"id":43415509,"name":"opendatacensus","full_name":"kravets-levko/opendatacensus","owner":{"login":"kravets-levko","id":12139186,"avatar_url":"https://avatars.githubusercontent.com/u/12139186?v=3","gravatar_id":"","url":"https://api.github.com/users/kravets-levko","html_url":"https://github.com/kravets-levko","followers_url":"https://api.github.com/users/kravets-levko/followers","following_url":"https://api.github.com/users/kravets-levko/following{/other_user}","gists_url":"https://api.github.com/users/kravets-levko/gists{/gist_id}","starred_url":"https://api.github.com/users/kravets-levko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravets-levko/subscriptions","organizations_url":"https://api.github.com/users/kravets-levko/orgs","repos_url":"https://api.github.com/users/kravets-levko/repos","events_url":"https://api.github.com/users/kravets-levko/events{/privacy}","received_events_url":"https://api.github.com/users/kravets-levko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravets-levko/opendatacensus","description":"The Open Data Census application.","fork":true,"url":"https://api.github.com/repos/kravets-levko/opendatacensus","forks_url":"https://api.github.com/repos/kravets-levko/opendatacensus/forks","keys_url":"https://api.github.com/repos/kravets-levko/opendatacensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravets-levko/opendatacensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravets-levko/opendatacensus/teams","hooks_url":"https://api.github.com/repos/kravets-levko/opendatacensus/hooks","issue_events_url":"https://api.github.com/repos/kravets-levko/opendatacensus/issues/events{/number}","events_url":"https://api.github.com/repos/kravets-levko/opendatacensus/events","assignees_url":"https://api.github.com/repos/kravets-levko/opendatacensus/assignees{/user}","branches_url":"https://api.github.com/repos/kravets-levko/opendatacensus/branches{/branch}","tags_url":"https://api.github.com/repos/kravets-levko/opendatacensus/tags","blobs_url":"https://api.github.com/repos/kravets-levko/opendatacensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravets-levko/opendatacensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravets-levko/opendatacensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravets-levko/opendatacensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravets-levko/opendatacensus/statuses/{sha}","languages_url":"https://api.github.com/repos/kravets-levko/opendatacensus/languages","stargazers_url":"https://api.github.com/repos/kravets-levko/opendatacensus/stargazers","contributors_url":"https://api.github.com/repos/kravets-levko/opendatacensus/contributors","subscribers_url":"https://api.github.com/repos/kravets-levko/opendatacensus/subscribers","subscription_url":"https://api.github.com/repos/kravets-levko/opendatacensus/subscription","commits_url":"https://api.github.com/repos/kravets-levko/opendatacensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravets-levko/opendatacensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravets-levko/opendatacensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravets-levko/opendatacensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravets-levko/opendatacensus/contents/{+path}","compare_url":"https://api.github.com/repos/kravets-levko/opendatacensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravets-levko/opendatacensus/merges","archive_url":"https://api.github.com/repos/kravets-levko/opendatacensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravets-levko/opendatacensus/downloads","issues_url":"https://api.github.com/repos/kravets-levko/opendatacensus/issues{/number}","pulls_url":"https://api.github.com/repos/kravets-levko/opendatacensus/pulls{/number}","milestones_url":"https://api.github.com/repos/kravets-levko/opendatacensus/milestones{/number}","notifications_url":"https://api.github.com/repos/kravets-levko/opendatacensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravets-levko/opendatacensus/labels{/name}","releases_url":"https://api.github.com/repos/kravets-levko/opendatacensus/releases{/id}","created_at":"2015-09-30T06:17:37Z","updated_at":"2015-09-30T06:17:39Z","pushed_at":"2015-10-13T12:21:16Z","git_url":"git://github.com/kravets-levko/opendatacensus.git","ssh_url":"git@github.com:kravets-levko/opendatacensus.git","clone_url":"https://github.com/kravets-levko/opendatacensus.git","svn_url":"https://github.com/kravets-levko/opendatacensus","homepage":"http://census.okfn.org/","size":2885,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"okfn:develop","ref":"develop","sha":"3ea52dfa0fb54c787dd0afa9d93239d6e046ca49","user":{"login":"okfn","id":304263,"avatar_url":"https://avatars.githubusercontent.com/u/304263?v=3","gravatar_id":"","url":"https://api.github.com/users/okfn","html_url":"https://github.com/okfn","followers_url":"https://api.github.com/users/okfn/followers","following_url":"https://api.github.com/users/okfn/following{/other_user}","gists_url":"https://api.github.com/users/okfn/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn/subscriptions","organizations_url":"https://api.github.com/users/okfn/orgs","repos_url":"https://api.github.com/users/okfn/repos","events_url":"https://api.github.com/users/okfn/events{/privacy}","received_events_url":"https://api.github.com/users/okfn/received_events","type":"Organization","site_admin":false},"repo":{"id":5691560,"name":"opendatacensus","full_name":"okfn/opendatacensus","owner":{"login":"okfn","id":304263,"avatar_url":"https://avatars.githubusercontent.com/u/304263?v=3","gravatar_id":"","url":"https://api.github.com/users/okfn","html_url":"https://github.com/okfn","followers_url":"https://api.github.com/users/okfn/followers","following_url":"https://api.github.com/users/okfn/following{/other_user}","gists_url":"https://api.github.com/users/okfn/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn/subscriptions","organizations_url":"https://api.github.com/users/okfn/orgs","repos_url":"https://api.github.com/users/okfn/repos","events_url":"https://api.github.com/users/okfn/events{/privacy}","received_events_url":"https://api.github.com/users/okfn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okfn/opendatacensus","description":"The Open Data Census application.","fork":false,"url":"https://api.github.com/repos/okfn/opendatacensus","forks_url":"https://api.github.com/repos/okfn/opendatacensus/forks","keys_url":"https://api.github.com/repos/okfn/opendatacensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okfn/opendatacensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okfn/opendatacensus/teams","hooks_url":"https://api.github.com/repos/okfn/opendatacensus/hooks","issue_events_url":"https://api.github.com/repos/okfn/opendatacensus/issues/events{/number}","events_url":"https://api.github.com/repos/okfn/opendatacensus/events","assignees_url":"https://api.github.com/repos/okfn/opendatacensus/assignees{/user}","branches_url":"https://api.github.com/repos/okfn/opendatacensus/branches{/branch}","tags_url":"https://api.github.com/repos/okfn/opendatacensus/tags","blobs_url":"https://api.github.com/repos/okfn/opendatacensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okfn/opendatacensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okfn/opendatacensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/okfn/opendatacensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okfn/opendatacensus/statuses/{sha}","languages_url":"https://api.github.com/repos/okfn/opendatacensus/languages","stargazers_url":"https://api.github.com/repos/okfn/opendatacensus/stargazers","contributors_url":"https://api.github.com/repos/okfn/opendatacensus/contributors","subscribers_url":"https://api.github.com/repos/okfn/opendatacensus/subscribers","subscription_url":"https://api.github.com/repos/okfn/opendatacensus/subscription","commits_url":"https://api.github.com/repos/okfn/opendatacensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/okfn/opendatacensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/okfn/opendatacensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/okfn/opendatacensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/okfn/opendatacensus/contents/{+path}","compare_url":"https://api.github.com/repos/okfn/opendatacensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okfn/opendatacensus/merges","archive_url":"https://api.github.com/repos/okfn/opendatacensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okfn/opendatacensus/downloads","issues_url":"https://api.github.com/repos/okfn/opendatacensus/issues{/number}","pulls_url":"https://api.github.com/repos/okfn/opendatacensus/pulls{/number}","milestones_url":"https://api.github.com/repos/okfn/opendatacensus/milestones{/number}","notifications_url":"https://api.github.com/repos/okfn/opendatacensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okfn/opendatacensus/labels{/name}","releases_url":"https://api.github.com/repos/okfn/opendatacensus/releases{/id}","created_at":"2012-09-05T18:34:13Z","updated_at":"2015-10-11T12:49:42Z","pushed_at":"2015-10-13T13:32:56Z","git_url":"git://github.com/okfn/opendatacensus.git","ssh_url":"git@github.com:okfn/opendatacensus.git","clone_url":"https://github.com/okfn/opendatacensus.git","svn_url":"https://github.com/okfn/opendatacensus","homepage":"http://census.okfn.org/","size":5577,"stargazers_count":77,"watchers_count":77,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":35,"forks":67,"open_issues":35,"watchers":77,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/707"},"html":{"href":"https://github.com/okfn/opendatacensus/pull/707"},"issue":{"href":"https://api.github.com/repos/okfn/opendatacensus/issues/707"},"comments":{"href":"https://api.github.com/repos/okfn/opendatacensus/issues/707/comments"},"review_comments":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/707/comments"},"review_comment":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okfn/opendatacensus/pulls/707/commits"},"statuses":{"href":"https://api.github.com/repos/okfn/opendatacensus/statuses/0bd5007f8aff6febd3e4650fafb19bb128385a1d"}}}}