{"action":"closed","number":2827,"pull_request":{"url":"https://api.github.com/repos/exercism/exercism.io/pulls/2827","id":66433844,"html_url":"https://github.com/exercism/exercism.io/pull/2827","diff_url":"https://github.com/exercism/exercism.io/pull/2827.diff","patch_url":"https://github.com/exercism/exercism.io/pull/2827.patch","issue_url":"https://api.github.com/repos/exercism/exercism.io/issues/2827","number":2827,"state":"closed","locked":false,"title":"Update statistics endpoint to scope into completed exercises","user":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"body":"The statistics endpoint currently returns user.exercises, which includes exercises with iteration counts of 0.  Because of this, the returned data is incorrect as it lists all fetched exercises as completed.\r\n\r\nBy scoping into exercises.current, exercises with 0 iterations will be excluded and will mirror the data shown on the user/show view.","created_at":"2016-04-14T06:18:37Z","updated_at":"2016-04-17T23:58:21Z","closed_at":"2016-04-17T23:58:21Z","merged_at":null,"merge_commit_sha":"39c2db25b60e40e30e239053738018aa0e45136d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exercism/exercism.io/pulls/2827/commits","review_comments_url":"https://api.github.com/repos/exercism/exercism.io/pulls/2827/comments","review_comment_url":"https://api.github.com/repos/exercism/exercism.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exercism/exercism.io/issues/2827/comments","statuses_url":"https://api.github.com/repos/exercism/exercism.io/statuses/0c800f138966321a8471a2a40bbfb3115e4b5b65","head":{"label":"weilandia:scope_exercise_stats_into_current_exercises","ref":"scope_exercise_stats_into_current_exercises","sha":"0c800f138966321a8471a2a40bbfb3115e4b5b65","user":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"repo":{"id":56205278,"name":"exercism.io","full_name":"weilandia/exercism.io","owner":{"login":"weilandia","id":13652979,"avatar_url":"https://avatars.githubusercontent.com/u/13652979?v=3","gravatar_id":"","url":"https://api.github.com/users/weilandia","html_url":"https://github.com/weilandia","followers_url":"https://api.github.com/users/weilandia/followers","following_url":"https://api.github.com/users/weilandia/following{/other_user}","gists_url":"https://api.github.com/users/weilandia/gists{/gist_id}","starred_url":"https://api.github.com/users/weilandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilandia/subscriptions","organizations_url":"https://api.github.com/users/weilandia/orgs","repos_url":"https://api.github.com/users/weilandia/repos","events_url":"https://api.github.com/users/weilandia/events{/privacy}","received_events_url":"https://api.github.com/users/weilandia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weilandia/exercism.io","description":"Level up your programming skills.","fork":true,"url":"https://api.github.com/repos/weilandia/exercism.io","forks_url":"https://api.github.com/repos/weilandia/exercism.io/forks","keys_url":"https://api.github.com/repos/weilandia/exercism.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weilandia/exercism.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weilandia/exercism.io/teams","hooks_url":"https://api.github.com/repos/weilandia/exercism.io/hooks","issue_events_url":"https://api.github.com/repos/weilandia/exercism.io/issues/events{/number}","events_url":"https://api.github.com/repos/weilandia/exercism.io/events","assignees_url":"https://api.github.com/repos/weilandia/exercism.io/assignees{/user}","branches_url":"https://api.github.com/repos/weilandia/exercism.io/branches{/branch}","tags_url":"https://api.github.com/repos/weilandia/exercism.io/tags","blobs_url":"https://api.github.com/repos/weilandia/exercism.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weilandia/exercism.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weilandia/exercism.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/weilandia/exercism.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weilandia/exercism.io/statuses/{sha}","languages_url":"https://api.github.com/repos/weilandia/exercism.io/languages","stargazers_url":"https://api.github.com/repos/weilandia/exercism.io/stargazers","contributors_url":"https://api.github.com/repos/weilandia/exercism.io/contributors","subscribers_url":"https://api.github.com/repos/weilandia/exercism.io/subscribers","subscription_url":"https://api.github.com/repos/weilandia/exercism.io/subscription","commits_url":"https://api.github.com/repos/weilandia/exercism.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/weilandia/exercism.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/weilandia/exercism.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/weilandia/exercism.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/weilandia/exercism.io/contents/{+path}","compare_url":"https://api.github.com/repos/weilandia/exercism.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weilandia/exercism.io/merges","archive_url":"https://api.github.com/repos/weilandia/exercism.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weilandia/exercism.io/downloads","issues_url":"https://api.github.com/repos/weilandia/exercism.io/issues{/number}","pulls_url":"https://api.github.com/repos/weilandia/exercism.io/pulls{/number}","milestones_url":"https://api.github.com/repos/weilandia/exercism.io/milestones{/number}","notifications_url":"https://api.github.com/repos/weilandia/exercism.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weilandia/exercism.io/labels{/name}","releases_url":"https://api.github.com/repos/weilandia/exercism.io/releases{/id}","deployments_url":"https://api.github.com/repos/weilandia/exercism.io/deployments","created_at":"2016-04-14T03:44:32Z","updated_at":"2016-04-15T04:29:11Z","pushed_at":"2016-04-17T23:57:50Z","git_url":"git://github.com/weilandia/exercism.io.git","ssh_url":"git@github.com:weilandia/exercism.io.git","clone_url":"https://github.com/weilandia/exercism.io.git","svn_url":"https://github.com/weilandia/exercism.io","homepage":"http://exercism.io","size":14081,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"exercism:master","ref":"master","sha":"19391efbfb1341a5ae1d26de4a46407ec83cb4c7","user":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"repo":{"id":10395188,"name":"exercism.io","full_name":"exercism/exercism.io","owner":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exercism/exercism.io","description":"Level up your programming skills.","fork":false,"url":"https://api.github.com/repos/exercism/exercism.io","forks_url":"https://api.github.com/repos/exercism/exercism.io/forks","keys_url":"https://api.github.com/repos/exercism/exercism.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exercism/exercism.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exercism/exercism.io/teams","hooks_url":"https://api.github.com/repos/exercism/exercism.io/hooks","issue_events_url":"https://api.github.com/repos/exercism/exercism.io/issues/events{/number}","events_url":"https://api.github.com/repos/exercism/exercism.io/events","assignees_url":"https://api.github.com/repos/exercism/exercism.io/assignees{/user}","branches_url":"https://api.github.com/repos/exercism/exercism.io/branches{/branch}","tags_url":"https://api.github.com/repos/exercism/exercism.io/tags","blobs_url":"https://api.github.com/repos/exercism/exercism.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exercism/exercism.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exercism/exercism.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/exercism/exercism.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exercism/exercism.io/statuses/{sha}","languages_url":"https://api.github.com/repos/exercism/exercism.io/languages","stargazers_url":"https://api.github.com/repos/exercism/exercism.io/stargazers","contributors_url":"https://api.github.com/repos/exercism/exercism.io/contributors","subscribers_url":"https://api.github.com/repos/exercism/exercism.io/subscribers","subscription_url":"https://api.github.com/repos/exercism/exercism.io/subscription","commits_url":"https://api.github.com/repos/exercism/exercism.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/exercism/exercism.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/exercism/exercism.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/exercism/exercism.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/exercism/exercism.io/contents/{+path}","compare_url":"https://api.github.com/repos/exercism/exercism.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exercism/exercism.io/merges","archive_url":"https://api.github.com/repos/exercism/exercism.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exercism/exercism.io/downloads","issues_url":"https://api.github.com/repos/exercism/exercism.io/issues{/number}","pulls_url":"https://api.github.com/repos/exercism/exercism.io/pulls{/number}","milestones_url":"https://api.github.com/repos/exercism/exercism.io/milestones{/number}","notifications_url":"https://api.github.com/repos/exercism/exercism.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exercism/exercism.io/labels{/name}","releases_url":"https://api.github.com/repos/exercism/exercism.io/releases{/id}","deployments_url":"https://api.github.com/repos/exercism/exercism.io/deployments","created_at":"2013-05-31T00:53:50Z","updated_at":"2016-04-17T19:34:41Z","pushed_at":"2016-04-17T23:57:52Z","git_url":"git://github.com/exercism/exercism.io.git","ssh_url":"git@github.com:exercism/exercism.io.git","clone_url":"https://github.com/exercism/exercism.io.git","svn_url":"https://github.com/exercism/exercism.io","homepage":"http://exercism.io","size":25890,"stargazers_count":2057,"watchers_count":2057,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":598,"mirror_url":null,"open_issues_count":169,"forks":598,"open_issues":169,"watchers":2057,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/2827"},"html":{"href":"https://github.com/exercism/exercism.io/pull/2827"},"issue":{"href":"https://api.github.com/repos/exercism/exercism.io/issues/2827"},"comments":{"href":"https://api.github.com/repos/exercism/exercism.io/issues/2827/comments"},"review_comments":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/2827/comments"},"review_comment":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/2827/commits"},"statuses":{"href":"https://api.github.com/repos/exercism/exercism.io/statuses/0c800f138966321a8471a2a40bbfb3115e4b5b65"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":1,"commits":15,"additions":11,"deletions":10,"changed_files":4}}