{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/71966395","id":71966395,"diff_hunk":"@@ -284,20 +286,26 @@ oppia.controller('StateResponses', [\n       trainingDataService.initializeTrainingData(\n         explorationId, currentStateName);\n     };\n+\n     $scope.suppressDefaultAnswerGroupWarnings = function() {\n       var interactionId = $scope.getCurrentInteractionId();\n+      var answerGroups = responsesService.getAnswerGroups();\n+      var handledAnswersArray = [];","path":"core/templates/dev/head/exploration_editor/main_tab/StateResponses.js","position":25,"original_position":25,"commit_id":"069c9c524dab88e27f6a136984b4fec5dfffdbfe","original_commit_id":"f5d0493bbc8fd322385e3fe47d43c85e099454cc","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":"Refactored and added some comments. Done.","created_at":"2016-07-23T03:54:38Z","updated_at":"2016-07-23T03:54:38Z","html_url":"https://github.com/oppia/oppia/pull/2199#discussion_r71966395","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/2199","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/71966395"},"html":{"href":"https://github.com/oppia/oppia/pull/2199#discussion_r71966395"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2199"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2199","id":75757722,"html_url":"https://github.com/oppia/oppia/pull/2199","diff_url":"https://github.com/oppia/oppia/pull/2199.diff","patch_url":"https://github.com/oppia/oppia/pull/2199.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2199","number":2199,"state":"open","locked":false,"title":"Fix #1863: suppress warnings if all answers handled in item selection input","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":"Tested vigorously in multiple situations, including: equal to, omits one of, contains one of rule types. Replicated steps from multiple choice validator to ensure that warnings are suppressed properly BUT had to compare strings instead of indices, as the item selection data is formatted differently from the multiple choice data. \r\n\r\nNote that, if two answer groups are the same, (e.g. two answer groups that check if the answer is equal to x), then the first answer group to apply to the situation will be used (this is the way it was; not due to my additions)","created_at":"2016-06-30T04:12:18Z","updated_at":"2016-07-23T03:54:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a63555c7e6fdc17f2be02cb7a403291b178e2dfd","assignee":{"login":"prasanna08","id":8678373,"avatar_url":"https://avatars.githubusercontent.com/u/8678373?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna08","html_url":"https://github.com/prasanna08","followers_url":"https://api.github.com/users/prasanna08/followers","following_url":"https://api.github.com/users/prasanna08/following{/other_user}","gists_url":"https://api.github.com/users/prasanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna08/subscriptions","organizations_url":"https://api.github.com/users/prasanna08/orgs","repos_url":"https://api.github.com/users/prasanna08/repos","events_url":"https://api.github.com/users/prasanna08/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna08/received_events","type":"User","site_admin":false},"assignees":[{"login":"prasanna08","id":8678373,"avatar_url":"https://avatars.githubusercontent.com/u/8678373?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna08","html_url":"https://github.com/prasanna08","followers_url":"https://api.github.com/users/prasanna08/followers","following_url":"https://api.github.com/users/prasanna08/following{/other_user}","gists_url":"https://api.github.com/users/prasanna08/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna08/subscriptions","organizations_url":"https://api.github.com/users/prasanna08/orgs","repos_url":"https://api.github.com/users/prasanna08/repos","events_url":"https://api.github.com/users/prasanna08/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna08/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/2199/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/2199/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2199/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/069c9c524dab88e27f6a136984b4fec5dfffdbfe","head":{"label":"anthkris:item-selection-feedback","ref":"item-selection-feedback","sha":"069c9c524dab88e27f6a136984b4fec5dfffdbfe","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-07-21T02:36:50Z","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":45711,"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":"6a194e9817f3ca58d19fa030b6cdd0bec23c914d","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 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":"2016-07-19T05:32:58Z","pushed_at":"2016-07-23T01:18:19Z","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":83980,"stargazers_count":144,"watchers_count":144,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":237,"mirror_url":null,"open_issues_count":365,"forks":237,"open_issues":365,"watchers":144,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2199"},"html":{"href":"https://github.com/oppia/oppia/pull/2199"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/2199"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/2199/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2199/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2199/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/069c9c524dab88e27f6a136984b4fec5dfffdbfe"}}}}
{"actor":{"display_login":"anthkris"}}