{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/53887907","id":53887907,"diff_hunk":"@@ -306,6 +306,38 @@ oppia.controller('StateResponses', [\n       trainingDataService.initializeTrainingData(\n         explorationId, currentStateName);\n     };\n+    $scope.suppressDefaultAnswerGroupWarnings = function() {\n+      var interactionId = $scope.getCurrentInteractionId();\n+      if (interactionId === 'MultipleChoiceInput') {\n+        var choices = $scope.getAnswerChoices().length;\n+        var suppressAnswer = responsesService.getAnswerGroups();\n+        var defaultAnswers;\n+        // For choice length, have indices 0 through choice length - 1\n+        for (var x = 0; x < choices; x++) {\n+          if (suppressAnswer['' + x + ''] === undefined) {\n+            // Return false if no object exists for the index\n+            /* Note that multiple choice only allows for","path":"core/templates/dev/head/editor/StateResponses.js","position":14,"original_position":14,"commit_id":"8b55f5049f04ea9f7c86518efa49fb89ee6472b0","original_commit_id":"8b55f5049f04ea9f7c86518efa49fb89ee6472b0","user":{"login":"anthkris","id":10858542,"avatar_url":"https://avatars.githubusercontent.com/u/10858542?v=3","gravatar_id":"","url":"https://api.github.com/users/anthkris","html_url":"https://github.com/anthkris","followers_url":"https://api.github.com/users/anthkris/followers","following_url":"https://api.github.com/users/anthkris/following{/other_user}","gists_url":"https://api.github.com/users/anthkris/gists{/gist_id}","starred_url":"https://api.github.com/users/anthkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthkris/subscriptions","organizations_url":"https://api.github.com/users/anthkris/orgs","repos_url":"https://api.github.com/users/anthkris/repos","events_url":"https://api.github.com/users/anthkris/events{/privacy}","received_events_url":"https://api.github.com/users/anthkris/received_events","type":"User","site_admin":false},"body":"I'm not sure I understand what you're saying here. When I create a multiple choice answer group, I can only choose the rule \"Equal To.\" After I've create the original answers, I can try to add another answer that coincides with the same choice but Oppia throws an error.","created_at":"2016-02-24T03:01:43Z","updated_at":"2016-02-24T03:01:43Z","html_url":"https://github.com/oppia/oppia/pull/1486#discussion_r53887907","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1486","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/53887907"},"html":{"href":"https://github.com/oppia/oppia/pull/1486#discussion_r53887907"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1486"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1486","id":59893588,"html_url":"https://github.com/oppia/oppia/pull/1486","diff_url":"https://github.com/oppia/oppia/pull/1486.diff","patch_url":"https://github.com/oppia/oppia/pull/1486.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1486","number":1486,"state":"open","locked":false,"title":"Updated to suppress default warnings","user":{"login":"anthkris","id":10858542,"avatar_url":"https://avatars.githubusercontent.com/u/10858542?v=3","gravatar_id":"","url":"https://api.github.com/users/anthkris","html_url":"https://github.com/anthkris","followers_url":"https://api.github.com/users/anthkris/followers","following_url":"https://api.github.com/users/anthkris/following{/other_user}","gists_url":"https://api.github.com/users/anthkris/gists{/gist_id}","starred_url":"https://api.github.com/users/anthkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthkris/subscriptions","organizations_url":"https://api.github.com/users/anthkris/orgs","repos_url":"https://api.github.com/users/anthkris/repos","events_url":"https://api.github.com/users/anthkris/events{/privacy}","received_events_url":"https://api.github.com/users/anthkris/received_events","type":"User","site_admin":false},"body":"Updated AnswerGroup, OutcomeEditor, state_editor_responses, and StateResponses to suppress default warnings if an interaction is multiple choice and the number of answers is equal to the number of choices.","created_at":"2016-02-19T01:49:03Z","updated_at":"2016-02-24T03:01:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"243c52a14403af661a266524cbc9678ee0d28095","assignee":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","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},"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1486/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1486/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1486/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/8b55f5049f04ea9f7c86518efa49fb89ee6472b0","head":{"label":"anthkris:suppress-default-warnings","ref":"suppress-default-warnings","sha":"8b55f5049f04ea9f7c86518efa49fb89ee6472b0","user":{"login":"anthkris","id":10858542,"avatar_url":"https://avatars.githubusercontent.com/u/10858542?v=3","gravatar_id":"","url":"https://api.github.com/users/anthkris","html_url":"https://github.com/anthkris","followers_url":"https://api.github.com/users/anthkris/followers","following_url":"https://api.github.com/users/anthkris/following{/other_user}","gists_url":"https://api.github.com/users/anthkris/gists{/gist_id}","starred_url":"https://api.github.com/users/anthkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthkris/subscriptions","organizations_url":"https://api.github.com/users/anthkris/orgs","repos_url":"https://api.github.com/users/anthkris/repos","events_url":"https://api.github.com/users/anthkris/events{/privacy}","received_events_url":"https://api.github.com/users/anthkris/received_events","type":"User","site_admin":false},"repo":{"id":50756746,"name":"oppia","full_name":"anthkris/oppia","owner":{"login":"anthkris","id":10858542,"avatar_url":"https://avatars.githubusercontent.com/u/10858542?v=3","gravatar_id":"","url":"https://api.github.com/users/anthkris","html_url":"https://github.com/anthkris","followers_url":"https://api.github.com/users/anthkris/followers","following_url":"https://api.github.com/users/anthkris/following{/other_user}","gists_url":"https://api.github.com/users/anthkris/gists{/gist_id}","starred_url":"https://api.github.com/users/anthkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthkris/subscriptions","organizations_url":"https://api.github.com/users/anthkris/orgs","repos_url":"https://api.github.com/users/anthkris/repos","events_url":"https://api.github.com/users/anthkris/events{/privacy}","received_events_url":"https://api.github.com/users/anthkris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anthkris/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/anthkris/oppia","forks_url":"https://api.github.com/repos/anthkris/oppia/forks","keys_url":"https://api.github.com/repos/anthkris/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anthkris/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anthkris/oppia/teams","hooks_url":"https://api.github.com/repos/anthkris/oppia/hooks","issue_events_url":"https://api.github.com/repos/anthkris/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/anthkris/oppia/events","assignees_url":"https://api.github.com/repos/anthkris/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/anthkris/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/anthkris/oppia/tags","blobs_url":"https://api.github.com/repos/anthkris/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anthkris/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anthkris/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/anthkris/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anthkris/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/anthkris/oppia/languages","stargazers_url":"https://api.github.com/repos/anthkris/oppia/stargazers","contributors_url":"https://api.github.com/repos/anthkris/oppia/contributors","subscribers_url":"https://api.github.com/repos/anthkris/oppia/subscribers","subscription_url":"https://api.github.com/repos/anthkris/oppia/subscription","commits_url":"https://api.github.com/repos/anthkris/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/anthkris/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/anthkris/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/anthkris/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/anthkris/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/anthkris/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anthkris/oppia/merges","archive_url":"https://api.github.com/repos/anthkris/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anthkris/oppia/downloads","issues_url":"https://api.github.com/repos/anthkris/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/anthkris/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/anthkris/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/anthkris/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anthkris/oppia/labels{/name}","releases_url":"https://api.github.com/repos/anthkris/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/anthkris/oppia/deployments","created_at":"2016-01-31T03:19:32Z","updated_at":"2016-01-31T03:19:35Z","pushed_at":"2016-02-24T01:59:54Z","git_url":"git://github.com/anthkris/oppia.git","ssh_url":"git@github.com:anthkris/oppia.git","clone_url":"https://github.com/anthkris/oppia.git","svn_url":"https://github.com/anthkris/oppia","homepage":"https://www.oppia.org","size":41505,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"d215d057b794e2747a2018d567f18d05c1b41867","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.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://avatars.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 intelligent tutors.","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":"2016-02-19T06:51:37Z","pushed_at":"2016-02-24T01:59:55Z","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":46522,"stargazers_count":80,"watchers_count":80,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":271,"forks":120,"open_issues":271,"watchers":80,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1486"},"html":{"href":"https://github.com/oppia/oppia/pull/1486"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1486"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1486/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1486/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1486/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/8b55f5049f04ea9f7c86518efa49fb89ee6472b0"}}}}