{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-ora2/pulls/comments/45081783","id":45081783,"diff_hunk":"@@ -26,57 +22,45 @@ if (typeof OpenAssessment.Server === \"undefined\" || !OpenAssessment.Server) {\n     OpenAssessment.Server.prototype = {\n \n         /**\n-        Construct the URL for the handler, specific to one instance of the XBlock on the page.\n-\n-        Args:\n-            handler (string): The name of the XBlock handler.\n-\n-        Returns:\n-            URL (string)\n-        **/\n+         * Returns the URL for the handler, specific to one instance of the XBlock on the page.\n+         *\n+         * @param {string} handler The name of the XBlock handler.\n+         * @returns {*} The URL for the handler.\n+         */\n         url: function(handler) {\n             return this.runtime.handlerUrl(this.element, handler);\n         },\n \n         /**\n-        Render the XBlock.\n-\n-        Args:\n-            component (string): The component to render.\n-\n-        Returns:\n-            A JQuery promise, which resolves with the HTML of the rendered XBlock\n-            and fails with an error message.\n-\n-        Example:\n-            server.render('submission').done(\n-                function(html) { console.log(html); }\n-            ).fail(\n-                function(err) { console.log(err); }\n-            )\n-        **/\n+         * Render the XBlock.\n+         *\n+         * @param {string} component The component to render.\n+         * @returns {*} A JQuery promise, which resolves with the HTML of the rendered XBlock\n+         *     and fails with an error message.\n+         */\n         render: function(component) {\n             var view = this;\n             var url = this.url('render_' + component);\n             return $.Deferred(function(defer) {\n                 $.ajax({\n-                    url: url,\n-                    type: \"POST\",\n-                    dataType: \"html\"\n-                }).done(function(data) {\n-                    defer.resolveWith(view, [data]);\n-                }).fail(function() {\n-                    defer.rejectWith(view, [gettext('This section could not be loaded.')]);\n-                });\n+                        url: url,","path":"openassessment/xblock/static/js/src/oa_server.js","position":86,"original_position":86,"commit_id":"566d2c9538f2958900efdfae1fbbbdef3334ff09","original_commit_id":"566d2c9538f2958900efdfae1fbbbdef3334ff09","user":{"login":"cahrens","id":484484,"avatar_url":"https://avatars.githubusercontent.com/u/484484?v=3","gravatar_id":"","url":"https://api.github.com/users/cahrens","html_url":"https://github.com/cahrens","followers_url":"https://api.github.com/users/cahrens/followers","following_url":"https://api.github.com/users/cahrens/following{/other_user}","gists_url":"https://api.github.com/users/cahrens/gists{/gist_id}","starred_url":"https://api.github.com/users/cahrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cahrens/subscriptions","organizations_url":"https://api.github.com/users/cahrens/orgs","repos_url":"https://api.github.com/users/cahrens/repos","events_url":"https://api.github.com/users/cahrens/events{/privacy}","received_events_url":"https://api.github.com/users/cahrens/received_events","type":"User","site_admin":false},"body":"Nit: I'm not sure why you changed the spacing in these blocks. The way it was before looks right to me.","created_at":"2015-11-17T16:27:41Z","updated_at":"2015-11-17T16:27:41Z","html_url":"https://github.com/edx/edx-ora2/pull/760#discussion_r45081783","pull_request_url":"https://api.github.com/repos/edx/edx-ora2/pulls/760","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/comments/45081783"},"html":{"href":"https://github.com/edx/edx-ora2/pull/760#discussion_r45081783"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/760"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-ora2/pulls/760","id":49969592,"html_url":"https://github.com/edx/edx-ora2/pull/760","diff_url":"https://github.com/edx/edx-ora2/pull/760.diff","patch_url":"https://github.com/edx/edx-ora2/pull/760.patch","issue_url":"https://api.github.com/repos/edx/edx-ora2/issues/760","number":760,"state":"open","locked":false,"title":"Add re-grading support to the Staff Tools modal","user":{"login":"andy-armstrong","id":5985072,"avatar_url":"https://avatars.githubusercontent.com/u/5985072?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-armstrong","html_url":"https://github.com/andy-armstrong","followers_url":"https://api.github.com/users/andy-armstrong/followers","following_url":"https://api.github.com/users/andy-armstrong/following{/other_user}","gists_url":"https://api.github.com/users/andy-armstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-armstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-armstrong/subscriptions","organizations_url":"https://api.github.com/users/andy-armstrong/orgs","repos_url":"https://api.github.com/users/andy-armstrong/repos","events_url":"https://api.github.com/users/andy-armstrong/events{/privacy}","received_events_url":"https://api.github.com/users/andy-armstrong/received_events","type":"User","site_admin":false},"body":"## [TNL-3467](https://openedx.atlassian.net/browse/TNL-3467)\r\n\r\nThis change introduces the ability to re-grade an ORA submission from the Staff Tools modal.\r\n\r\nNote: this PR is ready for product review, but not yet for full engineering review.\r\n\r\n### Sandbox\r\n- [x] https://andy-armstrong.sandbox.edx.org/courses/course-v1:AndyA+AAORA+1/courseware/a4dfec19cf9b4a6fb5b18be6ccd9cecc/\r\n\r\n### Testing\r\n- [ ] Data is properly encoded in HTML templates to avoid XSS\r\n- [ ] Unit, integration, acceptance tests as appropriate\r\n- [x] Analytics (N/A)\r\n\r\n### Reviewers\r\nIf you've been tagged for review, please check your corresponding box once you've given the :+1:.\r\n- [ ] Code review: @cahrens \r\n- [ ] Code review: @dianakhuang \r\n- [ ] UI strings/error msgs review: @catong \r\n- [ ] Product review: @explorerleslie \r\n\r\nFYI: @cahrens @dianakhuang @efischer19 @robrap @scottrish @symbolist @muhammad-ammar @muzaffaryousaf \r\n\r\n### Post-review\r\n- [ ] Squash commits","created_at":"2015-11-06T15:52:53Z","updated_at":"2015-11-17T16:27:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a0ee706f6e6ec81da8b51b8559ab5cd44fe3042","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-ora2/pulls/760/commits","review_comments_url":"https://api.github.com/repos/edx/edx-ora2/pulls/760/comments","review_comment_url":"https://api.github.com/repos/edx/edx-ora2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-ora2/issues/760/comments","statuses_url":"https://api.github.com/repos/edx/edx-ora2/statuses/566d2c9538f2958900efdfae1fbbbdef3334ff09","head":{"label":"edx:christina/collapse-sections","ref":"christina/collapse-sections","sha":"566d2c9538f2958900efdfae1fbbbdef3334ff09","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":15404425,"name":"edx-ora2","full_name":"edx/edx-ora2","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-ora2","description":"Open Response Assessment Suite","fork":false,"url":"https://api.github.com/repos/edx/edx-ora2","forks_url":"https://api.github.com/repos/edx/edx-ora2/forks","keys_url":"https://api.github.com/repos/edx/edx-ora2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-ora2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-ora2/teams","hooks_url":"https://api.github.com/repos/edx/edx-ora2/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-ora2/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-ora2/events","assignees_url":"https://api.github.com/repos/edx/edx-ora2/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-ora2/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-ora2/tags","blobs_url":"https://api.github.com/repos/edx/edx-ora2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-ora2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-ora2/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-ora2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-ora2/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-ora2/languages","stargazers_url":"https://api.github.com/repos/edx/edx-ora2/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-ora2/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-ora2/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-ora2/subscription","commits_url":"https://api.github.com/repos/edx/edx-ora2/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-ora2/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-ora2/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-ora2/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-ora2/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-ora2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-ora2/merges","archive_url":"https://api.github.com/repos/edx/edx-ora2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-ora2/downloads","issues_url":"https://api.github.com/repos/edx/edx-ora2/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-ora2/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-ora2/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-ora2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-ora2/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-ora2/releases{/id}","created_at":"2013-12-23T20:54:54Z","updated_at":"2015-10-17T16:38:47Z","pushed_at":"2015-11-17T16:03:41Z","git_url":"git://github.com/edx/edx-ora2.git","ssh_url":"git@github.com:edx/edx-ora2.git","clone_url":"https://github.com/edx/edx-ora2.git","svn_url":"https://github.com/edx/edx-ora2","homepage":"","size":103335,"stargazers_count":28,"watchers_count":28,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":11,"forks":68,"open_issues":11,"watchers":28,"default_branch":"master"}},"base":{"label":"edx:ora-staff-grading","ref":"ora-staff-grading","sha":"1faa89dbe0efaf231c6cd31478d8ed6f649a1797","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":15404425,"name":"edx-ora2","full_name":"edx/edx-ora2","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-ora2","description":"Open Response Assessment Suite","fork":false,"url":"https://api.github.com/repos/edx/edx-ora2","forks_url":"https://api.github.com/repos/edx/edx-ora2/forks","keys_url":"https://api.github.com/repos/edx/edx-ora2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-ora2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-ora2/teams","hooks_url":"https://api.github.com/repos/edx/edx-ora2/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-ora2/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-ora2/events","assignees_url":"https://api.github.com/repos/edx/edx-ora2/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-ora2/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-ora2/tags","blobs_url":"https://api.github.com/repos/edx/edx-ora2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-ora2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-ora2/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-ora2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-ora2/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-ora2/languages","stargazers_url":"https://api.github.com/repos/edx/edx-ora2/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-ora2/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-ora2/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-ora2/subscription","commits_url":"https://api.github.com/repos/edx/edx-ora2/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-ora2/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-ora2/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-ora2/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-ora2/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-ora2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-ora2/merges","archive_url":"https://api.github.com/repos/edx/edx-ora2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-ora2/downloads","issues_url":"https://api.github.com/repos/edx/edx-ora2/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-ora2/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-ora2/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-ora2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-ora2/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-ora2/releases{/id}","created_at":"2013-12-23T20:54:54Z","updated_at":"2015-10-17T16:38:47Z","pushed_at":"2015-11-17T16:03:41Z","git_url":"git://github.com/edx/edx-ora2.git","ssh_url":"git@github.com:edx/edx-ora2.git","clone_url":"https://github.com/edx/edx-ora2.git","svn_url":"https://github.com/edx/edx-ora2","homepage":"","size":103335,"stargazers_count":28,"watchers_count":28,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":11,"forks":68,"open_issues":11,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/760"},"html":{"href":"https://github.com/edx/edx-ora2/pull/760"},"issue":{"href":"https://api.github.com/repos/edx/edx-ora2/issues/760"},"comments":{"href":"https://api.github.com/repos/edx/edx-ora2/issues/760/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/760/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-ora2/pulls/760/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-ora2/statuses/566d2c9538f2958900efdfae1fbbbdef3334ff09"}}}}