{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/192580478","pull_request_review_id":125386685,"id":192580478,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjU4MDQ3OA==","diff_hunk":"@@ -769,6 +770,109 @@ def get(self, exploration_id, escaped_state_name):\n         })\n \n \n+class FetchIssuesHandler(EditorHandler):\n+    \"\"\"Handler used for retrieving the list of unresolved issues in an\n+    exploration.\n+    \"\"\"\n+\n+    @acl_decorators.can_view_exploration_stats\n+    def get(self, exp_id):\n+        \"\"\"Handles GET requests.\"\"\"\n+        exp_version = self.request.get('exp_version')\n+        exp_issues = stats_services.get_exp_issues(exp_id, exp_version)\n+        if exp_issues is None:\n+            raise self.PageNotFoundException(\n+                'Invalid exploration ID %s' % (exp_id))\n+        unresolved_issues = []\n+        for issue in exp_issues.unresolved_issues:\n+            if issue.is_valid:\n+                unresolved_issues.append(issue)\n+        exp_issues.unresolved_issues = unresolved_issues\n+        exp_issues_dict = exp_issues.to_dict()\n+        self.render_json(exp_issues_dict['unresolved_issues'])\n+\n+\n+class FetchPlaythroughHandler(EditorHandler):\n+    \"\"\"Handler used for retrieving a playthrough.\"\"\"\n+\n+    @acl_decorators.can_view_exploration_stats\n+    def get(self, unused_exploration_id, playthrough_id):\n+        \"\"\"Handles GET requests.\"\"\"\n+        playthrough = stats_services.get_playthrough_by_id(playthrough_id)\n+        if playthrough is None:\n+            raise self.PageNotFoundException(\n+                'Invalid playthrough ID %s' % (playthrough_id))\n+        self.render_json(playthrough.to_dict())\n+\n+\n+class ResolveIssueHandler(EditorHandler):\n+    \"\"\"Handler used for resolving an issue. Currently, when an issue is\n+    resolved, the issue is removed from the unresolved issues list in the\n+    ExplorationIssuesModel instance, and all corresponding playthrough\n+    instances are deleted.\n+    \"\"\"\n+\n+    def _require_exp_issue_dict_is_valid(self, exp_issue_dict):","path":"core/controllers/editor.py","position":54,"original_position":54,"commit_id":"9972a27d58c8223557f4beac286202594bfeb48d","original_commit_id":"0c0077a65119a0cb89fe99e4f838d49684f8cd3f","user":{"login":"seanlip","id":10575562,"node_id":"MDQ6VXNlcjEwNTc1NTYy","avatar_url":"https://avatars0.githubusercontent.com/u/10575562?v=4","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"It's not unreasonable for the controller to call ExplorationIssue.from_backend_dict(). That satisfies both the requirements and I think it's preferable because when you update the definition of ExplorationIssue you'll (presumably) update the definition of this one too.","created_at":"2018-06-03T07:45:53Z","updated_at":"2018-06-03T07:45:53Z","html_url":"https://github.com/oppia/oppia/pull/4952#discussion_r192580478","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/4952","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/192580478"},"html":{"href":"https://github.com/oppia/oppia/pull/4952#discussion_r192580478"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4952"}},"in_reply_to_id":192573612},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/4952","id":189034043,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5MDM0MDQz","html_url":"https://github.com/oppia/oppia/pull/4952","diff_url":"https://github.com/oppia/oppia/pull/4952.diff","patch_url":"https://github.com/oppia/oppia/pull/4952.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/4952","number":4952,"state":"open","locked":false,"title":"Playthrough Visualisation: Milestone 1.2 (Part 3)","user":{"login":"pranavsid98","id":15828797,"node_id":"MDQ6VXNlcjE1ODI4Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/15828797?v=4","gravatar_id":"","url":"https://api.github.com/users/pranavsid98","html_url":"https://github.com/pranavsid98","followers_url":"https://api.github.com/users/pranavsid98/followers","following_url":"https://api.github.com/users/pranavsid98/following{/other_user}","gists_url":"https://api.github.com/users/pranavsid98/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavsid98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavsid98/subscriptions","organizations_url":"https://api.github.com/users/pranavsid98/orgs","repos_url":"https://api.github.com/users/pranavsid98/repos","events_url":"https://api.github.com/users/pranavsid98/events{/privacy}","received_events_url":"https://api.github.com/users/pranavsid98/received_events","type":"User","site_admin":false},"body":"This PR implements Milestone 1.2 of the Playthrough Visualisation project (can be found at [Learner Playthrough Visualization](https://docs.google.com/document/d/1PsGV3Ll-hhdCLaYlq3BwwAVdrnwgne26wapX4RFeA28/edit?ts=5ade8311) ).\r\n\r\nThe following features are implemented in this PR:\r\n\r\n- FetchIssues controller along with tests.\r\n- FetchPlaythrough controller along with tests.\r\n- Helper methods in stats_services.\r\n\r\nTODO after #4946 gets merged:\r\n\r\n- Change lines 170,171 of stats_services to use get_from_model() method instead.\r\n- Change all issue_id/action_id occurrences to issue_type/action_type respectively.\r\n\r\n@brianrodri PTAL!\r\n\r\nThanks a lot","created_at":"2018-05-18T13:55:31Z","updated_at":"2018-06-03T07:45:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3ca3a5857cad68e0875150de2ff95726469f9de","assignee":{"login":"brianrodri","id":5094060,"node_id":"MDQ6VXNlcjUwOTQwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/5094060?v=4","gravatar_id":"","url":"https://api.github.com/users/brianrodri","html_url":"https://github.com/brianrodri","followers_url":"https://api.github.com/users/brianrodri/followers","following_url":"https://api.github.com/users/brianrodri/following{/other_user}","gists_url":"https://api.github.com/users/brianrodri/gists{/gist_id}","starred_url":"https://api.github.com/users/brianrodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianrodri/subscriptions","organizations_url":"https://api.github.com/users/brianrodri/orgs","repos_url":"https://api.github.com/users/brianrodri/repos","events_url":"https://api.github.com/users/brianrodri/events{/privacy}","received_events_url":"https://api.github.com/users/brianrodri/received_events","type":"User","site_admin":false},"assignees":[{"login":"brianrodri","id":5094060,"node_id":"MDQ6VXNlcjUwOTQwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/5094060?v=4","gravatar_id":"","url":"https://api.github.com/users/brianrodri","html_url":"https://github.com/brianrodri","followers_url":"https://api.github.com/users/brianrodri/followers","following_url":"https://api.github.com/users/brianrodri/following{/other_user}","gists_url":"https://api.github.com/users/brianrodri/gists{/gist_id}","starred_url":"https://api.github.com/users/brianrodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianrodri/subscriptions","organizations_url":"https://api.github.com/users/brianrodri/orgs","repos_url":"https://api.github.com/users/brianrodri/repos","events_url":"https://api.github.com/users/brianrodri/events{/privacy}","received_events_url":"https://api.github.com/users/brianrodri/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/4952/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/4952/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/4952/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/9972a27d58c8223557f4beac286202594bfeb48d","head":{"label":"pranavsid98:fetch_issue_playthrough_controllers","ref":"fetch_issue_playthrough_controllers","sha":"9972a27d58c8223557f4beac286202594bfeb48d","user":{"login":"pranavsid98","id":15828797,"node_id":"MDQ6VXNlcjE1ODI4Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/15828797?v=4","gravatar_id":"","url":"https://api.github.com/users/pranavsid98","html_url":"https://github.com/pranavsid98","followers_url":"https://api.github.com/users/pranavsid98/followers","following_url":"https://api.github.com/users/pranavsid98/following{/other_user}","gists_url":"https://api.github.com/users/pranavsid98/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavsid98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavsid98/subscriptions","organizations_url":"https://api.github.com/users/pranavsid98/orgs","repos_url":"https://api.github.com/users/pranavsid98/repos","events_url":"https://api.github.com/users/pranavsid98/events{/privacy}","received_events_url":"https://api.github.com/users/pranavsid98/received_events","type":"User","site_admin":false},"repo":{"id":86517373,"node_id":"MDEwOlJlcG9zaXRvcnk4NjUxNzM3Mw==","name":"oppia","full_name":"pranavsid98/oppia","owner":{"login":"pranavsid98","id":15828797,"node_id":"MDQ6VXNlcjE1ODI4Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/15828797?v=4","gravatar_id":"","url":"https://api.github.com/users/pranavsid98","html_url":"https://github.com/pranavsid98","followers_url":"https://api.github.com/users/pranavsid98/followers","following_url":"https://api.github.com/users/pranavsid98/following{/other_user}","gists_url":"https://api.github.com/users/pranavsid98/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavsid98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavsid98/subscriptions","organizations_url":"https://api.github.com/users/pranavsid98/orgs","repos_url":"https://api.github.com/users/pranavsid98/repos","events_url":"https://api.github.com/users/pranavsid98/events{/privacy}","received_events_url":"https://api.github.com/users/pranavsid98/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pranavsid98/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/pranavsid98/oppia","forks_url":"https://api.github.com/repos/pranavsid98/oppia/forks","keys_url":"https://api.github.com/repos/pranavsid98/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pranavsid98/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pranavsid98/oppia/teams","hooks_url":"https://api.github.com/repos/pranavsid98/oppia/hooks","issue_events_url":"https://api.github.com/repos/pranavsid98/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/pranavsid98/oppia/events","assignees_url":"https://api.github.com/repos/pranavsid98/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/pranavsid98/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/pranavsid98/oppia/tags","blobs_url":"https://api.github.com/repos/pranavsid98/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pranavsid98/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pranavsid98/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/pranavsid98/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pranavsid98/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/pranavsid98/oppia/languages","stargazers_url":"https://api.github.com/repos/pranavsid98/oppia/stargazers","contributors_url":"https://api.github.com/repos/pranavsid98/oppia/contributors","subscribers_url":"https://api.github.com/repos/pranavsid98/oppia/subscribers","subscription_url":"https://api.github.com/repos/pranavsid98/oppia/subscription","commits_url":"https://api.github.com/repos/pranavsid98/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/pranavsid98/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/pranavsid98/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/pranavsid98/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/pranavsid98/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/pranavsid98/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pranavsid98/oppia/merges","archive_url":"https://api.github.com/repos/pranavsid98/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pranavsid98/oppia/downloads","issues_url":"https://api.github.com/repos/pranavsid98/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/pranavsid98/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/pranavsid98/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/pranavsid98/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pranavsid98/oppia/labels{/name}","releases_url":"https://api.github.com/repos/pranavsid98/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/pranavsid98/oppia/deployments","created_at":"2017-03-28T23:28:50Z","updated_at":"2018-06-02T01:52:58Z","pushed_at":"2018-06-03T07:31:41Z","git_url":"git://github.com/pranavsid98/oppia.git","ssh_url":"git@github.com:pranavsid98/oppia.git","clone_url":"https://github.com/pranavsid98/oppia.git","svn_url":"https://github.com/pranavsid98/oppia","homepage":"https://www.oppia.org","size":103066,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"d94b6890e9dec75b52c6a10a0a828ac4a3945d50","user":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"node_id":"MDEwOlJlcG9zaXRvcnk0MDY4NzU2Mw==","name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2018-06-03T05:16:16Z","pushed_at":"2018-06-03T07:31:43Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":103415,"stargazers_count":657,"watchers_count":657,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":636,"mirror_url":null,"archived":false,"open_issues_count":309,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":636,"open_issues":309,"watchers":657,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4952"},"html":{"href":"https://github.com/oppia/oppia/pull/4952"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/4952"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/4952/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4952/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4952/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/9972a27d58c8223557f4beac286202594bfeb48d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"seanlip"}}