{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/ship-it/pulls/comments/27031835","id":27031835,"diff_hunk":"@@ -8,15 +8,38 @@\n from kickoff.model import getReleaseTable\n from kickoff.views.forms import FennecReleaseForm, FirefoxReleaseForm, \\\n     ThunderbirdReleaseForm, getReleaseForm\n+import urllib2\n+import json\n \n log = logging.getLogger(__name__)\n \n \n+def retrieveADI():\n+    defaultURL = \"http://localhost/\"\n+    # Download the source of the data\n+    # Download it from a remote interface to avoid a dependency on vertica db\n+    # We do that in Python to avoid the Cross Origin complexity in JS\n+    try:\n+        response = urllib2.urlopen(defaultURL + 'partial-beta.json')\n+        jsonSourceBeta = response.read().strip()\n+        response = urllib2.urlopen(defaultURL + 'partial-release.json')\n+        jsonSourceRelease = response.read().strip()\n+        response = urllib2.urlopen(defaultURL + 'partial-esr.json')\n+        jsonSourceESR = response.read().strip()\n+        return jsonSourceBeta, jsonSourceRelease, jsonSourceESR\n+    except urllib2.HTTPError, e:","path":"kickoff/views/submit.py","position":23,"original_position":23,"commit_id":"23765576345d32f055739db06faac87c5e4f8fbe","original_commit_id":"23765576345d32f055739db06faac87c5e4f8fbe","user":{"login":"bhearsum","id":49649,"avatar_url":"https://avatars.githubusercontent.com/u/49649?v=3","gravatar_id":"","url":"https://api.github.com/users/bhearsum","html_url":"https://github.com/bhearsum","followers_url":"https://api.github.com/users/bhearsum/followers","following_url":"https://api.github.com/users/bhearsum/following{/other_user}","gists_url":"https://api.github.com/users/bhearsum/gists{/gist_id}","starred_url":"https://api.github.com/users/bhearsum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhearsum/subscriptions","organizations_url":"https://api.github.com/users/bhearsum/orgs","repos_url":"https://api.github.com/users/bhearsum/repos","events_url":"https://api.github.com/users/bhearsum/events{/privacy}","received_events_url":"https://api.github.com/users/bhearsum/received_events","type":"User","site_admin":false},"body":"I thought we were doing this on in the frontend based on the e-mail thread. The thing I don't like about doing it on the server is that ship-it can become unusable if the connection to the server that hosts this file hangs.","created_at":"2015-03-24T14:25:17Z","updated_at":"2015-03-24T14:25:17Z","html_url":"https://github.com/mozilla/ship-it/pull/10#discussion_r27031835","pull_request_url":"https://api.github.com/repos/mozilla/ship-it/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/comments/27031835"},"html":{"href":"https://github.com/mozilla/ship-it/pull/10#discussion_r27031835"},"pull_request":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/ship-it/pulls/10","id":31820880,"html_url":"https://github.com/mozilla/ship-it/pull/10","diff_url":"https://github.com/mozilla/ship-it/pull/10.diff","patch_url":"https://github.com/mozilla/ship-it/pull/10.patch","issue_url":"https://api.github.com/repos/mozilla/ship-it/issues/10","number":10,"state":"open","locked":false,"title":"Automatically fill the partial generation field from the actual data","user":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-24T12:21:43Z","updated_at":"2015-03-24T14:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"924b2f8acbd840c542bfb0095d6555a46f85f802","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/ship-it/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mozilla/ship-it/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mozilla/ship-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/ship-it/issues/10/comments","statuses_url":"https://api.github.com/repos/mozilla/ship-it/statuses/23765576345d32f055739db06faac87c5e4f8fbe","head":{"label":"sylvestre:auto-partial","ref":"auto-partial","sha":"23765576345d32f055739db06faac87c5e4f8fbe","user":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"repo":{"id":31255188,"name":"ship-it","full_name":"sylvestre/ship-it","owner":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sylvestre/ship-it","description":"Internal tool to manage release builds","fork":true,"url":"https://api.github.com/repos/sylvestre/ship-it","forks_url":"https://api.github.com/repos/sylvestre/ship-it/forks","keys_url":"https://api.github.com/repos/sylvestre/ship-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sylvestre/ship-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sylvestre/ship-it/teams","hooks_url":"https://api.github.com/repos/sylvestre/ship-it/hooks","issue_events_url":"https://api.github.com/repos/sylvestre/ship-it/issues/events{/number}","events_url":"https://api.github.com/repos/sylvestre/ship-it/events","assignees_url":"https://api.github.com/repos/sylvestre/ship-it/assignees{/user}","branches_url":"https://api.github.com/repos/sylvestre/ship-it/branches{/branch}","tags_url":"https://api.github.com/repos/sylvestre/ship-it/tags","blobs_url":"https://api.github.com/repos/sylvestre/ship-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sylvestre/ship-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sylvestre/ship-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/sylvestre/ship-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sylvestre/ship-it/statuses/{sha}","languages_url":"https://api.github.com/repos/sylvestre/ship-it/languages","stargazers_url":"https://api.github.com/repos/sylvestre/ship-it/stargazers","contributors_url":"https://api.github.com/repos/sylvestre/ship-it/contributors","subscribers_url":"https://api.github.com/repos/sylvestre/ship-it/subscribers","subscription_url":"https://api.github.com/repos/sylvestre/ship-it/subscription","commits_url":"https://api.github.com/repos/sylvestre/ship-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/sylvestre/ship-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/sylvestre/ship-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/sylvestre/ship-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/sylvestre/ship-it/contents/{+path}","compare_url":"https://api.github.com/repos/sylvestre/ship-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sylvestre/ship-it/merges","archive_url":"https://api.github.com/repos/sylvestre/ship-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sylvestre/ship-it/downloads","issues_url":"https://api.github.com/repos/sylvestre/ship-it/issues{/number}","pulls_url":"https://api.github.com/repos/sylvestre/ship-it/pulls{/number}","milestones_url":"https://api.github.com/repos/sylvestre/ship-it/milestones{/number}","notifications_url":"https://api.github.com/repos/sylvestre/ship-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sylvestre/ship-it/labels{/name}","releases_url":"https://api.github.com/repos/sylvestre/ship-it/releases{/id}","created_at":"2015-02-24T10:32:41Z","updated_at":"2015-02-26T12:22:10Z","pushed_at":"2015-03-24T14:04:39Z","git_url":"git://github.com/sylvestre/ship-it.git","ssh_url":"git@github.com:sylvestre/ship-it.git","clone_url":"https://github.com/sylvestre/ship-it.git","svn_url":"https://github.com/sylvestre/ship-it","homepage":null,"size":1857,"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":"mozilla:master","ref":"master","sha":"0a70910924724cf255a06c6d62a9165344fdf8e4","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":31218912,"name":"ship-it","full_name":"mozilla/ship-it","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/ship-it","description":"Internal tool to manage release builds","fork":false,"url":"https://api.github.com/repos/mozilla/ship-it","forks_url":"https://api.github.com/repos/mozilla/ship-it/forks","keys_url":"https://api.github.com/repos/mozilla/ship-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/ship-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/ship-it/teams","hooks_url":"https://api.github.com/repos/mozilla/ship-it/hooks","issue_events_url":"https://api.github.com/repos/mozilla/ship-it/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/ship-it/events","assignees_url":"https://api.github.com/repos/mozilla/ship-it/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/ship-it/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/ship-it/tags","blobs_url":"https://api.github.com/repos/mozilla/ship-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/ship-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/ship-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/ship-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/ship-it/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/ship-it/languages","stargazers_url":"https://api.github.com/repos/mozilla/ship-it/stargazers","contributors_url":"https://api.github.com/repos/mozilla/ship-it/contributors","subscribers_url":"https://api.github.com/repos/mozilla/ship-it/subscribers","subscription_url":"https://api.github.com/repos/mozilla/ship-it/subscription","commits_url":"https://api.github.com/repos/mozilla/ship-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/ship-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/ship-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/ship-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/ship-it/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/ship-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/ship-it/merges","archive_url":"https://api.github.com/repos/mozilla/ship-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/ship-it/downloads","issues_url":"https://api.github.com/repos/mozilla/ship-it/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/ship-it/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/ship-it/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/ship-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/ship-it/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/ship-it/releases{/id}","created_at":"2015-02-23T17:07:32Z","updated_at":"2015-03-16T14:38:24Z","pushed_at":"2015-03-24T12:57:44Z","git_url":"git://github.com/mozilla/ship-it.git","ssh_url":"git@github.com:mozilla/ship-it.git","clone_url":"https://github.com/mozilla/ship-it.git","svn_url":"https://github.com/mozilla/ship-it","homepage":null,"size":1885,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/10"},"html":{"href":"https://github.com/mozilla/ship-it/pull/10"},"issue":{"href":"https://api.github.com/repos/mozilla/ship-it/issues/10"},"comments":{"href":"https://api.github.com/repos/mozilla/ship-it/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/ship-it/statuses/23765576345d32f055739db06faac87c5e4f8fbe"}}}}