{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/comments/23724218","id":23724218,"diff_hunk":"@@ -11,17 +11,36 @@\n \n import os\n \n-\n-def load_stored_proc(op, filelist):\n+def get_local_filepath(filename):\n     \"\"\"\n-    Takes a list of files and the alembic op object as arguments\n-    Load and run CREATE OR REPLACE function commands from files\n+    Helper for finding our raw SQL files locally.\n+\n     Expects files to be in:\n         $CWD/socorro/external/postgresql/raw_sql/procs/\n     \"\"\"\n     app_path=os.getcwd()\n+    return (app_path + '/socorro/external/postgresql/raw_sql/procs/' + filename)","path":"socorro/lib/migrations.py","position":16,"original_position":16,"commit_id":"749cb0c50241b030bf6a360dfae8a2c925ad5f48","original_commit_id":"749cb0c50241b030bf6a360dfae8a2c925ad5f48","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"body":"```python\r\nreturn os.path.join(\r\n    os.getcwd(), \r\n    'socorro/external/postgresql/raw_sql/procs/' + filename\r\n)\r\n```\r\n\r\n\r\n","created_at":"2015-01-28T21:14:47Z","updated_at":"2015-01-28T21:14:47Z","html_url":"https://github.com/mozilla/socorro/pull/2591#discussion_r23724218","pull_request_url":"https://api.github.com/repos/mozilla/socorro/pulls/2591","_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments/23724218"},"html":{"href":"https://github.com/mozilla/socorro/pull/2591#discussion_r23724218"},"pull_request":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2591"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/2591","id":27862833,"html_url":"https://github.com/mozilla/socorro/pull/2591","diff_url":"https://github.com/mozilla/socorro/pull/2591.diff","patch_url":"https://github.com/mozilla/socorro/pull/2591.patch","issue_url":"https://api.github.com/repos/mozilla/socorro/issues/2591","number":2591,"state":"open","locked":false,"title":"Fixes bug 1124750 - remove edit_product_info()","user":{"login":"selenamarie","id":54803,"avatar_url":"https://avatars.githubusercontent.com/u/54803?v=3","gravatar_id":"","url":"https://api.github.com/users/selenamarie","html_url":"https://github.com/selenamarie","followers_url":"https://api.github.com/users/selenamarie/followers","following_url":"https://api.github.com/users/selenamarie/following{/other_user}","gists_url":"https://api.github.com/users/selenamarie/gists{/gist_id}","starred_url":"https://api.github.com/users/selenamarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selenamarie/subscriptions","organizations_url":"https://api.github.com/users/selenamarie/orgs","repos_url":"https://api.github.com/users/selenamarie/repos","events_url":"https://api.github.com/users/selenamarie/events{/privacy}","received_events_url":"https://api.github.com/users/selenamarie/received_events","type":"User","site_admin":false},"body":"Starting down the path of deprecating product_info view","created_at":"2015-01-22T17:51:13Z","updated_at":"2015-01-28T21:14:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48945d6a0c4e8961a24dda4c344fedf28fd0ee5f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/socorro/pulls/2591/commits","review_comments_url":"https://api.github.com/repos/mozilla/socorro/pulls/2591/comments","review_comment_url":"https://api.github.com/repos/mozilla/socorro/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/socorro/issues/2591/comments","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/749cb0c50241b030bf6a360dfae8a2c925ad5f48","head":{"label":"selenamarie:bug1124750-remove-edit_product_info","ref":"bug1124750-remove-edit_product_info","sha":"749cb0c50241b030bf6a360dfae8a2c925ad5f48","user":{"login":"selenamarie","id":54803,"avatar_url":"https://avatars.githubusercontent.com/u/54803?v=3","gravatar_id":"","url":"https://api.github.com/users/selenamarie","html_url":"https://github.com/selenamarie","followers_url":"https://api.github.com/users/selenamarie/followers","following_url":"https://api.github.com/users/selenamarie/following{/other_user}","gists_url":"https://api.github.com/users/selenamarie/gists{/gist_id}","starred_url":"https://api.github.com/users/selenamarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selenamarie/subscriptions","organizations_url":"https://api.github.com/users/selenamarie/orgs","repos_url":"https://api.github.com/users/selenamarie/repos","events_url":"https://api.github.com/users/selenamarie/events{/privacy}","received_events_url":"https://api.github.com/users/selenamarie/received_events","type":"User","site_admin":false},"repo":{"id":16245785,"name":"socorro","full_name":"selenamarie/socorro","owner":{"login":"selenamarie","id":54803,"avatar_url":"https://avatars.githubusercontent.com/u/54803?v=3","gravatar_id":"","url":"https://api.github.com/users/selenamarie","html_url":"https://github.com/selenamarie","followers_url":"https://api.github.com/users/selenamarie/followers","following_url":"https://api.github.com/users/selenamarie/following{/other_user}","gists_url":"https://api.github.com/users/selenamarie/gists{/gist_id}","starred_url":"https://api.github.com/users/selenamarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selenamarie/subscriptions","organizations_url":"https://api.github.com/users/selenamarie/orgs","repos_url":"https://api.github.com/users/selenamarie/repos","events_url":"https://api.github.com/users/selenamarie/events{/privacy}","received_events_url":"https://api.github.com/users/selenamarie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/selenamarie/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":true,"url":"https://api.github.com/repos/selenamarie/socorro","forks_url":"https://api.github.com/repos/selenamarie/socorro/forks","keys_url":"https://api.github.com/repos/selenamarie/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selenamarie/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selenamarie/socorro/teams","hooks_url":"https://api.github.com/repos/selenamarie/socorro/hooks","issue_events_url":"https://api.github.com/repos/selenamarie/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/selenamarie/socorro/events","assignees_url":"https://api.github.com/repos/selenamarie/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/selenamarie/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/selenamarie/socorro/tags","blobs_url":"https://api.github.com/repos/selenamarie/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selenamarie/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selenamarie/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/selenamarie/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selenamarie/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/selenamarie/socorro/languages","stargazers_url":"https://api.github.com/repos/selenamarie/socorro/stargazers","contributors_url":"https://api.github.com/repos/selenamarie/socorro/contributors","subscribers_url":"https://api.github.com/repos/selenamarie/socorro/subscribers","subscription_url":"https://api.github.com/repos/selenamarie/socorro/subscription","commits_url":"https://api.github.com/repos/selenamarie/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/selenamarie/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/selenamarie/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/selenamarie/socorro/issues/comments/{number}","contents_url":"https://api.github.com/repos/selenamarie/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/selenamarie/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selenamarie/socorro/merges","archive_url":"https://api.github.com/repos/selenamarie/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selenamarie/socorro/downloads","issues_url":"https://api.github.com/repos/selenamarie/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/selenamarie/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/selenamarie/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/selenamarie/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selenamarie/socorro/labels{/name}","releases_url":"https://api.github.com/repos/selenamarie/socorro/releases{/id}","created_at":"2014-01-26T03:27:40Z","updated_at":"2014-12-10T20:10:20Z","pushed_at":"2015-01-28T21:03:05Z","git_url":"git://github.com/selenamarie/socorro.git","ssh_url":"git@github.com:selenamarie/socorro.git","clone_url":"https://github.com/selenamarie/socorro.git","svn_url":"https://github.com/selenamarie/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":159975,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"aff735c69f0768d92f0ffc0787823f83fb1c60f0","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":2263742,"name":"socorro","full_name":"mozilla/socorro","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/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":false,"url":"https://api.github.com/repos/mozilla/socorro","forks_url":"https://api.github.com/repos/mozilla/socorro/forks","keys_url":"https://api.github.com/repos/mozilla/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/socorro/teams","hooks_url":"https://api.github.com/repos/mozilla/socorro/hooks","issue_events_url":"https://api.github.com/repos/mozilla/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/socorro/events","assignees_url":"https://api.github.com/repos/mozilla/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/socorro/tags","blobs_url":"https://api.github.com/repos/mozilla/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/socorro/languages","stargazers_url":"https://api.github.com/repos/mozilla/socorro/stargazers","contributors_url":"https://api.github.com/repos/mozilla/socorro/contributors","subscribers_url":"https://api.github.com/repos/mozilla/socorro/subscribers","subscription_url":"https://api.github.com/repos/mozilla/socorro/subscription","commits_url":"https://api.github.com/repos/mozilla/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/socorro/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/socorro/merges","archive_url":"https://api.github.com/repos/mozilla/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/socorro/downloads","issues_url":"https://api.github.com/repos/mozilla/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/socorro/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/socorro/releases{/id}","created_at":"2011-08-24T19:21:49Z","updated_at":"2015-01-28T19:40:27Z","pushed_at":"2015-01-28T19:40:26Z","git_url":"git://github.com/mozilla/socorro.git","ssh_url":"git@github.com:mozilla/socorro.git","clone_url":"https://github.com/mozilla/socorro.git","svn_url":"https://github.com/mozilla/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":182816,"stargazers_count":200,"watchers_count":200,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":6,"forks":102,"open_issues":6,"watchers":200,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2591"},"html":{"href":"https://github.com/mozilla/socorro/pull/2591"},"issue":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2591"},"comments":{"href":"https://api.github.com/repos/mozilla/socorro/issues/2591/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2591/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/2591/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/socorro/statuses/749cb0c50241b030bf6a360dfae8a2c925ad5f48"}}}}