{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/65807102","id":65807102,"diff_hunk":"@@ -2036,3 +2083,58 @@ oppia.factory('explorationWarningsService', [\n     };\n   }\n ]);\n+\n+// Service for displaying different types of modals depending on the type of\n+// response received as a result of the autosaving request.\n+oppia.factory('autosaveInfoModalsService', [\n+  '$modal', '$timeout',\n+  function(\n+    $modal, $timeout) {\n+    return {\n+      showNonStrictFailModal: function() {\n+        $modal.open({\n+          templateUrl: 'modals/saveValidationFail',\n+          backdrop: true,\n+          controller: [\n+            '$scope', '$modalInstance',\n+            function(\n+              $scope, $modalInstance\n+            ) {\n+              $scope.close = function() {\n+                $modalInstance.dismiss('cancel');\n+              };\n+            }\n+          ]\n+        }).result.then(function() {\n+          // User refreshes the page - Flow for exploration loaded is followed.\n+        });\n+      },\n+      showVersionMismatchModal: function() {\n+        $modal.open({\n+          templateUrl: 'modals/saveVersionMismatch',\n+          backdrop: true,\n+          controller: [\n+            '$scope', '$modalInstance',\n+            function(\n+              $scope, $modalInstance\n+            ) {\n+              $scope.cancel = function() {","path":"core/templates/dev/head/editor/EditorServices.js","position":null,"original_position":144,"commit_id":"811fc29923edccddf3a875fd37b704557f1ed29e","original_commit_id":"671c9e07ac210d4675cb199a92fd3b5b676c9ad3","user":{"login":"jacobdavis11","id":13726796,"avatar_url":"https://avatars.githubusercontent.com/u/13726796?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobdavis11","html_url":"https://github.com/jacobdavis11","followers_url":"https://api.github.com/users/jacobdavis11/followers","following_url":"https://api.github.com/users/jacobdavis11/following{/other_user}","gists_url":"https://api.github.com/users/jacobdavis11/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobdavis11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobdavis11/subscriptions","organizations_url":"https://api.github.com/users/jacobdavis11/orgs","repos_url":"https://api.github.com/users/jacobdavis11/repos","events_url":"https://api.github.com/users/jacobdavis11/events{/privacy}","received_events_url":"https://api.github.com/users/jacobdavis11/received_events","type":"User","site_admin":false},"body":"We don't want this function as we need to force the user to discard changes.","created_at":"2016-06-04T20:15:06Z","updated_at":"2016-06-04T20:15:06Z","html_url":"https://github.com/oppia/oppia/pull/1802#discussion_r65807102","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1802","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/65807102"},"html":{"href":"https://github.com/oppia/oppia/pull/1802#discussion_r65807102"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1802"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1802","id":69279242,"html_url":"https://github.com/oppia/oppia/pull/1802","diff_url":"https://github.com/oppia/oppia/pull/1802.diff","patch_url":"https://github.com/oppia/oppia/pull/1802.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1802","number":1802,"state":"open","locked":false,"title":"WIP: Frontend for autosaving drafts","user":{"login":"526avijitgupta","id":7583815,"avatar_url":"https://avatars.githubusercontent.com/u/7583815?v=3","gravatar_id":"","url":"https://api.github.com/users/526avijitgupta","html_url":"https://github.com/526avijitgupta","followers_url":"https://api.github.com/users/526avijitgupta/followers","following_url":"https://api.github.com/users/526avijitgupta/following{/other_user}","gists_url":"https://api.github.com/users/526avijitgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/526avijitgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/526avijitgupta/subscriptions","organizations_url":"https://api.github.com/users/526avijitgupta/orgs","repos_url":"https://api.github.com/users/526avijitgupta/repos","events_url":"https://api.github.com/users/526avijitgupta/events{/privacy}","received_events_url":"https://api.github.com/users/526avijitgupta/received_events","type":"User","site_admin":false},"body":"The frontend implementation of #1287 - Labeling as WIP for now.","created_at":"2016-05-08T20:48:59Z","updated_at":"2016-06-04T20:15:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"900f335f352d33fcb3ede66dbd44fdded9b038af","assignee":{"login":"jacobdavis11","id":13726796,"avatar_url":"https://avatars.githubusercontent.com/u/13726796?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobdavis11","html_url":"https://github.com/jacobdavis11","followers_url":"https://api.github.com/users/jacobdavis11/followers","following_url":"https://api.github.com/users/jacobdavis11/following{/other_user}","gists_url":"https://api.github.com/users/jacobdavis11/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobdavis11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobdavis11/subscriptions","organizations_url":"https://api.github.com/users/jacobdavis11/orgs","repos_url":"https://api.github.com/users/jacobdavis11/repos","events_url":"https://api.github.com/users/jacobdavis11/events{/privacy}","received_events_url":"https://api.github.com/users/jacobdavis11/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1802/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1802/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1802/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/811fc29923edccddf3a875fd37b704557f1ed29e","head":{"label":"526avijitgupta:draft-autosave-frontend","ref":"draft-autosave-frontend","sha":"811fc29923edccddf3a875fd37b704557f1ed29e","user":{"login":"526avijitgupta","id":7583815,"avatar_url":"https://avatars.githubusercontent.com/u/7583815?v=3","gravatar_id":"","url":"https://api.github.com/users/526avijitgupta","html_url":"https://github.com/526avijitgupta","followers_url":"https://api.github.com/users/526avijitgupta/followers","following_url":"https://api.github.com/users/526avijitgupta/following{/other_user}","gists_url":"https://api.github.com/users/526avijitgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/526avijitgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/526avijitgupta/subscriptions","organizations_url":"https://api.github.com/users/526avijitgupta/orgs","repos_url":"https://api.github.com/users/526avijitgupta/repos","events_url":"https://api.github.com/users/526avijitgupta/events{/privacy}","received_events_url":"https://api.github.com/users/526avijitgupta/received_events","type":"User","site_admin":false},"repo":{"id":52835533,"name":"oppia","full_name":"526avijitgupta/oppia","owner":{"login":"526avijitgupta","id":7583815,"avatar_url":"https://avatars.githubusercontent.com/u/7583815?v=3","gravatar_id":"","url":"https://api.github.com/users/526avijitgupta","html_url":"https://github.com/526avijitgupta","followers_url":"https://api.github.com/users/526avijitgupta/followers","following_url":"https://api.github.com/users/526avijitgupta/following{/other_user}","gists_url":"https://api.github.com/users/526avijitgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/526avijitgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/526avijitgupta/subscriptions","organizations_url":"https://api.github.com/users/526avijitgupta/orgs","repos_url":"https://api.github.com/users/526avijitgupta/repos","events_url":"https://api.github.com/users/526avijitgupta/events{/privacy}","received_events_url":"https://api.github.com/users/526avijitgupta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/526avijitgupta/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/526avijitgupta/oppia","forks_url":"https://api.github.com/repos/526avijitgupta/oppia/forks","keys_url":"https://api.github.com/repos/526avijitgupta/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/526avijitgupta/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/526avijitgupta/oppia/teams","hooks_url":"https://api.github.com/repos/526avijitgupta/oppia/hooks","issue_events_url":"https://api.github.com/repos/526avijitgupta/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/526avijitgupta/oppia/events","assignees_url":"https://api.github.com/repos/526avijitgupta/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/526avijitgupta/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/526avijitgupta/oppia/tags","blobs_url":"https://api.github.com/repos/526avijitgupta/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/526avijitgupta/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/526avijitgupta/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/526avijitgupta/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/526avijitgupta/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/526avijitgupta/oppia/languages","stargazers_url":"https://api.github.com/repos/526avijitgupta/oppia/stargazers","contributors_url":"https://api.github.com/repos/526avijitgupta/oppia/contributors","subscribers_url":"https://api.github.com/repos/526avijitgupta/oppia/subscribers","subscription_url":"https://api.github.com/repos/526avijitgupta/oppia/subscription","commits_url":"https://api.github.com/repos/526avijitgupta/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/526avijitgupta/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/526avijitgupta/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/526avijitgupta/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/526avijitgupta/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/526avijitgupta/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/526avijitgupta/oppia/merges","archive_url":"https://api.github.com/repos/526avijitgupta/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/526avijitgupta/oppia/downloads","issues_url":"https://api.github.com/repos/526avijitgupta/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/526avijitgupta/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/526avijitgupta/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/526avijitgupta/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/526avijitgupta/oppia/labels{/name}","releases_url":"https://api.github.com/repos/526avijitgupta/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/526avijitgupta/oppia/deployments","created_at":"2016-03-01T00:34:48Z","updated_at":"2016-03-01T00:34:51Z","pushed_at":"2016-06-04T10:20:45Z","git_url":"git://github.com/526avijitgupta/oppia.git","ssh_url":"git@github.com:526avijitgupta/oppia.git","clone_url":"https://github.com/526avijitgupta/oppia.git","svn_url":"https://github.com/526avijitgupta/oppia","homepage":"https://www.oppia.org","size":44773,"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":"7c553de7acded013b1de582a35595cc306feca3d","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-06-03T23:13:20Z","pushed_at":"2016-06-04T20:11:05Z","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":80571,"stargazers_count":137,"watchers_count":137,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":229,"mirror_url":null,"open_issues_count":284,"forks":229,"open_issues":284,"watchers":137,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1802"},"html":{"href":"https://github.com/oppia/oppia/pull/1802"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1802"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1802/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1802/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1802/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/811fc29923edccddf3a875fd37b704557f1ed29e"}}}}
{"actor":{"display_login":"jacobdavis11"}}