{"action":"created","comment":{"url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/comments/31635951","id":31635951,"diff_hunk":"@@ -245,6 +254,23 @@ define([\n           keyboard_manager: that.keyboard_manager\n         });\n     });\n+\n+    delete_button.click(function (e) {\n+        var settings = {\n+            processData : false,\n+            data : \"name=\"+that.data.name,\n+            cache : false,\n+            type : \"GET\",","path":"public/ipython/tree/js/clusterlist.js","position":65,"original_position":65,"commit_id":"2b68d567e0759c6483b9d8230a6b62d0c72acb0b","original_commit_id":"2b68d567e0759c6483b9d8230a6b62d0c72acb0b","user":{"login":"andypetrella","id":663344,"avatar_url":"https://avatars.githubusercontent.com/u/663344?v=3","gravatar_id":"","url":"https://api.github.com/users/andypetrella","html_url":"https://github.com/andypetrella","followers_url":"https://api.github.com/users/andypetrella/followers","following_url":"https://api.github.com/users/andypetrella/following{/other_user}","gists_url":"https://api.github.com/users/andypetrella/gists{/gist_id}","starred_url":"https://api.github.com/users/andypetrella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andypetrella/subscriptions","organizations_url":"https://api.github.com/users/andypetrella/orgs","repos_url":"https://api.github.com/users/andypetrella/repos","events_url":"https://api.github.com/users/andypetrella/events{/privacy}","received_events_url":"https://api.github.com/users/andypetrella/received_events","type":"User","site_admin":false},"body":"would it be better to used `DELETE` here? \r\nSo (below) we can stick with the `cluster` path","created_at":"2015-06-03T15:33:02Z","updated_at":"2015-06-03T15:33:02Z","html_url":"https://github.com/andypetrella/spark-notebook/pull/197#discussion_r31635951","pull_request_url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197","_links":{"self":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/comments/31635951"},"html":{"href":"https://github.com/andypetrella/spark-notebook/pull/197#discussion_r31635951"},"pull_request":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197","id":36810424,"html_url":"https://github.com/andypetrella/spark-notebook/pull/197","diff_url":"https://github.com/andypetrella/spark-notebook/pull/197.diff","patch_url":"https://github.com/andypetrella/spark-notebook/pull/197.patch","issue_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/197","number":197,"state":"open","locked":false,"title":"add clusterlist delete function and code format","user":{"login":"lantian0802","id":4207315,"avatar_url":"https://avatars.githubusercontent.com/u/4207315?v=3","gravatar_id":"","url":"https://api.github.com/users/lantian0802","html_url":"https://github.com/lantian0802","followers_url":"https://api.github.com/users/lantian0802/followers","following_url":"https://api.github.com/users/lantian0802/following{/other_user}","gists_url":"https://api.github.com/users/lantian0802/gists{/gist_id}","starred_url":"https://api.github.com/users/lantian0802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantian0802/subscriptions","organizations_url":"https://api.github.com/users/lantian0802/orgs","repos_url":"https://api.github.com/users/lantian0802/repos","events_url":"https://api.github.com/users/lantian0802/events{/privacy}","received_events_url":"https://api.github.com/users/lantian0802/received_events","type":"User","site_admin":false},"body":"There are not a delete cluster function when click the clusters tab. I add a delete button on the cluster list page and do some code format.","created_at":"2015-06-03T08:49:34Z","updated_at":"2015-06-03T15:33:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e728e3d5a3fb8bd103d8315ee340ff5d604a2ba9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197/commits","review_comments_url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197/comments","review_comment_url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/197/comments","statuses_url":"https://api.github.com/repos/andypetrella/spark-notebook/statuses/2b68d567e0759c6483b9d8230a6b62d0c72acb0b","head":{"label":"lantian0802:master","ref":"master","sha":"2b68d567e0759c6483b9d8230a6b62d0c72acb0b","user":{"login":"lantian0802","id":4207315,"avatar_url":"https://avatars.githubusercontent.com/u/4207315?v=3","gravatar_id":"","url":"https://api.github.com/users/lantian0802","html_url":"https://github.com/lantian0802","followers_url":"https://api.github.com/users/lantian0802/followers","following_url":"https://api.github.com/users/lantian0802/following{/other_user}","gists_url":"https://api.github.com/users/lantian0802/gists{/gist_id}","starred_url":"https://api.github.com/users/lantian0802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantian0802/subscriptions","organizations_url":"https://api.github.com/users/lantian0802/orgs","repos_url":"https://api.github.com/users/lantian0802/repos","events_url":"https://api.github.com/users/lantian0802/events{/privacy}","received_events_url":"https://api.github.com/users/lantian0802/received_events","type":"User","site_admin":false},"repo":{"id":36790432,"name":"spark-notebook","full_name":"lantian0802/spark-notebook","owner":{"login":"lantian0802","id":4207315,"avatar_url":"https://avatars.githubusercontent.com/u/4207315?v=3","gravatar_id":"","url":"https://api.github.com/users/lantian0802","html_url":"https://github.com/lantian0802","followers_url":"https://api.github.com/users/lantian0802/followers","following_url":"https://api.github.com/users/lantian0802/following{/other_user}","gists_url":"https://api.github.com/users/lantian0802/gists{/gist_id}","starred_url":"https://api.github.com/users/lantian0802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantian0802/subscriptions","organizations_url":"https://api.github.com/users/lantian0802/orgs","repos_url":"https://api.github.com/users/lantian0802/repos","events_url":"https://api.github.com/users/lantian0802/events{/privacy}","received_events_url":"https://api.github.com/users/lantian0802/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lantian0802/spark-notebook","description":"Use Apache Spark straight from the Browser","fork":true,"url":"https://api.github.com/repos/lantian0802/spark-notebook","forks_url":"https://api.github.com/repos/lantian0802/spark-notebook/forks","keys_url":"https://api.github.com/repos/lantian0802/spark-notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lantian0802/spark-notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lantian0802/spark-notebook/teams","hooks_url":"https://api.github.com/repos/lantian0802/spark-notebook/hooks","issue_events_url":"https://api.github.com/repos/lantian0802/spark-notebook/issues/events{/number}","events_url":"https://api.github.com/repos/lantian0802/spark-notebook/events","assignees_url":"https://api.github.com/repos/lantian0802/spark-notebook/assignees{/user}","branches_url":"https://api.github.com/repos/lantian0802/spark-notebook/branches{/branch}","tags_url":"https://api.github.com/repos/lantian0802/spark-notebook/tags","blobs_url":"https://api.github.com/repos/lantian0802/spark-notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lantian0802/spark-notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lantian0802/spark-notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/lantian0802/spark-notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lantian0802/spark-notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/lantian0802/spark-notebook/languages","stargazers_url":"https://api.github.com/repos/lantian0802/spark-notebook/stargazers","contributors_url":"https://api.github.com/repos/lantian0802/spark-notebook/contributors","subscribers_url":"https://api.github.com/repos/lantian0802/spark-notebook/subscribers","subscription_url":"https://api.github.com/repos/lantian0802/spark-notebook/subscription","commits_url":"https://api.github.com/repos/lantian0802/spark-notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/lantian0802/spark-notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/lantian0802/spark-notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/lantian0802/spark-notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/lantian0802/spark-notebook/contents/{+path}","compare_url":"https://api.github.com/repos/lantian0802/spark-notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lantian0802/spark-notebook/merges","archive_url":"https://api.github.com/repos/lantian0802/spark-notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lantian0802/spark-notebook/downloads","issues_url":"https://api.github.com/repos/lantian0802/spark-notebook/issues{/number}","pulls_url":"https://api.github.com/repos/lantian0802/spark-notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/lantian0802/spark-notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/lantian0802/spark-notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lantian0802/spark-notebook/labels{/name}","releases_url":"https://api.github.com/repos/lantian0802/spark-notebook/releases{/id}","created_at":"2015-06-03T08:30:28Z","updated_at":"2015-06-03T08:30:29Z","pushed_at":"2015-06-03T08:45:28Z","git_url":"git://github.com/lantian0802/spark-notebook.git","ssh_url":"git@github.com:lantian0802/spark-notebook.git","clone_url":"https://github.com/lantian0802/spark-notebook.git","svn_url":"https://github.com/lantian0802/spark-notebook","homepage":"","size":14858,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"andypetrella:master","ref":"master","sha":"2d3e5aae3ad82f44cf065d05bf94129b00071824","user":{"login":"andypetrella","id":663344,"avatar_url":"https://avatars.githubusercontent.com/u/663344?v=3","gravatar_id":"","url":"https://api.github.com/users/andypetrella","html_url":"https://github.com/andypetrella","followers_url":"https://api.github.com/users/andypetrella/followers","following_url":"https://api.github.com/users/andypetrella/following{/other_user}","gists_url":"https://api.github.com/users/andypetrella/gists{/gist_id}","starred_url":"https://api.github.com/users/andypetrella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andypetrella/subscriptions","organizations_url":"https://api.github.com/users/andypetrella/orgs","repos_url":"https://api.github.com/users/andypetrella/repos","events_url":"https://api.github.com/users/andypetrella/events{/privacy}","received_events_url":"https://api.github.com/users/andypetrella/received_events","type":"User","site_admin":false},"repo":{"id":23715842,"name":"spark-notebook","full_name":"andypetrella/spark-notebook","owner":{"login":"andypetrella","id":663344,"avatar_url":"https://avatars.githubusercontent.com/u/663344?v=3","gravatar_id":"","url":"https://api.github.com/users/andypetrella","html_url":"https://github.com/andypetrella","followers_url":"https://api.github.com/users/andypetrella/followers","following_url":"https://api.github.com/users/andypetrella/following{/other_user}","gists_url":"https://api.github.com/users/andypetrella/gists{/gist_id}","starred_url":"https://api.github.com/users/andypetrella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andypetrella/subscriptions","organizations_url":"https://api.github.com/users/andypetrella/orgs","repos_url":"https://api.github.com/users/andypetrella/repos","events_url":"https://api.github.com/users/andypetrella/events{/privacy}","received_events_url":"https://api.github.com/users/andypetrella/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andypetrella/spark-notebook","description":"Use Apache Spark straight from the Browser","fork":false,"url":"https://api.github.com/repos/andypetrella/spark-notebook","forks_url":"https://api.github.com/repos/andypetrella/spark-notebook/forks","keys_url":"https://api.github.com/repos/andypetrella/spark-notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andypetrella/spark-notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andypetrella/spark-notebook/teams","hooks_url":"https://api.github.com/repos/andypetrella/spark-notebook/hooks","issue_events_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/events{/number}","events_url":"https://api.github.com/repos/andypetrella/spark-notebook/events","assignees_url":"https://api.github.com/repos/andypetrella/spark-notebook/assignees{/user}","branches_url":"https://api.github.com/repos/andypetrella/spark-notebook/branches{/branch}","tags_url":"https://api.github.com/repos/andypetrella/spark-notebook/tags","blobs_url":"https://api.github.com/repos/andypetrella/spark-notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andypetrella/spark-notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andypetrella/spark-notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/andypetrella/spark-notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andypetrella/spark-notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/andypetrella/spark-notebook/languages","stargazers_url":"https://api.github.com/repos/andypetrella/spark-notebook/stargazers","contributors_url":"https://api.github.com/repos/andypetrella/spark-notebook/contributors","subscribers_url":"https://api.github.com/repos/andypetrella/spark-notebook/subscribers","subscription_url":"https://api.github.com/repos/andypetrella/spark-notebook/subscription","commits_url":"https://api.github.com/repos/andypetrella/spark-notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/andypetrella/spark-notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/andypetrella/spark-notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/andypetrella/spark-notebook/contents/{+path}","compare_url":"https://api.github.com/repos/andypetrella/spark-notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andypetrella/spark-notebook/merges","archive_url":"https://api.github.com/repos/andypetrella/spark-notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andypetrella/spark-notebook/downloads","issues_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues{/number}","pulls_url":"https://api.github.com/repos/andypetrella/spark-notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/andypetrella/spark-notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/andypetrella/spark-notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andypetrella/spark-notebook/labels{/name}","releases_url":"https://api.github.com/repos/andypetrella/spark-notebook/releases{/id}","created_at":"2014-09-05T19:35:25Z","updated_at":"2015-06-03T08:01:11Z","pushed_at":"2015-06-03T11:11:11Z","git_url":"git://github.com/andypetrella/spark-notebook.git","ssh_url":"git@github.com:andypetrella/spark-notebook.git","clone_url":"https://github.com/andypetrella/spark-notebook.git","svn_url":"https://github.com/andypetrella/spark-notebook","homepage":"","size":14858,"stargazers_count":366,"watchers_count":366,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":97,"mirror_url":null,"open_issues_count":36,"forks":97,"open_issues":36,"watchers":366,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197"},"html":{"href":"https://github.com/andypetrella/spark-notebook/pull/197"},"issue":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/issues/197"},"comments":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/andypetrella/spark-notebook/statuses/2b68d567e0759c6483b9d8230a6b62d0c72acb0b"}}}}