{"action":"created","comment":{"url":"https://api.github.com/repos/airbnb/caravel/pulls/comments/68704842","id":68704842,"diff_hunk":"@@ -182,15 +167,148 @@ class GridLayout extends React.Component {\n         margin={[20, 20]}\n         useCSSTransforms={false}\n         draggableHandle=\".drag\">\n-        {this.state.sliceElements}\n+        {this.state.slices.map(function (slice) {","path":"caravel/assets/javascripts/dashboard.jsx","position":70,"original_position":70,"commit_id":"1e09d28a150aee82c51eeec814f107650eb47bb7","original_commit_id":"1e09d28a150aee82c51eeec814f107650eb47bb7","user":{"login":"ascott","id":130878,"avatar_url":"https://avatars.githubusercontent.com/u/130878?v=3","gravatar_id":"","url":"https://api.github.com/users/ascott","html_url":"https://github.com/ascott","followers_url":"https://api.github.com/users/ascott/followers","following_url":"https://api.github.com/users/ascott/following{/other_user}","gists_url":"https://api.github.com/users/ascott/gists{/gist_id}","starred_url":"https://api.github.com/users/ascott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascott/subscriptions","organizations_url":"https://api.github.com/users/ascott/orgs","repos_url":"https://api.github.com/users/ascott/repos","events_url":"https://api.github.com/users/ascott/events{/privacy}","received_events_url":"https://api.github.com/users/ascott/received_events","type":"User","site_admin":false},"body":"you could use es6 fat arrow here and you then you won't need to bind `this`.\r\n```\r\nthis.state.slices.map((slice) =>  {\r\n  // do things with slice\r\n});\r\n```","created_at":"2016-06-28T06:47:47Z","updated_at":"2016-06-28T06:47:47Z","html_url":"https://github.com/airbnb/caravel/pull/678#discussion_r68704842","pull_request_url":"https://api.github.com/repos/airbnb/caravel/pulls/678","_links":{"self":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/comments/68704842"},"html":{"href":"https://github.com/airbnb/caravel/pull/678#discussion_r68704842"},"pull_request":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/airbnb/caravel/pulls/678","id":75246661,"html_url":"https://github.com/airbnb/caravel/pull/678","diff_url":"https://github.com/airbnb/caravel/pull/678.diff","patch_url":"https://github.com/airbnb/caravel/pull/678.patch","issue_url":"https://api.github.com/repos/airbnb/caravel/issues/678","number":678,"state":"open","locked":false,"title":"\"Add Slices\" modal on dashboard page","user":{"login":"georgeke","id":3867546,"avatar_url":"https://avatars.githubusercontent.com/u/3867546?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeke","html_url":"https://github.com/georgeke","followers_url":"https://api.github.com/users/georgeke/followers","following_url":"https://api.github.com/users/georgeke/following{/other_user}","gists_url":"https://api.github.com/users/georgeke/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeke/subscriptions","organizations_url":"https://api.github.com/users/georgeke/orgs","repos_url":"https://api.github.com/users/georgeke/repos","events_url":"https://api.github.com/users/georgeke/events{/privacy}","received_events_url":"https://api.github.com/users/georgeke/received_events","type":"User","site_admin":false},"body":"<img width=\"626\" alt=\"screen shot 2016-06-26 at 5 44 08 pm\" src=\"https://cloud.githubusercontent.com/assets/3867546/16366098/91aca280-3bc6-11e6-99b3-4eaf6ac270a2.png\">\r\n\r\nNotes:\r\n - only shows slices owned by the logged in user\r\n - will save the dashboard & refresh the page after adding slices","created_at":"2016-06-27T01:03:11Z","updated_at":"2016-06-28T06:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a46e09acaddf3070e577c68b4dabc111a22285e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/airbnb/caravel/pulls/678/commits","review_comments_url":"https://api.github.com/repos/airbnb/caravel/pulls/678/comments","review_comment_url":"https://api.github.com/repos/airbnb/caravel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbnb/caravel/issues/678/comments","statuses_url":"https://api.github.com/repos/airbnb/caravel/statuses/1e09d28a150aee82c51eeec814f107650eb47bb7","head":{"label":"georgeke:add-slice","ref":"add-slice","sha":"1e09d28a150aee82c51eeec814f107650eb47bb7","user":{"login":"georgeke","id":3867546,"avatar_url":"https://avatars.githubusercontent.com/u/3867546?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeke","html_url":"https://github.com/georgeke","followers_url":"https://api.github.com/users/georgeke/followers","following_url":"https://api.github.com/users/georgeke/following{/other_user}","gists_url":"https://api.github.com/users/georgeke/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeke/subscriptions","organizations_url":"https://api.github.com/users/georgeke/orgs","repos_url":"https://api.github.com/users/georgeke/repos","events_url":"https://api.github.com/users/georgeke/events{/privacy}","received_events_url":"https://api.github.com/users/georgeke/received_events","type":"User","site_admin":false},"repo":{"id":58501931,"name":"caravel","full_name":"georgeke/caravel","owner":{"login":"georgeke","id":3867546,"avatar_url":"https://avatars.githubusercontent.com/u/3867546?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeke","html_url":"https://github.com/georgeke","followers_url":"https://api.github.com/users/georgeke/followers","following_url":"https://api.github.com/users/georgeke/following{/other_user}","gists_url":"https://api.github.com/users/georgeke/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeke/subscriptions","organizations_url":"https://api.github.com/users/georgeke/orgs","repos_url":"https://api.github.com/users/georgeke/repos","events_url":"https://api.github.com/users/georgeke/events{/privacy}","received_events_url":"https://api.github.com/users/georgeke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/georgeke/caravel","description":"Caravel is a data exploration platform designed to be visual, intuitive, and interactive","fork":true,"url":"https://api.github.com/repos/georgeke/caravel","forks_url":"https://api.github.com/repos/georgeke/caravel/forks","keys_url":"https://api.github.com/repos/georgeke/caravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/georgeke/caravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/georgeke/caravel/teams","hooks_url":"https://api.github.com/repos/georgeke/caravel/hooks","issue_events_url":"https://api.github.com/repos/georgeke/caravel/issues/events{/number}","events_url":"https://api.github.com/repos/georgeke/caravel/events","assignees_url":"https://api.github.com/repos/georgeke/caravel/assignees{/user}","branches_url":"https://api.github.com/repos/georgeke/caravel/branches{/branch}","tags_url":"https://api.github.com/repos/georgeke/caravel/tags","blobs_url":"https://api.github.com/repos/georgeke/caravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/georgeke/caravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/georgeke/caravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/georgeke/caravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/georgeke/caravel/statuses/{sha}","languages_url":"https://api.github.com/repos/georgeke/caravel/languages","stargazers_url":"https://api.github.com/repos/georgeke/caravel/stargazers","contributors_url":"https://api.github.com/repos/georgeke/caravel/contributors","subscribers_url":"https://api.github.com/repos/georgeke/caravel/subscribers","subscription_url":"https://api.github.com/repos/georgeke/caravel/subscription","commits_url":"https://api.github.com/repos/georgeke/caravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/georgeke/caravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/georgeke/caravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/georgeke/caravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/georgeke/caravel/contents/{+path}","compare_url":"https://api.github.com/repos/georgeke/caravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/georgeke/caravel/merges","archive_url":"https://api.github.com/repos/georgeke/caravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/georgeke/caravel/downloads","issues_url":"https://api.github.com/repos/georgeke/caravel/issues{/number}","pulls_url":"https://api.github.com/repos/georgeke/caravel/pulls{/number}","milestones_url":"https://api.github.com/repos/georgeke/caravel/milestones{/number}","notifications_url":"https://api.github.com/repos/georgeke/caravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/georgeke/caravel/labels{/name}","releases_url":"https://api.github.com/repos/georgeke/caravel/releases{/id}","deployments_url":"https://api.github.com/repos/georgeke/caravel/deployments","created_at":"2016-05-11T00:25:30Z","updated_at":"2016-05-11T00:25:31Z","pushed_at":"2016-06-27T22:17:49Z","git_url":"git://github.com/georgeke/caravel.git","ssh_url":"git@github.com:georgeke/caravel.git","clone_url":"https://github.com/georgeke/caravel.git","svn_url":"https://github.com/georgeke/caravel","homepage":"","size":37373,"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":"airbnb:master","ref":"master","sha":"4191b75966bdfec22a4dcb04eb62f6884765d55d","user":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"repo":{"id":39464018,"name":"caravel","full_name":"airbnb/caravel","owner":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbnb/caravel","description":"Caravel is a data exploration platform designed to be visual, intuitive, and interactive","fork":false,"url":"https://api.github.com/repos/airbnb/caravel","forks_url":"https://api.github.com/repos/airbnb/caravel/forks","keys_url":"https://api.github.com/repos/airbnb/caravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbnb/caravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbnb/caravel/teams","hooks_url":"https://api.github.com/repos/airbnb/caravel/hooks","issue_events_url":"https://api.github.com/repos/airbnb/caravel/issues/events{/number}","events_url":"https://api.github.com/repos/airbnb/caravel/events","assignees_url":"https://api.github.com/repos/airbnb/caravel/assignees{/user}","branches_url":"https://api.github.com/repos/airbnb/caravel/branches{/branch}","tags_url":"https://api.github.com/repos/airbnb/caravel/tags","blobs_url":"https://api.github.com/repos/airbnb/caravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbnb/caravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbnb/caravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbnb/caravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbnb/caravel/statuses/{sha}","languages_url":"https://api.github.com/repos/airbnb/caravel/languages","stargazers_url":"https://api.github.com/repos/airbnb/caravel/stargazers","contributors_url":"https://api.github.com/repos/airbnb/caravel/contributors","subscribers_url":"https://api.github.com/repos/airbnb/caravel/subscribers","subscription_url":"https://api.github.com/repos/airbnb/caravel/subscription","commits_url":"https://api.github.com/repos/airbnb/caravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbnb/caravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbnb/caravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbnb/caravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbnb/caravel/contents/{+path}","compare_url":"https://api.github.com/repos/airbnb/caravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbnb/caravel/merges","archive_url":"https://api.github.com/repos/airbnb/caravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbnb/caravel/downloads","issues_url":"https://api.github.com/repos/airbnb/caravel/issues{/number}","pulls_url":"https://api.github.com/repos/airbnb/caravel/pulls{/number}","milestones_url":"https://api.github.com/repos/airbnb/caravel/milestones{/number}","notifications_url":"https://api.github.com/repos/airbnb/caravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbnb/caravel/labels{/name}","releases_url":"https://api.github.com/repos/airbnb/caravel/releases{/id}","deployments_url":"https://api.github.com/repos/airbnb/caravel/deployments","created_at":"2015-07-21T18:55:34Z","updated_at":"2016-06-27T15:31:53Z","pushed_at":"2016-06-28T05:12:52Z","git_url":"git://github.com/airbnb/caravel.git","ssh_url":"git@github.com:airbnb/caravel.git","clone_url":"https://github.com/airbnb/caravel.git","svn_url":"https://github.com/airbnb/caravel","homepage":"","size":38678,"stargazers_count":6499,"watchers_count":6499,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":639,"mirror_url":null,"open_issues_count":147,"forks":639,"open_issues":147,"watchers":6499,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/678"},"html":{"href":"https://github.com/airbnb/caravel/pull/678"},"issue":{"href":"https://api.github.com/repos/airbnb/caravel/issues/678"},"comments":{"href":"https://api.github.com/repos/airbnb/caravel/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbnb/caravel/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/airbnb/caravel/statuses/1e09d28a150aee82c51eeec814f107650eb47bb7"}}}}
{"actor":{"display_login":"ascott"}}