{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/206588436","pull_request_review_id":142028852,"id":206588436,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjU4ODQzNg==","diff_hunk":"@@ -72,34 +97,57 @@ oppia.directive('stateTranslation', [\n               } else {\n                 return false;\n               }\n-            } else {\n+            } else if (tabId === $scope.TAB_ID_SOLUTION) {\n               if (!$scope.stateSolution) {\n                 return true;\n               } else {\n                 return false;\n               }\n+            } else {\n+              return false;\n             }\n           };\n \n           $scope.changeActiveHintIndex = function(newIndex) {\n-            // If the current hint is being clicked on again, close it.\n-            if (newIndex === $scope.activeHintIndex) {\n-              $scope.activeHintIndex = null;\n-            } else {\n-              $scope.activeHintIndex = newIndex;\n-            }\n+            $scope.activeHintIndex = newIndex;\n+            $scope.activeContentId = $scope.stateHints[newIndex]\n+              .hintContent.getContentId();\n           };\n \n           $scope.changeActiveAnswerGroupIndex = function(newIndex) {\n-            // If the current answer group is being clicked on again, close it.\n-            if (newIndex === $scope.activeAnswerGroupIndex) {\n-              $scope.activeAnswerGroupIndex = null;\n+            $scope.activeAnswerGroupIndex = newIndex;\n+            if (newIndex === $scope.stateAnswerGroups.length) {\n+              $scope.activeContentId = $scope.stateDefaultOutcome\n+                .feedback.getContentId();\n             } else {\n-              $scope.activeAnswerGroupIndex = newIndex;\n+              $scope.activeContentId = $scope.stateAnswerGroups[newIndex]\n+                .outcome.feedback.getContentId();\n             }\n           };\n \n+          $scope.TabStatusColourStyle = function (tabId) {","path":"core/templates/dev/head/pages/exploration_editor/translation_tab/StateTranslationDirective.js","position":null,"original_position":110,"commit_id":"b4cc9c3bbb077d08c962c832395ccc26305772bf","original_commit_id":"37b10ddbe9379a91e67ea0bcb2a71c273e126a17","user":{"login":"DubeySandeep","id":16653571,"node_id":"MDQ6VXNlcjE2NjUzNTcx","avatar_url":"https://avatars0.githubusercontent.com/u/16653571?v=4","gravatar_id":"","url":"https://api.github.com/users/DubeySandeep","html_url":"https://github.com/DubeySandeep","followers_url":"https://api.github.com/users/DubeySandeep/followers","following_url":"https://api.github.com/users/DubeySandeep/following{/other_user}","gists_url":"https://api.github.com/users/DubeySandeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DubeySandeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DubeySandeep/subscriptions","organizations_url":"https://api.github.com/users/DubeySandeep/orgs","repos_url":"https://api.github.com/users/DubeySandeep/repos","events_url":"https://api.github.com/users/DubeySandeep/events{/privacy}","received_events_url":"https://api.github.com/users/DubeySandeep/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2018-07-31T16:03:18Z","updated_at":"2018-07-31T16:03:19Z","html_url":"https://github.com/oppia/oppia/pull/5378#discussion_r206588436","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/5378","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/206588436"},"html":{"href":"https://github.com/oppia/oppia/pull/5378#discussion_r206588436"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5378"}},"in_reply_to_id":205989904},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/5378","id":204435158,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDM1MTU4","html_url":"https://github.com/oppia/oppia/pull/5378","diff_url":"https://github.com/oppia/oppia/pull/5378.diff","patch_url":"https://github.com/oppia/oppia/pull/5378.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/5378","number":5378,"state":"open","locked":false,"title":"Milestone 3.1 & 3.2: Lesson Translation Dashboard.","user":{"login":"DubeySandeep","id":16653571,"node_id":"MDQ6VXNlcjE2NjUzNTcx","avatar_url":"https://avatars0.githubusercontent.com/u/16653571?v=4","gravatar_id":"","url":"https://api.github.com/users/DubeySandeep","html_url":"https://github.com/DubeySandeep","followers_url":"https://api.github.com/users/DubeySandeep/followers","following_url":"https://api.github.com/users/DubeySandeep/following{/other_user}","gists_url":"https://api.github.com/users/DubeySandeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DubeySandeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DubeySandeep/subscriptions","organizations_url":"https://api.github.com/users/DubeySandeep/orgs","repos_url":"https://api.github.com/users/DubeySandeep/repos","events_url":"https://api.github.com/users/DubeySandeep/events{/privacy}","received_events_url":"https://api.github.com/users/DubeySandeep/received_events","type":"User","site_admin":false},"body":"<!--\r\n  - Thanks for submitting code to Oppia! Please fill out the following as part of\r\n  - your pull request so we can review your code more easily.\r\n  -->\r\n\r\n## Explanation\r\nThis PR introduces status colour in translation tab.\r\nIt covers Milestone 3.1 and 3.2 of Lesson Translation Dashboard.\r\n\r\n## Checklist\r\n- [ ] The PR title starts with \"Fix #bugnum: \", followed by a short, clear summary of the changes.\r\n- [ ] The PR explanation includes the words \"Fixes #bugnum: ...\".\r\n- [ ] The linter/Karma presubmit checks have passed.\r\n  - These should run automatically, but if not, you can manually trigger them locally using `python scripts/pre_commit_linter.py` and `bash scripts/run_frontend_tests.sh`.\r\n- [ ] The PR is made from a branch that's **not** called \"develop\".\r\n- [ ] The PR follows the [style guide](https://github.com/oppia/oppia/wiki/Coding-style-guide).\r\n- [ ] The PR is assigned to an appropriate reviewer.\r\n  - If you're a new contributor, please ask on [Gitter](https://gitter.im/oppia/oppia-chat) for someone to assign a reviewer.\r\n  - If you're not sure who the appropriate reviewer is, please assign to the issue's \"owner\" -- see the \"talk-to\" label on the issue.\r\n","created_at":"2018-07-27T13:41:19Z","updated_at":"2018-07-31T16:03:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6d3af4b01e12bac99c49a2768f2db57b7f68e7f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/5378/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/5378/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/5378/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/b4cc9c3bbb077d08c962c832395ccc26305772bf","head":{"label":"DubeySandeep:TranslationStatus","ref":"TranslationStatus","sha":"b4cc9c3bbb077d08c962c832395ccc26305772bf","user":{"login":"DubeySandeep","id":16653571,"node_id":"MDQ6VXNlcjE2NjUzNTcx","avatar_url":"https://avatars0.githubusercontent.com/u/16653571?v=4","gravatar_id":"","url":"https://api.github.com/users/DubeySandeep","html_url":"https://github.com/DubeySandeep","followers_url":"https://api.github.com/users/DubeySandeep/followers","following_url":"https://api.github.com/users/DubeySandeep/following{/other_user}","gists_url":"https://api.github.com/users/DubeySandeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DubeySandeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DubeySandeep/subscriptions","organizations_url":"https://api.github.com/users/DubeySandeep/orgs","repos_url":"https://api.github.com/users/DubeySandeep/repos","events_url":"https://api.github.com/users/DubeySandeep/events{/privacy}","received_events_url":"https://api.github.com/users/DubeySandeep/received_events","type":"User","site_admin":false},"repo":{"id":78669827,"node_id":"MDEwOlJlcG9zaXRvcnk3ODY2OTgyNw==","name":"oppia","full_name":"DubeySandeep/oppia","owner":{"login":"DubeySandeep","id":16653571,"node_id":"MDQ6VXNlcjE2NjUzNTcx","avatar_url":"https://avatars0.githubusercontent.com/u/16653571?v=4","gravatar_id":"","url":"https://api.github.com/users/DubeySandeep","html_url":"https://github.com/DubeySandeep","followers_url":"https://api.github.com/users/DubeySandeep/followers","following_url":"https://api.github.com/users/DubeySandeep/following{/other_user}","gists_url":"https://api.github.com/users/DubeySandeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DubeySandeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DubeySandeep/subscriptions","organizations_url":"https://api.github.com/users/DubeySandeep/orgs","repos_url":"https://api.github.com/users/DubeySandeep/repos","events_url":"https://api.github.com/users/DubeySandeep/events{/privacy}","received_events_url":"https://api.github.com/users/DubeySandeep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DubeySandeep/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/DubeySandeep/oppia","forks_url":"https://api.github.com/repos/DubeySandeep/oppia/forks","keys_url":"https://api.github.com/repos/DubeySandeep/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DubeySandeep/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DubeySandeep/oppia/teams","hooks_url":"https://api.github.com/repos/DubeySandeep/oppia/hooks","issue_events_url":"https://api.github.com/repos/DubeySandeep/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/DubeySandeep/oppia/events","assignees_url":"https://api.github.com/repos/DubeySandeep/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/DubeySandeep/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/DubeySandeep/oppia/tags","blobs_url":"https://api.github.com/repos/DubeySandeep/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DubeySandeep/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DubeySandeep/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/DubeySandeep/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DubeySandeep/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/DubeySandeep/oppia/languages","stargazers_url":"https://api.github.com/repos/DubeySandeep/oppia/stargazers","contributors_url":"https://api.github.com/repos/DubeySandeep/oppia/contributors","subscribers_url":"https://api.github.com/repos/DubeySandeep/oppia/subscribers","subscription_url":"https://api.github.com/repos/DubeySandeep/oppia/subscription","commits_url":"https://api.github.com/repos/DubeySandeep/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/DubeySandeep/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/DubeySandeep/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/DubeySandeep/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/DubeySandeep/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/DubeySandeep/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DubeySandeep/oppia/merges","archive_url":"https://api.github.com/repos/DubeySandeep/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DubeySandeep/oppia/downloads","issues_url":"https://api.github.com/repos/DubeySandeep/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/DubeySandeep/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/DubeySandeep/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/DubeySandeep/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DubeySandeep/oppia/labels{/name}","releases_url":"https://api.github.com/repos/DubeySandeep/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/DubeySandeep/oppia/deployments","created_at":"2017-01-11T19:02:04Z","updated_at":"2018-04-20T22:08:45Z","pushed_at":"2018-07-31T15:53:50Z","git_url":"git://github.com/DubeySandeep/oppia.git","ssh_url":"git@github.com:DubeySandeep/oppia.git","clone_url":"https://github.com/DubeySandeep/oppia.git","svn_url":"https://github.com/DubeySandeep/oppia","homepage":"https://www.oppia.org","size":105535,"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":"77a474d9453a63e1966d0d4d076b2eb0146b8369","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-07-31T09:30:47Z","pushed_at":"2018-07-31T15:54:27Z","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":106059,"stargazers_count":702,"watchers_count":702,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":664,"mirror_url":null,"archived":false,"open_issues_count":346,"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":664,"open_issues":346,"watchers":702,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5378"},"html":{"href":"https://github.com/oppia/oppia/pull/5378"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/5378"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/5378/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5378/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5378/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/b4cc9c3bbb077d08c962c832395ccc26305772bf"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"DubeySandeep"}}