{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/254847376","pull_request_review_id":201296187,"id":254847376,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NDg0NzM3Ng==","diff_hunk":"@@ -831,3 +831,63 @@ def reduce(key, values):\n         # Combine all values from multiple lists into a single list\n         # for that error type.\n         yield (key, list(set().union(*final_values)))\n+\n+\n+class EmptySubtitledHtmlAuditJob(jobs.BaseMapReduceOneOffJobManager):\n+    \"\"\"One off job to audit explorations having empty subtitled html and outputs\n+    the content_id of such object.\n+    \"\"\"\n+\n+    @classmethod\n+    def entity_classes_to_map_over(cls):\n+        return [exp_models.ExplorationModel]\n+\n+    @staticmethod\n+    def map(item):\n+        if item.deleted:\n+            return\n+\n+        exploration = exp_services.get_exploration_from_model(item)\n+        exp_rights = rights_manager.get_exploration_rights(item.id)\n+\n+        state_name_to_content_id_list = {}","path":"core/domain/exp_jobs_one_off.py","position":23,"original_position":23,"commit_id":"57a8f94e8b5da93d08637c60b4d3d75444552835","original_commit_id":"57a8f94e8b5da93d08637c60b4d3d75444552835","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":"Oh, sorry, I misunderstood your last comment. Thanks for the explanation! :)\r\n\r\nNope, this won't be of any use as we need those content ids which have empty html, and we are planning to add validation for exploration to have \"non-empty html\". ","created_at":"2019-02-07T20:03:12Z","updated_at":"2019-02-07T20:03:13Z","html_url":"https://github.com/oppia/oppia/pull/6227#discussion_r254847376","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/6227","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/254847376"},"html":{"href":"https://github.com/oppia/oppia/pull/6227#discussion_r254847376"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/6227"}},"in_reply_to_id":254843054},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/6227","id":251194593,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUxMTk0NTkz","html_url":"https://github.com/oppia/oppia/pull/6227","diff_url":"https://github.com/oppia/oppia/pull/6227.diff","patch_url":"https://github.com/oppia/oppia/pull/6227.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/6227","number":6227,"state":"open","locked":false,"title":"Empty html audit job for exploration.","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\n<!--\r\n  - Explain what your PR does. If this PR fixes an existing bug, please include\r\n  - \"Fixes #bugnum:\" in the explanation so that GitHub can auto-close the issue\r\n  - when this PR is merged.\r\n  -->\r\nThis PR adds a one-off job for auditing empty HTML in the explorations.\r\nOutput of this one-off is in the format described below:\r\n\r\n```\r\n\"<exp_id>:<exp_status>\", { \"<state_name>:interaction_id\": [list(content_id of subtitledHtml having empty html.)]\r\n```\r\nexp_status = status of the exploration either private or public.\r\n- We need exp_status as we can raise validation issues/warning in the private exploration and we don't have to do anything for those explorations. (still we are taking this data if in case we found that we need to do something with private explorations too while working on #6178) \r\n\r\n- We need interaction id because currently, the new state dict is with empty html and None interaction id.\r\n\r\n## Checklist\r\n- [ ] The PR title starts with \"Fix #bugnum: \", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with \"Fix part of #bugnum: ...\".)\r\n- [ ] The PR explanation includes the words \"Fixes #bugnum: ...\" (or \"Fixes part of #bugnum\" if the PR only partially fixes an issue).\r\n- [x] 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- [x] The PR is made from a branch that's **not** called \"develop\".\r\n- [x] The PR follows the [style guide](https://github.com/oppia/oppia/wiki/Coding-style-guide).\r\n- [x] 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":"2019-02-07T17:06:17Z","updated_at":"2019-02-07T20:03:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aeade9ee388dcfcc8e83d6f28c90e3465b5450d8","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[{"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}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/6227/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/6227/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/6227/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/57a8f94e8b5da93d08637c60b4d3d75444552835","head":{"label":"DubeySandeep:empty-html-audit","ref":"empty-html-audit","sha":"57a8f94e8b5da93d08637c60b4d3d75444552835","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","private":false,"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},"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":"2019-02-02T20:56:16Z","pushed_at":"2019-02-07T17:24:16Z","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":109423,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"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":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"a927eea2f519cc6dee3c51bbbc144aa54059e43c","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","private":false,"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},"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":"2019-02-07T18:17:13Z","pushed_at":"2019-02-07T19:24:56Z","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":109819,"stargazers_count":884,"watchers_count":884,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":888,"mirror_url":null,"archived":false,"open_issues_count":433,"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":888,"open_issues":433,"watchers":884,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/6227"},"html":{"href":"https://github.com/oppia/oppia/pull/6227"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/6227"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/6227/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/6227/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/6227/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/57a8f94e8b5da93d08637c60b4d3d75444552835"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"DubeySandeep"}}