{"action":"created","comment":{"url":"https://api.github.com/repos/hpetru/felix/pulls/comments/61869089","id":61869089,"diff_hunk":"@@ -0,0 +1,25 @@\n+import React from 'react';\n+import $ from 'jquery';\n+\n+function columnFetcher({ columnStrategySlug, tableStrategySlug, onSuccess, strategyInputs }) {\n+  const httpMethod = 'GET';\n+  const apiEndpoint = `/api/v0/flexy_table`;\n+  const data = {\n+    table_strategy_slug: tableStrategySlug,\n+    column_strategy_slug: columnStrategySlug,\n+    strategy_inputs: strategyInputs,\n+  };\n+\n+\n+  $.ajax({\n+    url: apiEndpoint,\n+    method: httpMethod,\n+    data: data,\n+    success: onSuccess,\n+    error: () => {\n+      console.logger('Failed to load data');\n+    }","path":"app/assets/javascripts/components/FlexyTable/ajax/columnFetcher.js","position":21,"original_position":21,"commit_id":"ebb7e425a7022678b7559be8b29ac07dec364653","original_commit_id":"ebb7e425a7022678b7559be8b29ac07dec364653","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing trailing comma.","created_at":"2016-05-03T11:50:05Z","updated_at":"2016-05-03T11:50:05Z","html_url":"https://github.com/hpetru/felix/pull/11#discussion_r61869089","pull_request_url":"https://api.github.com/repos/hpetru/felix/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/hpetru/felix/pulls/comments/61869089"},"html":{"href":"https://github.com/hpetru/felix/pull/11#discussion_r61869089"},"pull_request":{"href":"https://api.github.com/repos/hpetru/felix/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/hpetru/felix/pulls/11","id":68664762,"html_url":"https://github.com/hpetru/felix/pull/11","diff_url":"https://github.com/hpetru/felix/pull/11.diff","patch_url":"https://github.com/hpetru/felix/pull/11.patch","issue_url":"https://api.github.com/repos/hpetru/felix/issues/11","number":11,"state":"open","locked":false,"title":"FlexyTable","user":{"login":"hpetru","id":1880766,"avatar_url":"https://avatars.githubusercontent.com/u/1880766?v=3","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-03T06:57:15Z","updated_at":"2016-05-03T11:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa2aa006f117587a66b93152b74cc4f0307e8f08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpetru/felix/pulls/11/commits","review_comments_url":"https://api.github.com/repos/hpetru/felix/pulls/11/comments","review_comment_url":"https://api.github.com/repos/hpetru/felix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpetru/felix/issues/11/comments","statuses_url":"https://api.github.com/repos/hpetru/felix/statuses/ebb7e425a7022678b7559be8b29ac07dec364653","head":{"label":"hpetru:hp-flexy-table","ref":"hp-flexy-table","sha":"ebb7e425a7022678b7559be8b29ac07dec364653","user":{"login":"hpetru","id":1880766,"avatar_url":"https://avatars.githubusercontent.com/u/1880766?v=3","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"repo":{"id":57036270,"name":"felix","full_name":"hpetru/felix","owner":{"login":"hpetru","id":1880766,"avatar_url":"https://avatars.githubusercontent.com/u/1880766?v=3","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hpetru/felix","description":"","fork":false,"url":"https://api.github.com/repos/hpetru/felix","forks_url":"https://api.github.com/repos/hpetru/felix/forks","keys_url":"https://api.github.com/repos/hpetru/felix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpetru/felix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpetru/felix/teams","hooks_url":"https://api.github.com/repos/hpetru/felix/hooks","issue_events_url":"https://api.github.com/repos/hpetru/felix/issues/events{/number}","events_url":"https://api.github.com/repos/hpetru/felix/events","assignees_url":"https://api.github.com/repos/hpetru/felix/assignees{/user}","branches_url":"https://api.github.com/repos/hpetru/felix/branches{/branch}","tags_url":"https://api.github.com/repos/hpetru/felix/tags","blobs_url":"https://api.github.com/repos/hpetru/felix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpetru/felix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpetru/felix/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpetru/felix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpetru/felix/statuses/{sha}","languages_url":"https://api.github.com/repos/hpetru/felix/languages","stargazers_url":"https://api.github.com/repos/hpetru/felix/stargazers","contributors_url":"https://api.github.com/repos/hpetru/felix/contributors","subscribers_url":"https://api.github.com/repos/hpetru/felix/subscribers","subscription_url":"https://api.github.com/repos/hpetru/felix/subscription","commits_url":"https://api.github.com/repos/hpetru/felix/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpetru/felix/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpetru/felix/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpetru/felix/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpetru/felix/contents/{+path}","compare_url":"https://api.github.com/repos/hpetru/felix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpetru/felix/merges","archive_url":"https://api.github.com/repos/hpetru/felix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpetru/felix/downloads","issues_url":"https://api.github.com/repos/hpetru/felix/issues{/number}","pulls_url":"https://api.github.com/repos/hpetru/felix/pulls{/number}","milestones_url":"https://api.github.com/repos/hpetru/felix/milestones{/number}","notifications_url":"https://api.github.com/repos/hpetru/felix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpetru/felix/labels{/name}","releases_url":"https://api.github.com/repos/hpetru/felix/releases{/id}","deployments_url":"https://api.github.com/repos/hpetru/felix/deployments","created_at":"2016-04-25T11:25:54Z","updated_at":"2016-04-26T08:05:41Z","pushed_at":"2016-05-03T11:49:53Z","git_url":"git://github.com/hpetru/felix.git","ssh_url":"git@github.com:hpetru/felix.git","clone_url":"https://github.com/hpetru/felix.git","svn_url":"https://github.com/hpetru/felix","homepage":null,"size":2883,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"hpetru:master","ref":"master","sha":"ef47b4c6bd644a11d2ec70d8aa1b0ae5ce446f63","user":{"login":"hpetru","id":1880766,"avatar_url":"https://avatars.githubusercontent.com/u/1880766?v=3","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"repo":{"id":57036270,"name":"felix","full_name":"hpetru/felix","owner":{"login":"hpetru","id":1880766,"avatar_url":"https://avatars.githubusercontent.com/u/1880766?v=3","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hpetru/felix","description":"","fork":false,"url":"https://api.github.com/repos/hpetru/felix","forks_url":"https://api.github.com/repos/hpetru/felix/forks","keys_url":"https://api.github.com/repos/hpetru/felix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpetru/felix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpetru/felix/teams","hooks_url":"https://api.github.com/repos/hpetru/felix/hooks","issue_events_url":"https://api.github.com/repos/hpetru/felix/issues/events{/number}","events_url":"https://api.github.com/repos/hpetru/felix/events","assignees_url":"https://api.github.com/repos/hpetru/felix/assignees{/user}","branches_url":"https://api.github.com/repos/hpetru/felix/branches{/branch}","tags_url":"https://api.github.com/repos/hpetru/felix/tags","blobs_url":"https://api.github.com/repos/hpetru/felix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpetru/felix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpetru/felix/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpetru/felix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpetru/felix/statuses/{sha}","languages_url":"https://api.github.com/repos/hpetru/felix/languages","stargazers_url":"https://api.github.com/repos/hpetru/felix/stargazers","contributors_url":"https://api.github.com/repos/hpetru/felix/contributors","subscribers_url":"https://api.github.com/repos/hpetru/felix/subscribers","subscription_url":"https://api.github.com/repos/hpetru/felix/subscription","commits_url":"https://api.github.com/repos/hpetru/felix/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpetru/felix/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpetru/felix/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpetru/felix/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpetru/felix/contents/{+path}","compare_url":"https://api.github.com/repos/hpetru/felix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpetru/felix/merges","archive_url":"https://api.github.com/repos/hpetru/felix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpetru/felix/downloads","issues_url":"https://api.github.com/repos/hpetru/felix/issues{/number}","pulls_url":"https://api.github.com/repos/hpetru/felix/pulls{/number}","milestones_url":"https://api.github.com/repos/hpetru/felix/milestones{/number}","notifications_url":"https://api.github.com/repos/hpetru/felix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpetru/felix/labels{/name}","releases_url":"https://api.github.com/repos/hpetru/felix/releases{/id}","deployments_url":"https://api.github.com/repos/hpetru/felix/deployments","created_at":"2016-04-25T11:25:54Z","updated_at":"2016-04-26T08:05:41Z","pushed_at":"2016-05-03T11:49:53Z","git_url":"git://github.com/hpetru/felix.git","ssh_url":"git@github.com:hpetru/felix.git","clone_url":"https://github.com/hpetru/felix.git","svn_url":"https://github.com/hpetru/felix","homepage":null,"size":2883,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpetru/felix/pulls/11"},"html":{"href":"https://github.com/hpetru/felix/pull/11"},"issue":{"href":"https://api.github.com/repos/hpetru/felix/issues/11"},"comments":{"href":"https://api.github.com/repos/hpetru/felix/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/hpetru/felix/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/hpetru/felix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpetru/felix/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/hpetru/felix/statuses/ebb7e425a7022678b7559be8b29ac07dec364653"}}}}