{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/117520160","pull_request_review_id":39239206,"id":117520160,"diff_hunk":"@@ -402,9 +404,25 @@ def post(self, exploration_id):\n             self.payload.get('params'),\n             feconf.PLAY_TYPE_NORMAL)\n \n+        if user_id:\n+            learner_progress_services.add_exp_id_to_completed_list(\n+                user_id, exploration_id)\n+\n         if user_id and collection_id:\n             collection_services.record_played_exploration_in_collection_context(\n                 user_id, collection_id, exploration_id)\n+            collections_left_to_complete = (\n+                collection_services.get_next_exploration_ids_to_complete_by_user( # pylint: disable=line-too-long\n+                    user_id, collection_id))\n+\n+            if not collections_left_to_complete:\n+                learner_progress_services.add_collection_id_to_completed_list(\n+                    user_id, collection_id)\n+            else:\n+                learner_progress_services.add_collection_id_to_incomplete_list(","path":"core/controllers/reader.py","position":null,"original_position":35,"commit_id":"55ad76a3bab382be2a5e78ff427e674d6c5e797d","original_commit_id":"9cfbc1cca4217d1ca97ad35c8b0c0e1caf384641","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars3.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2017-05-19T16:21:13Z","updated_at":"2017-05-19T16:21:13Z","html_url":"https://github.com/oppia/oppia/pull/3423#discussion_r117520160","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/3423","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/117520160"},"html":{"href":"https://github.com/oppia/oppia/pull/3423#discussion_r117520160"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3423"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/3423","id":120476366,"html_url":"https://github.com/oppia/oppia/pull/3423","diff_url":"https://github.com/oppia/oppia/pull/3423.diff","patch_url":"https://github.com/oppia/oppia/pull/3423.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/3423","number":3423,"state":"open","locked":false,"title":"First milestone of the Learner Dashboard Project.","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars3.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"body":"The first milestone has been implemented as described in the proposal over [here](https://docs.google.com/document/d/1dY-IUljgPmudkduD5KArQgpwOePr2uKSh2eUmVNBt7k/edit?usp=sharing).","created_at":"2017-05-14T07:26:57Z","updated_at":"2017-05-19T16:21:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7722cba3412383188bd50e143bc73e684cde398","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jaredsilver","id":1312199,"avatar_url":"https://avatars0.githubusercontent.com/u/1312199?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredsilver","html_url":"https://github.com/jaredsilver","followers_url":"https://api.github.com/users/jaredsilver/followers","following_url":"https://api.github.com/users/jaredsilver/following{/other_user}","gists_url":"https://api.github.com/users/jaredsilver/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredsilver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredsilver/subscriptions","organizations_url":"https://api.github.com/users/jaredsilver/orgs","repos_url":"https://api.github.com/users/jaredsilver/repos","events_url":"https://api.github.com/users/jaredsilver/events{/privacy}","received_events_url":"https://api.github.com/users/jaredsilver/received_events","type":"User","site_admin":false},{"login":"rachelwchen","id":12159451,"avatar_url":"https://avatars3.githubusercontent.com/u/12159451?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelwchen","html_url":"https://github.com/rachelwchen","followers_url":"https://api.github.com/users/rachelwchen/followers","following_url":"https://api.github.com/users/rachelwchen/following{/other_user}","gists_url":"https://api.github.com/users/rachelwchen/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelwchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelwchen/subscriptions","organizations_url":"https://api.github.com/users/rachelwchen/orgs","repos_url":"https://api.github.com/users/rachelwchen/repos","events_url":"https://api.github.com/users/rachelwchen/events{/privacy}","received_events_url":"https://api.github.com/users/rachelwchen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/3423/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/3423/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/3423/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/55ad76a3bab382be2a5e78ff427e674d6c5e797d","head":{"label":"Arunabh98:learner-dashboard-first-milestone","ref":"learner-dashboard-first-milestone","sha":"55ad76a3bab382be2a5e78ff427e674d6c5e797d","user":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars3.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"repo":{"id":63477087,"name":"oppia","full_name":"Arunabh98/oppia","owner":{"login":"Arunabh98","id":13691317,"avatar_url":"https://avatars3.githubusercontent.com/u/13691317?v=3","gravatar_id":"","url":"https://api.github.com/users/Arunabh98","html_url":"https://github.com/Arunabh98","followers_url":"https://api.github.com/users/Arunabh98/followers","following_url":"https://api.github.com/users/Arunabh98/following{/other_user}","gists_url":"https://api.github.com/users/Arunabh98/gists{/gist_id}","starred_url":"https://api.github.com/users/Arunabh98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arunabh98/subscriptions","organizations_url":"https://api.github.com/users/Arunabh98/orgs","repos_url":"https://api.github.com/users/Arunabh98/repos","events_url":"https://api.github.com/users/Arunabh98/events{/privacy}","received_events_url":"https://api.github.com/users/Arunabh98/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arunabh98/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/Arunabh98/oppia","forks_url":"https://api.github.com/repos/Arunabh98/oppia/forks","keys_url":"https://api.github.com/repos/Arunabh98/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arunabh98/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arunabh98/oppia/teams","hooks_url":"https://api.github.com/repos/Arunabh98/oppia/hooks","issue_events_url":"https://api.github.com/repos/Arunabh98/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/Arunabh98/oppia/events","assignees_url":"https://api.github.com/repos/Arunabh98/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/Arunabh98/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/Arunabh98/oppia/tags","blobs_url":"https://api.github.com/repos/Arunabh98/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arunabh98/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arunabh98/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arunabh98/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arunabh98/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/Arunabh98/oppia/languages","stargazers_url":"https://api.github.com/repos/Arunabh98/oppia/stargazers","contributors_url":"https://api.github.com/repos/Arunabh98/oppia/contributors","subscribers_url":"https://api.github.com/repos/Arunabh98/oppia/subscribers","subscription_url":"https://api.github.com/repos/Arunabh98/oppia/subscription","commits_url":"https://api.github.com/repos/Arunabh98/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arunabh98/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arunabh98/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arunabh98/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arunabh98/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/Arunabh98/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arunabh98/oppia/merges","archive_url":"https://api.github.com/repos/Arunabh98/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arunabh98/oppia/downloads","issues_url":"https://api.github.com/repos/Arunabh98/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/Arunabh98/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/Arunabh98/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/Arunabh98/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arunabh98/oppia/labels{/name}","releases_url":"https://api.github.com/repos/Arunabh98/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/Arunabh98/oppia/deployments","created_at":"2016-07-16T10:05:00Z","updated_at":"2016-07-16T10:05:04Z","pushed_at":"2017-05-19T16:16:50Z","git_url":"git://github.com/Arunabh98/oppia.git","ssh_url":"git@github.com:Arunabh98/oppia.git","clone_url":"https://github.com/Arunabh98/oppia.git","svn_url":"https://github.com/Arunabh98/oppia","homepage":"https://www.oppia.org","size":51437,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"3a34c3c6c63607e75e96c60eb68197ba15abf842","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars2.githubusercontent.com/u/11620230?v=3","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,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars2.githubusercontent.com/u/11620230?v=3","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":"2017-05-18T13:00:41Z","pushed_at":"2017-05-19T16:16:53Z","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":51662,"stargazers_count":308,"watchers_count":308,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":427,"mirror_url":null,"open_issues_count":356,"forks":427,"open_issues":356,"watchers":308,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3423"},"html":{"href":"https://github.com/oppia/oppia/pull/3423"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/3423"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/3423/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3423/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3423/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/55ad76a3bab382be2a5e78ff427e674d6c5e797d"}}}}
{"actor":{"display_login":"Arunabh98"}}