{"action":"created","comment":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/comments/65223240","id":65223240,"diff_hunk":"@@ -81,12 +81,28 @@ public function by_project_id( $project_id ) {\n \t}\n \n \tpublic function count_by_project_id( $project_id ) {","path":"gp-includes/things/original.php","position":3,"original_position":3,"commit_id":"cd87bf453789845a7f1940d7f8b072941c03bdcf","original_commit_id":"cd87bf453789845a7f1940d7f8b072941c03bdcf","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"body":"To provide back-compat we can add a second parameter to switch between int (all counts) and stdClass (total,public,hidden).","created_at":"2016-05-31T17:08:14Z","updated_at":"2016-05-31T17:08:14Z","html_url":"https://github.com/GlotPress/GlotPress-WP/pull/456#discussion_r65223240","pull_request_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456","_links":{"self":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/comments/65223240"},"html":{"href":"https://github.com/GlotPress/GlotPress-WP/pull/456#discussion_r65223240"},"pull_request":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456"}}},"pull_request":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456","id":70971059,"html_url":"https://github.com/GlotPress/GlotPress-WP/pull/456","diff_url":"https://github.com/GlotPress/GlotPress-WP/pull/456.diff","patch_url":"https://github.com/GlotPress/GlotPress-WP/pull/456.patch","issue_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/456","number":456,"state":"open","locked":false,"title":"397: Translation sets: Split status counts by hidden and public","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"body":"This PR changes the return value of `GP_Original::count_by_project_id()` to a `stdClass` object which includes `total`, `public`, `hidden`. The type in the cache changes too.\r\n\r\nIt also changes the value of the `translation_set_status_breakdown` cache in `GP_Translation_Set::update_status_breakdown()`. It now contains a  `stdClass` object which includes `total`, `public`, `hidden` for each status.\r\n\r\nAlternative to #398.\r\nFixes #397.","created_at":"2016-05-22T08:18:34Z","updated_at":"2016-05-31T17:08:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db3317fe979f39b1fda6059881f81e1e7da6eb55","assignee":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/6","html_url":"https://github.com/GlotPress/GlotPress-WP/milestones/2.1","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/6/labels","id":1678016,"number":6,"title":"2.1","description":"","creator":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":46,"state":"open","created_at":"2016-04-01T13:19:46Z","updated_at":"2016-05-24T17:51:48Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456/commits","review_comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456/comments","review_comment_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/456/comments","statuses_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/statuses/cd87bf453789845a7f1940d7f8b072941c03bdcf","head":{"label":"GlotPress:397-split-hidden-public-counts","ref":"397-split-hidden-public-counts","sha":"cd87bf453789845a7f1940d7f8b072941c03bdcf","user":{"login":"GlotPress","id":7506006,"avatar_url":"https://avatars.githubusercontent.com/u/7506006?v=3","gravatar_id":"","url":"https://api.github.com/users/GlotPress","html_url":"https://github.com/GlotPress","followers_url":"https://api.github.com/users/GlotPress/followers","following_url":"https://api.github.com/users/GlotPress/following{/other_user}","gists_url":"https://api.github.com/users/GlotPress/gists{/gist_id}","starred_url":"https://api.github.com/users/GlotPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlotPress/subscriptions","organizations_url":"https://api.github.com/users/GlotPress/orgs","repos_url":"https://api.github.com/users/GlotPress/repos","events_url":"https://api.github.com/users/GlotPress/events{/privacy}","received_events_url":"https://api.github.com/users/GlotPress/received_events","type":"Organization","site_admin":false},"repo":{"id":41502787,"name":"GlotPress-WP","full_name":"GlotPress/GlotPress-WP","owner":{"login":"GlotPress","id":7506006,"avatar_url":"https://avatars.githubusercontent.com/u/7506006?v=3","gravatar_id":"","url":"https://api.github.com/users/GlotPress","html_url":"https://github.com/GlotPress","followers_url":"https://api.github.com/users/GlotPress/followers","following_url":"https://api.github.com/users/GlotPress/following{/other_user}","gists_url":"https://api.github.com/users/GlotPress/gists{/gist_id}","starred_url":"https://api.github.com/users/GlotPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlotPress/subscriptions","organizations_url":"https://api.github.com/users/GlotPress/orgs","repos_url":"https://api.github.com/users/GlotPress/repos","events_url":"https://api.github.com/users/GlotPress/events{/privacy}","received_events_url":"https://api.github.com/users/GlotPress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GlotPress/GlotPress-WP","description":":earth_africa: :earth_americas: :earth_asia: GlotPress, a WordPress Plugin","fork":false,"url":"https://api.github.com/repos/GlotPress/GlotPress-WP","forks_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/forks","keys_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/teams","hooks_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/hooks","issue_events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/events{/number}","events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/events","assignees_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/assignees{/user}","branches_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/branches{/branch}","tags_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/tags","blobs_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/refs{/sha}","trees_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/statuses/{sha}","languages_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/languages","stargazers_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/stargazers","contributors_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/contributors","subscribers_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/subscribers","subscription_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/subscription","commits_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/commits{/sha}","git_commits_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/commits{/sha}","comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/comments{/number}","issue_comment_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/comments{/number}","contents_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/contents/{+path}","compare_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/merges","archive_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/downloads","issues_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues{/number}","pulls_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls{/number}","milestones_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones{/number}","notifications_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels{/name}","releases_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/releases{/id}","deployments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/deployments","created_at":"2015-08-27T18:00:04Z","updated_at":"2016-05-27T02:15:39Z","pushed_at":"2016-05-24T17:51:51Z","git_url":"git://github.com/GlotPress/GlotPress-WP.git","ssh_url":"git@github.com:GlotPress/GlotPress-WP.git","clone_url":"https://github.com/GlotPress/GlotPress-WP.git","svn_url":"https://github.com/GlotPress/GlotPress-WP","homepage":"https://wordpress.org/plugins/glotpress/","size":5505,"stargazers_count":76,"watchers_count":76,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":53,"forks":28,"open_issues":53,"watchers":76,"default_branch":"develop"}},"base":{"label":"GlotPress:develop","ref":"develop","sha":"ae0fae7681d391405c0dfe2f7f8865cfeb90a3ba","user":{"login":"GlotPress","id":7506006,"avatar_url":"https://avatars.githubusercontent.com/u/7506006?v=3","gravatar_id":"","url":"https://api.github.com/users/GlotPress","html_url":"https://github.com/GlotPress","followers_url":"https://api.github.com/users/GlotPress/followers","following_url":"https://api.github.com/users/GlotPress/following{/other_user}","gists_url":"https://api.github.com/users/GlotPress/gists{/gist_id}","starred_url":"https://api.github.com/users/GlotPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlotPress/subscriptions","organizations_url":"https://api.github.com/users/GlotPress/orgs","repos_url":"https://api.github.com/users/GlotPress/repos","events_url":"https://api.github.com/users/GlotPress/events{/privacy}","received_events_url":"https://api.github.com/users/GlotPress/received_events","type":"Organization","site_admin":false},"repo":{"id":41502787,"name":"GlotPress-WP","full_name":"GlotPress/GlotPress-WP","owner":{"login":"GlotPress","id":7506006,"avatar_url":"https://avatars.githubusercontent.com/u/7506006?v=3","gravatar_id":"","url":"https://api.github.com/users/GlotPress","html_url":"https://github.com/GlotPress","followers_url":"https://api.github.com/users/GlotPress/followers","following_url":"https://api.github.com/users/GlotPress/following{/other_user}","gists_url":"https://api.github.com/users/GlotPress/gists{/gist_id}","starred_url":"https://api.github.com/users/GlotPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlotPress/subscriptions","organizations_url":"https://api.github.com/users/GlotPress/orgs","repos_url":"https://api.github.com/users/GlotPress/repos","events_url":"https://api.github.com/users/GlotPress/events{/privacy}","received_events_url":"https://api.github.com/users/GlotPress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GlotPress/GlotPress-WP","description":":earth_africa: :earth_americas: :earth_asia: GlotPress, a WordPress Plugin","fork":false,"url":"https://api.github.com/repos/GlotPress/GlotPress-WP","forks_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/forks","keys_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/teams","hooks_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/hooks","issue_events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/events{/number}","events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/events","assignees_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/assignees{/user}","branches_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/branches{/branch}","tags_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/tags","blobs_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/refs{/sha}","trees_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/statuses/{sha}","languages_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/languages","stargazers_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/stargazers","contributors_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/contributors","subscribers_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/subscribers","subscription_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/subscription","commits_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/commits{/sha}","git_commits_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/git/commits{/sha}","comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/comments{/number}","issue_comment_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/comments{/number}","contents_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/contents/{+path}","compare_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/merges","archive_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/downloads","issues_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues{/number}","pulls_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls{/number}","milestones_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones{/number}","notifications_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels{/name}","releases_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/releases{/id}","deployments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/deployments","created_at":"2015-08-27T18:00:04Z","updated_at":"2016-05-27T02:15:39Z","pushed_at":"2016-05-24T17:51:51Z","git_url":"git://github.com/GlotPress/GlotPress-WP.git","ssh_url":"git@github.com:GlotPress/GlotPress-WP.git","clone_url":"https://github.com/GlotPress/GlotPress-WP.git","svn_url":"https://github.com/GlotPress/GlotPress-WP","homepage":"https://wordpress.org/plugins/glotpress/","size":5505,"stargazers_count":76,"watchers_count":76,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":53,"forks":28,"open_issues":53,"watchers":76,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456"},"html":{"href":"https://github.com/GlotPress/GlotPress-WP/pull/456"},"issue":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/456"},"comments":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/456/comments"},"review_comments":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456/comments"},"review_comment":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/pulls/456/commits"},"statuses":{"href":"https://api.github.com/repos/GlotPress/GlotPress-WP/statuses/cd87bf453789845a7f1940d7f8b072941c03bdcf"}}}}
{"actor":{"display_login":"ocean90"}}