{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/38212949","id":38212949,"diff_hunk":"@@ -0,0 +1,78 @@\n+var SORT_INFO = [ { name: 'id', dir: 'asc'}];\n+\n+class DataTable extends React.Component {\n+    state = {\n+        data: this.props.data\n+    };\n+\n+    handleSortChange(sortInfo) {\n+        SORT_INFO = sortInfo;\n+\n+        this.setState({data: sort(this.props.data)});\n+    };\n+\n+    handleColumnOrderChange(index, dropIndex) {\n+        var col = columns[index];\n+        columns.splice(index, 1); //delete from index, 1 item\n+        columns.splice(dropIndex, 0, col);\n+        this.setState({})\n+    };\n+\n+    render() {\n+        return <DataGrid","path":"saleor/static/js_src/dashboard.jsx","position":22,"original_position":22,"commit_id":"2ede15c53dd0ca84e3402413d0f23d334092b217","original_commit_id":"2ede15c53dd0ca84e3402413d0f23d334092b217","user":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"body":"Here you depend on something that was never imported.","created_at":"2015-08-28T15:39:18Z","updated_at":"2015-08-28T15:39:18Z","html_url":"https://github.com/mirumee/saleor/pull/348#discussion_r38212949","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/348","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/38212949"},"html":{"href":"https://github.com/mirumee/saleor/pull/348#discussion_r38212949"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/348"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/348","id":43639419,"html_url":"https://github.com/mirumee/saleor/pull/348","diff_url":"https://github.com/mirumee/saleor/pull/348.diff","patch_url":"https://github.com/mirumee/saleor/pull/348.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/348","number":348,"state":"open","locked":false,"title":"React data tables","user":{"login":"paweltin","id":6458356,"avatar_url":"https://avatars.githubusercontent.com/u/6458356?v=3","gravatar_id":"","url":"https://api.github.com/users/paweltin","html_url":"https://github.com/paweltin","followers_url":"https://api.github.com/users/paweltin/followers","following_url":"https://api.github.com/users/paweltin/following{/other_user}","gists_url":"https://api.github.com/users/paweltin/gists{/gist_id}","starred_url":"https://api.github.com/users/paweltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paweltin/subscriptions","organizations_url":"https://api.github.com/users/paweltin/orgs","repos_url":"https://api.github.com/users/paweltin/repos","events_url":"https://api.github.com/users/paweltin/events{/privacy}","received_events_url":"https://api.github.com/users/paweltin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-28T15:21:39Z","updated_at":"2015-08-28T15:39:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6179e8ecbade3fb3e5b606208a04e85449fda14e","assignee":null,"milestone":{"url":"https://api.github.com/repos/mirumee/saleor/milestones/6","html_url":"https://github.com/mirumee/saleor/milestones/Better%20dashboard","labels_url":"https://api.github.com/repos/mirumee/saleor/milestones/6/labels","id":1100044,"number":6,"title":"Better dashboard","description":"","creator":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":18,"state":"open","created_at":"2015-05-07T11:26:23Z","updated_at":"2015-08-28T15:21:39Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/348/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/348/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/348/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/2ede15c53dd0ca84e3402413d0f23d334092b217","head":{"label":"paweltin:react-data-table","ref":"react-data-table","sha":"2ede15c53dd0ca84e3402413d0f23d334092b217","user":{"login":"paweltin","id":6458356,"avatar_url":"https://avatars.githubusercontent.com/u/6458356?v=3","gravatar_id":"","url":"https://api.github.com/users/paweltin","html_url":"https://github.com/paweltin","followers_url":"https://api.github.com/users/paweltin/followers","following_url":"https://api.github.com/users/paweltin/following{/other_user}","gists_url":"https://api.github.com/users/paweltin/gists{/gist_id}","starred_url":"https://api.github.com/users/paweltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paweltin/subscriptions","organizations_url":"https://api.github.com/users/paweltin/orgs","repos_url":"https://api.github.com/users/paweltin/repos","events_url":"https://api.github.com/users/paweltin/events{/privacy}","received_events_url":"https://api.github.com/users/paweltin/received_events","type":"User","site_admin":false},"repo":{"id":18632927,"name":"saleor","full_name":"paweltin/saleor","owner":{"login":"paweltin","id":6458356,"avatar_url":"https://avatars.githubusercontent.com/u/6458356?v=3","gravatar_id":"","url":"https://api.github.com/users/paweltin","html_url":"https://github.com/paweltin","followers_url":"https://api.github.com/users/paweltin/followers","following_url":"https://api.github.com/users/paweltin/following{/other_user}","gists_url":"https://api.github.com/users/paweltin/gists{/gist_id}","starred_url":"https://api.github.com/users/paweltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paweltin/subscriptions","organizations_url":"https://api.github.com/users/paweltin/orgs","repos_url":"https://api.github.com/users/paweltin/repos","events_url":"https://api.github.com/users/paweltin/events{/privacy}","received_events_url":"https://api.github.com/users/paweltin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paweltin/saleor","description":"Well shiver me timbers! A Satchless-based store!","fork":true,"url":"https://api.github.com/repos/paweltin/saleor","forks_url":"https://api.github.com/repos/paweltin/saleor/forks","keys_url":"https://api.github.com/repos/paweltin/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paweltin/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paweltin/saleor/teams","hooks_url":"https://api.github.com/repos/paweltin/saleor/hooks","issue_events_url":"https://api.github.com/repos/paweltin/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/paweltin/saleor/events","assignees_url":"https://api.github.com/repos/paweltin/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/paweltin/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/paweltin/saleor/tags","blobs_url":"https://api.github.com/repos/paweltin/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paweltin/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paweltin/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/paweltin/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paweltin/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/paweltin/saleor/languages","stargazers_url":"https://api.github.com/repos/paweltin/saleor/stargazers","contributors_url":"https://api.github.com/repos/paweltin/saleor/contributors","subscribers_url":"https://api.github.com/repos/paweltin/saleor/subscribers","subscription_url":"https://api.github.com/repos/paweltin/saleor/subscription","commits_url":"https://api.github.com/repos/paweltin/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/paweltin/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/paweltin/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/paweltin/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/paweltin/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/paweltin/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paweltin/saleor/merges","archive_url":"https://api.github.com/repos/paweltin/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paweltin/saleor/downloads","issues_url":"https://api.github.com/repos/paweltin/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/paweltin/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/paweltin/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/paweltin/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paweltin/saleor/labels{/name}","releases_url":"https://api.github.com/repos/paweltin/saleor/releases{/id}","created_at":"2014-04-10T10:42:54Z","updated_at":"2015-06-03T08:27:17Z","pushed_at":"2015-08-28T15:20:55Z","git_url":"git://github.com/paweltin/saleor.git","ssh_url":"git@github.com:paweltin/saleor.git","clone_url":"https://github.com/paweltin/saleor.git","svn_url":"https://github.com/paweltin/saleor","homepage":"http://getsaleor.com","size":8237,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mirumee:master","ref":"master","sha":"95cf1a217ddc2989127f15fee493b616b374ca0e","user":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","created_at":"2013-02-12T16:46:39Z","updated_at":"2015-08-28T08:54:07Z","pushed_at":"2015-08-28T15:21:39Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":10867,"stargazers_count":284,"watchers_count":284,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":37,"forks":88,"open_issues":37,"watchers":284,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/348"},"html":{"href":"https://github.com/mirumee/saleor/pull/348"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/348"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/348/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/348/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/348/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/2ede15c53dd0ca84e3402413d0f23d334092b217"}}}}