{"action":"created","comment":{"url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/comments/50388714","id":50388714,"diff_hunk":"@@ -0,0 +1,17 @@\n+'use strict';\n+\n+var setCrossDomain = require('../utils/cross_domain');","path":"app/controllers/generic_controller.js","position":3,"original_position":3,"commit_id":"2923c2e083e2629f0c37d29a8261f3651f82f9ce","original_commit_id":"2913aed697568b9f8be78452d490080c2f9170fd","user":{"login":"dgaubert","id":1936888,"avatar_url":"https://avatars.githubusercontent.com/u/1936888?v=3","gravatar_id":"","url":"https://api.github.com/users/dgaubert","html_url":"https://github.com/dgaubert","followers_url":"https://api.github.com/users/dgaubert/followers","following_url":"https://api.github.com/users/dgaubert/following{/other_user}","gists_url":"https://api.github.com/users/dgaubert/gists{/gist_id}","starred_url":"https://api.github.com/users/dgaubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgaubert/subscriptions","organizations_url":"https://api.github.com/users/dgaubert/orgs","repos_url":"https://api.github.com/users/dgaubert/repos","events_url":"https://api.github.com/users/dgaubert/events{/privacy}","received_events_url":"https://api.github.com/users/dgaubert/received_events","type":"User","site_admin":false},"body":"Me too, but I stopped the refactor at this point because I didn't want add more changes to this PR. There are another things that they could fit into a middleware pattern as well.","created_at":"2016-01-21T11:20:46Z","updated_at":"2016-01-21T11:20:46Z","html_url":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261#discussion_r50388714","pull_request_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/comments/50388714"},"html":{"href":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261#discussion_r50388714"},"pull_request":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261","id":56035604,"html_url":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261","diff_url":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261.diff","patch_url":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261.patch","issue_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/261","number":261,"state":"open","locked":false,"title":"Batch API ","user":{"login":"dgaubert","id":1936888,"avatar_url":"https://avatars.githubusercontent.com/u/1936888?v=3","gravatar_id":"","url":"https://api.github.com/users/dgaubert","html_url":"https://github.com/dgaubert","followers_url":"https://api.github.com/users/dgaubert/followers","following_url":"https://api.github.com/users/dgaubert/following{/other_user}","gists_url":"https://api.github.com/users/dgaubert/gists{/gist_id}","starred_url":"https://api.github.com/users/dgaubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgaubert/subscriptions","organizations_url":"https://api.github.com/users/dgaubert/orgs","repos_url":"https://api.github.com/users/dgaubert/repos","events_url":"https://api.github.com/users/dgaubert/events{/privacy}","received_events_url":"https://api.github.com/users/dgaubert/received_events","type":"User","site_admin":false},"body":"cc/ @rochoa @javisantana ","created_at":"2016-01-14T13:37:29Z","updated_at":"2016-01-21T11:20:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aabf35625794e50ce84665f2787401fe3bf251fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261/commits","review_comments_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261/comments","review_comment_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/261/comments","statuses_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/statuses/2923c2e083e2629f0c37d29a8261f3651f82f9ce","head":{"label":"CartoDB:batch-api","ref":"batch-api","sha":"2923c2e083e2629f0c37d29a8261f3651f82f9ce","user":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":1994634,"name":"CartoDB-SQL-API","full_name":"CartoDB/CartoDB-SQL-API","owner":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/CartoDB-SQL-API","description":"CartoDB SQL API","fork":false,"url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API","forks_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/forks","keys_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/teams","hooks_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/events","assignees_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/tags","blobs_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/languages","stargazers_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/subscription","commits_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/merges","archive_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/downloads","issues_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/releases{/id}","created_at":"2011-07-04T09:35:13Z","updated_at":"2015-11-12T17:57:12Z","pushed_at":"2016-01-21T10:47:40Z","git_url":"git://github.com/CartoDB/CartoDB-SQL-API.git","ssh_url":"git@github.com:CartoDB/CartoDB-SQL-API.git","clone_url":"https://github.com/CartoDB/CartoDB-SQL-API.git","svn_url":"https://github.com/CartoDB/CartoDB-SQL-API","homepage":"","size":2295,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":45,"forks":36,"open_issues":45,"watchers":29,"default_branch":"master"}},"base":{"label":"CartoDB:master","ref":"master","sha":"35931f143264fe0c92371ac89ba418c734a45113","user":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":1994634,"name":"CartoDB-SQL-API","full_name":"CartoDB/CartoDB-SQL-API","owner":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/CartoDB-SQL-API","description":"CartoDB SQL API","fork":false,"url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API","forks_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/forks","keys_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/teams","hooks_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/events","assignees_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/tags","blobs_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/languages","stargazers_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/subscription","commits_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/merges","archive_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/downloads","issues_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/releases{/id}","created_at":"2011-07-04T09:35:13Z","updated_at":"2015-11-12T17:57:12Z","pushed_at":"2016-01-21T10:47:40Z","git_url":"git://github.com/CartoDB/CartoDB-SQL-API.git","ssh_url":"git@github.com:CartoDB/CartoDB-SQL-API.git","clone_url":"https://github.com/CartoDB/CartoDB-SQL-API.git","svn_url":"https://github.com/CartoDB/CartoDB-SQL-API","homepage":"","size":2295,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":45,"forks":36,"open_issues":45,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261"},"html":{"href":"https://github.com/CartoDB/CartoDB-SQL-API/pull/261"},"issue":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/261"},"comments":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/CartoDB/CartoDB-SQL-API/statuses/2923c2e083e2629f0c37d29a8261f3651f82f9ce"}}}}