{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/70496158","id":70496158,"diff_hunk":"@@ -199,14 +201,15 @@ oppia.factory('CollectionLinearizerService', [\n        * collection.\n        */\n       removeCollectionNode: function(collection, explorationId) {\n+        if (!collection.containsCollectionNode(explorationId)) {\n+          return false;\n+        }\n+\n         // Relinking is only needed if more than just the specified node is in\n         // the collection.\n         if (collection.getCollectionNodeCount() > 1) {\n           var linearNodeList = _getCollectionNodesInPlayableOrder(collection);\n           var nodeIndex = _findNodeIndex(linearNodeList, explorationId);","path":"core/templates/dev/head/collection_editor/editor_tab/CollectionLinearizerService.js","position":30,"original_position":30,"commit_id":"aea25cab90ee7cfd4d6f5b149ee420db234f49be","original_commit_id":"aea25cab90ee7cfd4d6f5b149ee420db234f49be","user":{"login":"amgowano","id":2756900,"avatar_url":"https://avatars.githubusercontent.com/u/2756900?v=3","gravatar_id":"","url":"https://api.github.com/users/amgowano","html_url":"https://github.com/amgowano","followers_url":"https://api.github.com/users/amgowano/followers","following_url":"https://api.github.com/users/amgowano/following{/other_user}","gists_url":"https://api.github.com/users/amgowano/gists{/gist_id}","starred_url":"https://api.github.com/users/amgowano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amgowano/subscriptions","organizations_url":"https://api.github.com/users/amgowano/orgs","repos_url":"https://api.github.com/users/amgowano/repos","events_url":"https://api.github.com/users/amgowano/events{/privacy}","received_events_url":"https://api.github.com/users/amgowano/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-07-12T18:36:32Z","updated_at":"2016-07-12T18:36:32Z","html_url":"https://github.com/oppia/oppia/pull/2153#discussion_r70496158","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/2153","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/70496158"},"html":{"href":"https://github.com/oppia/oppia/pull/2153#discussion_r70496158"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2153"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2153","id":74755764,"html_url":"https://github.com/oppia/oppia/pull/2153","diff_url":"https://github.com/oppia/oppia/pull/2153.diff","patch_url":"https://github.com/oppia/oppia/pull/2153.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2153","number":2153,"state":"open","locked":false,"title":"Test collection linearizer service","user":{"login":"amgowano","id":2756900,"avatar_url":"https://avatars.githubusercontent.com/u/2756900?v=3","gravatar_id":"","url":"https://api.github.com/users/amgowano","html_url":"https://github.com/amgowano","followers_url":"https://api.github.com/users/amgowano/followers","following_url":"https://api.github.com/users/amgowano/following{/other_user}","gists_url":"https://api.github.com/users/amgowano/gists{/gist_id}","starred_url":"https://api.github.com/users/amgowano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amgowano/subscriptions","organizations_url":"https://api.github.com/users/amgowano/orgs","repos_url":"https://api.github.com/users/amgowano/repos","events_url":"https://api.github.com/users/amgowano/events{/privacy}","received_events_url":"https://api.github.com/users/amgowano/received_events","type":"User","site_admin":false},"body":"Fix #1998: implement tests for collection linearizer service.\r\n","created_at":"2016-06-22T09:59:33Z","updated_at":"2016-07-12T18:36:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"407b3e6e3c60ecfa7c8bad333eeef0dd721ec9e2","assignee":{"login":"kevinlee12","id":5758256,"avatar_url":"https://avatars.githubusercontent.com/u/5758256?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlee12","html_url":"https://github.com/kevinlee12","followers_url":"https://api.github.com/users/kevinlee12/followers","following_url":"https://api.github.com/users/kevinlee12/following{/other_user}","gists_url":"https://api.github.com/users/kevinlee12/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlee12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlee12/subscriptions","organizations_url":"https://api.github.com/users/kevinlee12/orgs","repos_url":"https://api.github.com/users/kevinlee12/repos","events_url":"https://api.github.com/users/kevinlee12/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlee12/received_events","type":"User","site_admin":false},"assignees":[{"login":"kevinlee12","id":5758256,"avatar_url":"https://avatars.githubusercontent.com/u/5758256?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlee12","html_url":"https://github.com/kevinlee12","followers_url":"https://api.github.com/users/kevinlee12/followers","following_url":"https://api.github.com/users/kevinlee12/following{/other_user}","gists_url":"https://api.github.com/users/kevinlee12/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlee12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlee12/subscriptions","organizations_url":"https://api.github.com/users/kevinlee12/orgs","repos_url":"https://api.github.com/users/kevinlee12/repos","events_url":"https://api.github.com/users/kevinlee12/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlee12/received_events","type":"User","site_admin":false},{"login":"BenHenning","id":12983742,"avatar_url":"https://avatars.githubusercontent.com/u/12983742?v=3","gravatar_id":"","url":"https://api.github.com/users/BenHenning","html_url":"https://github.com/BenHenning","followers_url":"https://api.github.com/users/BenHenning/followers","following_url":"https://api.github.com/users/BenHenning/following{/other_user}","gists_url":"https://api.github.com/users/BenHenning/gists{/gist_id}","starred_url":"https://api.github.com/users/BenHenning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenHenning/subscriptions","organizations_url":"https://api.github.com/users/BenHenning/orgs","repos_url":"https://api.github.com/users/BenHenning/repos","events_url":"https://api.github.com/users/BenHenning/events{/privacy}","received_events_url":"https://api.github.com/users/BenHenning/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/2153/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/2153/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2153/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/aea25cab90ee7cfd4d6f5b149ee420db234f49be","head":{"label":"amgowano:test-collection-linearizer-service","ref":"test-collection-linearizer-service","sha":"aea25cab90ee7cfd4d6f5b149ee420db234f49be","user":{"login":"amgowano","id":2756900,"avatar_url":"https://avatars.githubusercontent.com/u/2756900?v=3","gravatar_id":"","url":"https://api.github.com/users/amgowano","html_url":"https://github.com/amgowano","followers_url":"https://api.github.com/users/amgowano/followers","following_url":"https://api.github.com/users/amgowano/following{/other_user}","gists_url":"https://api.github.com/users/amgowano/gists{/gist_id}","starred_url":"https://api.github.com/users/amgowano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amgowano/subscriptions","organizations_url":"https://api.github.com/users/amgowano/orgs","repos_url":"https://api.github.com/users/amgowano/repos","events_url":"https://api.github.com/users/amgowano/events{/privacy}","received_events_url":"https://api.github.com/users/amgowano/received_events","type":"User","site_admin":false},"repo":{"id":42487718,"name":"oppia","full_name":"amgowano/oppia","owner":{"login":"amgowano","id":2756900,"avatar_url":"https://avatars.githubusercontent.com/u/2756900?v=3","gravatar_id":"","url":"https://api.github.com/users/amgowano","html_url":"https://github.com/amgowano","followers_url":"https://api.github.com/users/amgowano/followers","following_url":"https://api.github.com/users/amgowano/following{/other_user}","gists_url":"https://api.github.com/users/amgowano/gists{/gist_id}","starred_url":"https://api.github.com/users/amgowano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amgowano/subscriptions","organizations_url":"https://api.github.com/users/amgowano/orgs","repos_url":"https://api.github.com/users/amgowano/repos","events_url":"https://api.github.com/users/amgowano/events{/privacy}","received_events_url":"https://api.github.com/users/amgowano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amgowano/oppia","description":"Tool for creating interactive tutors.","fork":true,"url":"https://api.github.com/repos/amgowano/oppia","forks_url":"https://api.github.com/repos/amgowano/oppia/forks","keys_url":"https://api.github.com/repos/amgowano/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amgowano/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amgowano/oppia/teams","hooks_url":"https://api.github.com/repos/amgowano/oppia/hooks","issue_events_url":"https://api.github.com/repos/amgowano/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/amgowano/oppia/events","assignees_url":"https://api.github.com/repos/amgowano/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/amgowano/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/amgowano/oppia/tags","blobs_url":"https://api.github.com/repos/amgowano/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amgowano/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amgowano/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/amgowano/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amgowano/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/amgowano/oppia/languages","stargazers_url":"https://api.github.com/repos/amgowano/oppia/stargazers","contributors_url":"https://api.github.com/repos/amgowano/oppia/contributors","subscribers_url":"https://api.github.com/repos/amgowano/oppia/subscribers","subscription_url":"https://api.github.com/repos/amgowano/oppia/subscription","commits_url":"https://api.github.com/repos/amgowano/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/amgowano/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/amgowano/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/amgowano/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/amgowano/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/amgowano/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amgowano/oppia/merges","archive_url":"https://api.github.com/repos/amgowano/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amgowano/oppia/downloads","issues_url":"https://api.github.com/repos/amgowano/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/amgowano/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/amgowano/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/amgowano/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amgowano/oppia/labels{/name}","releases_url":"https://api.github.com/repos/amgowano/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/amgowano/oppia/deployments","created_at":"2015-09-15T01:39:14Z","updated_at":"2016-02-16T03:17:18Z","pushed_at":"2016-07-12T00:35:07Z","git_url":"git://github.com/amgowano/oppia.git","ssh_url":"git@github.com:amgowano/oppia.git","clone_url":"https://github.com/amgowano/oppia.git","svn_url":"https://github.com/amgowano/oppia","homepage":"https://www.oppia.org","size":45682,"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":"125bc0eb3ce6029a5d4c187654e993d1414d0fe5","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-11T13:54:19Z","pushed_at":"2016-07-12T16:29:38Z","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":84392,"stargazers_count":142,"watchers_count":142,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":235,"mirror_url":null,"open_issues_count":352,"forks":235,"open_issues":352,"watchers":142,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2153"},"html":{"href":"https://github.com/oppia/oppia/pull/2153"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/2153"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/2153/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2153/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2153/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/aea25cab90ee7cfd4d6f5b149ee420db234f49be"}}}}
{"actor":{"display_login":"amgowano"}}