{"action":"created","comment":{"url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/comments/28548156","id":28548156,"diff_hunk":"@@ -24,6 +24,11 @@\n \n def setup_environment(environment_type):\n   link_name = 'static/js/observatory/js/paths.js'\n+\n+  if os.path.exists(link_name):\n+    print 'Warning: Replacing existing file: %s' % link_name\n+    os.remove(link_name)","path":"environment_bootstrap.py","position":7,"original_position":7,"commit_id":"6a14c39a5df3fad33ba438500586279b68ecbd62","original_commit_id":"6a14c39a5df3fad33ba438500586279b68ecbd62","user":{"login":"pboothe","id":143798,"avatar_url":"https://avatars.githubusercontent.com/u/143798?v=3","gravatar_id":"","url":"https://api.github.com/users/pboothe","html_url":"https://github.com/pboothe","followers_url":"https://api.github.com/users/pboothe/followers","following_url":"https://api.github.com/users/pboothe/following{/other_user}","gists_url":"https://api.github.com/users/pboothe/gists{/gist_id}","starred_url":"https://api.github.com/users/pboothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pboothe/subscriptions","organizations_url":"https://api.github.com/users/pboothe/orgs","repos_url":"https://api.github.com/users/pboothe/repos","events_url":"https://api.github.com/users/pboothe/events{/privacy}","received_events_url":"https://api.github.com/users/pboothe/received_events","type":"User","site_admin":false},"body":"This is worrying. \"I'm screwing up your system riiiiiiiiight NOW.\"\r\n\r\nDon't give a warning after you perform an irreversible action.  Either add some complication so that people have to affirmatively confirm that they want you to delete and existing file, or change the text to \"Warning: replaced existing file\".\r\n\r\nI think the best thing of all would be only to remove the link if os.path.islink(link_name) returned true, and to error out otherwise.","created_at":"2015-04-16T20:45:53Z","updated_at":"2015-04-16T20:45:53Z","html_url":"https://github.com/opentechinstitute/mlab-observatory/pull/69#discussion_r28548156","pull_request_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/comments/28548156"},"html":{"href":"https://github.com/opentechinstitute/mlab-observatory/pull/69#discussion_r28548156"},"pull_request":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69","id":33488952,"html_url":"https://github.com/opentechinstitute/mlab-observatory/pull/69","diff_url":"https://github.com/opentechinstitute/mlab-observatory/pull/69.diff","patch_url":"https://github.com/opentechinstitute/mlab-observatory/pull/69.patch","issue_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/69","number":69,"state":"open","locked":false,"title":"Modifying environment_bootstrap to overwrite files (with a warning) when...","user":{"login":"mtlynch","id":7783288,"avatar_url":"https://avatars.githubusercontent.com/u/7783288?v=3","gravatar_id":"","url":"https://api.github.com/users/mtlynch","html_url":"https://github.com/mtlynch","followers_url":"https://api.github.com/users/mtlynch/followers","following_url":"https://api.github.com/users/mtlynch/following{/other_user}","gists_url":"https://api.github.com/users/mtlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/mtlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtlynch/subscriptions","organizations_url":"https://api.github.com/users/mtlynch/orgs","repos_url":"https://api.github.com/users/mtlynch/repos","events_url":"https://api.github.com/users/mtlynch/events{/privacy}","received_events_url":"https://api.github.com/users/mtlynch/received_events","type":"User","site_admin":false},"body":"... it is run on environment that has already been bootstrapped, adding an __init__ file so mlab_observatory can be imported","created_at":"2015-04-16T20:24:01Z","updated_at":"2015-04-16T20:45:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57924e96d4920b17b33af6dffd8b7eede9a76cc1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69/commits","review_comments_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69/comments","review_comment_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/69/comments","statuses_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/statuses/6a14c39a5df3fad33ba438500586279b68ecbd62","head":{"label":"mtlynch:master","ref":"master","sha":"6a14c39a5df3fad33ba438500586279b68ecbd62","user":{"login":"mtlynch","id":7783288,"avatar_url":"https://avatars.githubusercontent.com/u/7783288?v=3","gravatar_id":"","url":"https://api.github.com/users/mtlynch","html_url":"https://github.com/mtlynch","followers_url":"https://api.github.com/users/mtlynch/followers","following_url":"https://api.github.com/users/mtlynch/following{/other_user}","gists_url":"https://api.github.com/users/mtlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/mtlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtlynch/subscriptions","organizations_url":"https://api.github.com/users/mtlynch/orgs","repos_url":"https://api.github.com/users/mtlynch/repos","events_url":"https://api.github.com/users/mtlynch/events{/privacy}","received_events_url":"https://api.github.com/users/mtlynch/received_events","type":"User","site_admin":false},"repo":{"id":26779674,"name":"mlab-observatory","full_name":"mtlynch/mlab-observatory","owner":{"login":"mtlynch","id":7783288,"avatar_url":"https://avatars.githubusercontent.com/u/7783288?v=3","gravatar_id":"","url":"https://api.github.com/users/mtlynch","html_url":"https://github.com/mtlynch","followers_url":"https://api.github.com/users/mtlynch/followers","following_url":"https://api.github.com/users/mtlynch/following{/other_user}","gists_url":"https://api.github.com/users/mtlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/mtlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtlynch/subscriptions","organizations_url":"https://api.github.com/users/mtlynch/orgs","repos_url":"https://api.github.com/users/mtlynch/repos","events_url":"https://api.github.com/users/mtlynch/events{/privacy}","received_events_url":"https://api.github.com/users/mtlynch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtlynch/mlab-observatory","description":"","fork":true,"url":"https://api.github.com/repos/mtlynch/mlab-observatory","forks_url":"https://api.github.com/repos/mtlynch/mlab-observatory/forks","keys_url":"https://api.github.com/repos/mtlynch/mlab-observatory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtlynch/mlab-observatory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtlynch/mlab-observatory/teams","hooks_url":"https://api.github.com/repos/mtlynch/mlab-observatory/hooks","issue_events_url":"https://api.github.com/repos/mtlynch/mlab-observatory/issues/events{/number}","events_url":"https://api.github.com/repos/mtlynch/mlab-observatory/events","assignees_url":"https://api.github.com/repos/mtlynch/mlab-observatory/assignees{/user}","branches_url":"https://api.github.com/repos/mtlynch/mlab-observatory/branches{/branch}","tags_url":"https://api.github.com/repos/mtlynch/mlab-observatory/tags","blobs_url":"https://api.github.com/repos/mtlynch/mlab-observatory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtlynch/mlab-observatory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtlynch/mlab-observatory/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtlynch/mlab-observatory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtlynch/mlab-observatory/statuses/{sha}","languages_url":"https://api.github.com/repos/mtlynch/mlab-observatory/languages","stargazers_url":"https://api.github.com/repos/mtlynch/mlab-observatory/stargazers","contributors_url":"https://api.github.com/repos/mtlynch/mlab-observatory/contributors","subscribers_url":"https://api.github.com/repos/mtlynch/mlab-observatory/subscribers","subscription_url":"https://api.github.com/repos/mtlynch/mlab-observatory/subscription","commits_url":"https://api.github.com/repos/mtlynch/mlab-observatory/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtlynch/mlab-observatory/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtlynch/mlab-observatory/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtlynch/mlab-observatory/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtlynch/mlab-observatory/contents/{+path}","compare_url":"https://api.github.com/repos/mtlynch/mlab-observatory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtlynch/mlab-observatory/merges","archive_url":"https://api.github.com/repos/mtlynch/mlab-observatory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtlynch/mlab-observatory/downloads","issues_url":"https://api.github.com/repos/mtlynch/mlab-observatory/issues{/number}","pulls_url":"https://api.github.com/repos/mtlynch/mlab-observatory/pulls{/number}","milestones_url":"https://api.github.com/repos/mtlynch/mlab-observatory/milestones{/number}","notifications_url":"https://api.github.com/repos/mtlynch/mlab-observatory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtlynch/mlab-observatory/labels{/name}","releases_url":"https://api.github.com/repos/mtlynch/mlab-observatory/releases{/id}","created_at":"2014-11-17T22:08:50Z","updated_at":"2015-04-16T20:23:29Z","pushed_at":"2015-04-16T20:23:22Z","git_url":"git://github.com/mtlynch/mlab-observatory.git","ssh_url":"git@github.com:mtlynch/mlab-observatory.git","clone_url":"https://github.com/mtlynch/mlab-observatory.git","svn_url":"https://github.com/mtlynch/mlab-observatory","homepage":null,"size":13830,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"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":"master"}},"base":{"label":"opentechinstitute:master","ref":"master","sha":"87016c8e02785377f064ba51cd7eb04525a229a3","user":{"login":"opentechinstitute","id":1743675,"avatar_url":"https://avatars.githubusercontent.com/u/1743675?v=3","gravatar_id":"","url":"https://api.github.com/users/opentechinstitute","html_url":"https://github.com/opentechinstitute","followers_url":"https://api.github.com/users/opentechinstitute/followers","following_url":"https://api.github.com/users/opentechinstitute/following{/other_user}","gists_url":"https://api.github.com/users/opentechinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/opentechinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentechinstitute/subscriptions","organizations_url":"https://api.github.com/users/opentechinstitute/orgs","repos_url":"https://api.github.com/users/opentechinstitute/repos","events_url":"https://api.github.com/users/opentechinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/opentechinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":22655633,"name":"mlab-observatory","full_name":"opentechinstitute/mlab-observatory","owner":{"login":"opentechinstitute","id":1743675,"avatar_url":"https://avatars.githubusercontent.com/u/1743675?v=3","gravatar_id":"","url":"https://api.github.com/users/opentechinstitute","html_url":"https://github.com/opentechinstitute","followers_url":"https://api.github.com/users/opentechinstitute/followers","following_url":"https://api.github.com/users/opentechinstitute/following{/other_user}","gists_url":"https://api.github.com/users/opentechinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/opentechinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentechinstitute/subscriptions","organizations_url":"https://api.github.com/users/opentechinstitute/orgs","repos_url":"https://api.github.com/users/opentechinstitute/repos","events_url":"https://api.github.com/users/opentechinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/opentechinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentechinstitute/mlab-observatory","description":"","fork":false,"url":"https://api.github.com/repos/opentechinstitute/mlab-observatory","forks_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/forks","keys_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/teams","hooks_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/hooks","issue_events_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/events{/number}","events_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/events","assignees_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/assignees{/user}","branches_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/branches{/branch}","tags_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/tags","blobs_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/statuses/{sha}","languages_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/languages","stargazers_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/stargazers","contributors_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/contributors","subscribers_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/subscribers","subscription_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/subscription","commits_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/contents/{+path}","compare_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/merges","archive_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/downloads","issues_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues{/number}","pulls_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls{/number}","milestones_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/milestones{/number}","notifications_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/labels{/name}","releases_url":"https://api.github.com/repos/opentechinstitute/mlab-observatory/releases{/id}","created_at":"2014-08-05T18:59:12Z","updated_at":"2015-04-15T21:33:33Z","pushed_at":"2015-04-16T20:24:01Z","git_url":"git://github.com/opentechinstitute/mlab-observatory.git","ssh_url":"git@github.com:opentechinstitute/mlab-observatory.git","clone_url":"https://github.com/opentechinstitute/mlab-observatory.git","svn_url":"https://github.com/opentechinstitute/mlab-observatory","homepage":null,"size":18054,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":17,"forks":1,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69"},"html":{"href":"https://github.com/opentechinstitute/mlab-observatory/pull/69"},"issue":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/69"},"comments":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/opentechinstitute/mlab-observatory/statuses/6a14c39a5df3fad33ba438500586279b68ecbd62"}}}}