{"action":"created","comment":{"url":"https://api.github.com/repos/keboola/kbc-ui/pulls/comments/245255813","pull_request_review_id":189313270,"id":245255813,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTI1NTgxMw==","diff_hunk":"@@ -31,25 +31,23 @@ export default React.createClass({\n   },\n \n   renderSamplesTable() {\n-    const csvMap = this.getSampleDataInfo('data', null);\n-    if (!csvMap ) {\n+    const sampleData = this.getSampleDataInfo('data', null);\n+    if (!sampleData ) {\n       return null;\n     }\n-    if (csvMap.count() === 0) {\n+    if (sampleData.count() === 0) {\n       return (\n         <EmptyState>\n           Query returned empty result\n         </EmptyState>\n       );\n     }\n \n-    let idIdx = 0;\n-    const header = csvMap.first().map((c, idx) => {\n-      if (c === 'id') idIdx = idx;\n+    const header = sampleData.first().map((c, idx) => {\n       return (\n         <th key={idx}>\n-          {c}\n-          {c === 'id' ?\n+          {idx}\n+          {idx === 'id' ?","path":"src/scripts/modules/ex-google-analytics-v4/react/components/QueryEditor/QuerySample.jsx","position":null,"original_position":28,"commit_id":"aa7d7b28a2660f9e8fac0aeca7bd565f200a12cd","original_commit_id":"b7cb255e3c9b87b708d63fc370887e24836feed2","user":{"login":"ujovlado","id":419849,"node_id":"MDQ6VXNlcjQxOTg0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/419849?v=4","gravatar_id":"","url":"https://api.github.com/users/ujovlado","html_url":"https://github.com/ujovlado","followers_url":"https://api.github.com/users/ujovlado/followers","following_url":"https://api.github.com/users/ujovlado/following{/other_user}","gists_url":"https://api.github.com/users/ujovlado/gists{/gist_id}","starred_url":"https://api.github.com/users/ujovlado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujovlado/subscriptions","organizations_url":"https://api.github.com/users/ujovlado/orgs","repos_url":"https://api.github.com/users/ujovlado/repos","events_url":"https://api.github.com/users/ujovlado/events{/privacy}","received_events_url":"https://api.github.com/users/ujovlado/received_events","type":"User","site_admin":false},"body":"poriesene a prehodene so separatnych funkcii.","created_at":"2019-01-04T10:03:44Z","updated_at":"2019-01-04T10:03:44Z","html_url":"https://github.com/keboola/kbc-ui/pull/2612#discussion_r245255813","pull_request_url":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/comments/245255813"},"html":{"href":"https://github.com/keboola/kbc-ui/pull/2612#discussion_r245255813"},"pull_request":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612"}},"in_reply_to_id":245249453},"pull_request":{"url":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612","id":242192828,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTkyODI4","html_url":"https://github.com/keboola/kbc-ui/pull/2612","diff_url":"https://github.com/keboola/kbc-ui/pull/2612.diff","patch_url":"https://github.com/keboola/kbc-ui/pull/2612.patch","issue_url":"https://api.github.com/repos/keboola/kbc-ui/issues/2612","number":2612,"state":"open","locked":false,"title":"Use sampleJson sync action to fetch data sample in GA extractor","user":{"login":"ujovlado","id":419849,"node_id":"MDQ6VXNlcjQxOTg0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/419849?v=4","gravatar_id":"","url":"https://api.github.com/users/ujovlado","html_url":"https://github.com/ujovlado","followers_url":"https://api.github.com/users/ujovlado/followers","following_url":"https://api.github.com/users/ujovlado/following{/other_user}","gists_url":"https://api.github.com/users/ujovlado/gists{/gist_id}","starred_url":"https://api.github.com/users/ujovlado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujovlado/subscriptions","organizations_url":"https://api.github.com/users/ujovlado/orgs","repos_url":"https://api.github.com/users/ujovlado/repos","events_url":"https://api.github.com/users/ujovlado/events{/privacy}","received_events_url":"https://api.github.com/users/ujovlado/received_events","type":"User","site_admin":false},"body":"Fixes #2604\r\nFixes #2606\r\n\r\nProposed changes:\r\n\r\n- used `sampleJson` sync action\r\n- updated related component\r\n- remove `parseCsv` helper and `csv-parse` lib\r\n","created_at":"2019-01-04T07:33:44Z","updated_at":"2019-01-04T10:03:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42e8b53365b0f6696eebecab56624dfe57dc747d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MiroCillik","id":1488015,"node_id":"MDQ6VXNlcjE0ODgwMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1488015?v=4","gravatar_id":"","url":"https://api.github.com/users/MiroCillik","html_url":"https://github.com/MiroCillik","followers_url":"https://api.github.com/users/MiroCillik/followers","following_url":"https://api.github.com/users/MiroCillik/following{/other_user}","gists_url":"https://api.github.com/users/MiroCillik/gists{/gist_id}","starred_url":"https://api.github.com/users/MiroCillik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiroCillik/subscriptions","organizations_url":"https://api.github.com/users/MiroCillik/orgs","repos_url":"https://api.github.com/users/MiroCillik/repos","events_url":"https://api.github.com/users/MiroCillik/events{/privacy}","received_events_url":"https://api.github.com/users/MiroCillik/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612/commits","review_comments_url":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612/comments","review_comment_url":"https://api.github.com/repos/keboola/kbc-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keboola/kbc-ui/issues/2612/comments","statuses_url":"https://api.github.com/repos/keboola/kbc-ui/statuses/aa7d7b28a2660f9e8fac0aeca7bd565f200a12cd","head":{"label":"keboola:ujovlado-ga-json-preview","ref":"ujovlado-ga-json-preview","sha":"aa7d7b28a2660f9e8fac0aeca7bd565f200a12cd","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":26681387,"node_id":"MDEwOlJlcG9zaXRvcnkyNjY4MTM4Nw==","name":"kbc-ui","full_name":"keboola/kbc-ui","private":false,"owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/keboola/kbc-ui","description":"User interface for Keboola Connection","fork":false,"url":"https://api.github.com/repos/keboola/kbc-ui","forks_url":"https://api.github.com/repos/keboola/kbc-ui/forks","keys_url":"https://api.github.com/repos/keboola/kbc-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/kbc-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/kbc-ui/teams","hooks_url":"https://api.github.com/repos/keboola/kbc-ui/hooks","issue_events_url":"https://api.github.com/repos/keboola/kbc-ui/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/kbc-ui/events","assignees_url":"https://api.github.com/repos/keboola/kbc-ui/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/kbc-ui/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/kbc-ui/tags","blobs_url":"https://api.github.com/repos/keboola/kbc-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/kbc-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/kbc-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/kbc-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/kbc-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/kbc-ui/languages","stargazers_url":"https://api.github.com/repos/keboola/kbc-ui/stargazers","contributors_url":"https://api.github.com/repos/keboola/kbc-ui/contributors","subscribers_url":"https://api.github.com/repos/keboola/kbc-ui/subscribers","subscription_url":"https://api.github.com/repos/keboola/kbc-ui/subscription","commits_url":"https://api.github.com/repos/keboola/kbc-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/kbc-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/kbc-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/kbc-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/kbc-ui/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/kbc-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/kbc-ui/merges","archive_url":"https://api.github.com/repos/keboola/kbc-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/kbc-ui/downloads","issues_url":"https://api.github.com/repos/keboola/kbc-ui/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/kbc-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/kbc-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/kbc-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/kbc-ui/labels{/name}","releases_url":"https://api.github.com/repos/keboola/kbc-ui/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/kbc-ui/deployments","created_at":"2014-11-15T13:56:22Z","updated_at":"2019-01-03T22:41:50Z","pushed_at":"2019-01-04T10:02:59Z","git_url":"git://github.com/keboola/kbc-ui.git","ssh_url":"git@github.com:keboola/kbc-ui.git","clone_url":"https://github.com/keboola/kbc-ui.git","svn_url":"https://github.com/keboola/kbc-ui","homepage":"","size":19504,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":319,"license":null,"forks":10,"open_issues":319,"watchers":18,"default_branch":"master"}},"base":{"label":"keboola:master","ref":"master","sha":"f10b70a1f3bb97a37703cbd64f9b1e6515c7ee56","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":26681387,"node_id":"MDEwOlJlcG9zaXRvcnkyNjY4MTM4Nw==","name":"kbc-ui","full_name":"keboola/kbc-ui","private":false,"owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/keboola/kbc-ui","description":"User interface for Keboola Connection","fork":false,"url":"https://api.github.com/repos/keboola/kbc-ui","forks_url":"https://api.github.com/repos/keboola/kbc-ui/forks","keys_url":"https://api.github.com/repos/keboola/kbc-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/kbc-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/kbc-ui/teams","hooks_url":"https://api.github.com/repos/keboola/kbc-ui/hooks","issue_events_url":"https://api.github.com/repos/keboola/kbc-ui/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/kbc-ui/events","assignees_url":"https://api.github.com/repos/keboola/kbc-ui/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/kbc-ui/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/kbc-ui/tags","blobs_url":"https://api.github.com/repos/keboola/kbc-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/kbc-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/kbc-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/kbc-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/kbc-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/kbc-ui/languages","stargazers_url":"https://api.github.com/repos/keboola/kbc-ui/stargazers","contributors_url":"https://api.github.com/repos/keboola/kbc-ui/contributors","subscribers_url":"https://api.github.com/repos/keboola/kbc-ui/subscribers","subscription_url":"https://api.github.com/repos/keboola/kbc-ui/subscription","commits_url":"https://api.github.com/repos/keboola/kbc-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/kbc-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/kbc-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/kbc-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/kbc-ui/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/kbc-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/kbc-ui/merges","archive_url":"https://api.github.com/repos/keboola/kbc-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/kbc-ui/downloads","issues_url":"https://api.github.com/repos/keboola/kbc-ui/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/kbc-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/kbc-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/kbc-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/kbc-ui/labels{/name}","releases_url":"https://api.github.com/repos/keboola/kbc-ui/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/kbc-ui/deployments","created_at":"2014-11-15T13:56:22Z","updated_at":"2019-01-03T22:41:50Z","pushed_at":"2019-01-04T10:02:59Z","git_url":"git://github.com/keboola/kbc-ui.git","ssh_url":"git@github.com:keboola/kbc-ui.git","clone_url":"https://github.com/keboola/kbc-ui.git","svn_url":"https://github.com/keboola/kbc-ui","homepage":"","size":19504,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":319,"license":null,"forks":10,"open_issues":319,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612"},"html":{"href":"https://github.com/keboola/kbc-ui/pull/2612"},"issue":{"href":"https://api.github.com/repos/keboola/kbc-ui/issues/2612"},"comments":{"href":"https://api.github.com/repos/keboola/kbc-ui/issues/2612/comments"},"review_comments":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612/comments"},"review_comment":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keboola/kbc-ui/pulls/2612/commits"},"statuses":{"href":"https://api.github.com/repos/keboola/kbc-ui/statuses/aa7d7b28a2660f9e8fac0aeca7bd565f200a12cd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ujovlado"}}