{"action":"created","comment":{"url":"https://api.github.com/repos/clearlydefined/website/pulls/comments/205679639","pull_request_review_id":140998480,"id":205679639,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTY3OTYzOQ==","diff_hunk":"@@ -0,0 +1,104 @@\n+import React from 'react'\n+import ThCustomComponent from './ThCustomComponent'\n+import TrCustomComponent from './TrCustomComponent'\n+import TdCustomComponent from './TdCustomComponent'\n+import PivotCustomComponent from './PivotCustomComponent'\n+\n+/**\n+ * TreeTable HOC Component\n+ * This is a custom implementation based on react-table TreeTable HOC\n+ * The purpose is to provide the data to the renderer, excluding any \"undefined\" \n+ * row generated by the Pivot grouping function\n+ * \n+ * It renders custom components instead the default of ReactTable\n+ * \n+ */\n+export default Component => {\n+  const wrapper = class RTTreeTable extends React.Component {\n+    constructor(props) {\n+      super(props)\n+      this.getWrappedInstance.bind(this)\n+      this.getTrProps.bind(this)\n+      this.getSubrows.bind(this)\n+    }\n+\n+    // this is so we can expose the underlying ReactTable to get at the sortedData for selectAll\n+    getWrappedInstance = () => {\n+      if (!this.wrappedInstance) console.warn('RTTreeTable - No wrapped instance')\n+      if (this.wrappedInstance.getWrappedInstance) return this.wrappedInstance.getWrappedInstance()\n+      else return this.wrappedInstance\n+    }\n+\n+    /**\n+     * This is the custom implementation where each subRow with _pivotVal \"undefined\" is parsed\n+     * in any of his _subRows childs, until find the first _pivotVal !== \"undefined\"\n+     * \n+     * Once the object has been found, than it will returned to the first parent, \n+     * updating the value of _nestingLevel as well\n+     * \n+     */\n+    getSubrows = subRows => {\n+      subRows && subRows.forEach((subRow, index) => {\n+        if (subRow._pivotVal === \"undefined\" && subRow._subRows) {","path":"src/components/FileList/treeTable.js","position":42,"original_position":42,"commit_id":"a1679b8c840629bef27f5aff1fd5069edb689d4b","original_commit_id":"a1679b8c840629bef27f5aff1fd5069edb689d4b","user":{"login":"mynameistechno","id":299129,"node_id":"MDQ6VXNlcjI5OTEyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/299129?v=4","gravatar_id":"","url":"https://api.github.com/users/mynameistechno","html_url":"https://github.com/mynameistechno","followers_url":"https://api.github.com/users/mynameistechno/followers","following_url":"https://api.github.com/users/mynameistechno/following{/other_user}","gists_url":"https://api.github.com/users/mynameistechno/gists{/gist_id}","starred_url":"https://api.github.com/users/mynameistechno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynameistechno/subscriptions","organizations_url":"https://api.github.com/users/mynameistechno/orgs","repos_url":"https://api.github.com/users/mynameistechno/repos","events_url":"https://api.github.com/users/mynameistechno/events{/privacy}","received_events_url":"https://api.github.com/users/mynameistechno/received_events","type":"User","site_admin":false},"body":"So the value of the string will be \"undefined\"? or might the value be `undefined`? Just making sure! 😜 ","created_at":"2018-07-27T06:34:24Z","updated_at":"2018-07-27T06:34:24Z","html_url":"https://github.com/clearlydefined/website/pull/223#discussion_r205679639","pull_request_url":"https://api.github.com/repos/clearlydefined/website/pulls/223","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/comments/205679639"},"html":{"href":"https://github.com/clearlydefined/website/pull/223#discussion_r205679639"},"pull_request":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/clearlydefined/website/pulls/223","id":203000738,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDAwNzM4","html_url":"https://github.com/clearlydefined/website/pull/223","diff_url":"https://github.com/clearlydefined/website/pull/223.diff","patch_url":"https://github.com/clearlydefined/website/pull/223.patch","issue_url":"https://api.github.com/repos/clearlydefined/website/issues/223","number":223,"state":"open","locked":false,"title":"FileList View Component","user":{"login":"storrisi","id":7654979,"node_id":"MDQ6VXNlcjc2NTQ5Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/7654979?v=4","gravatar_id":"","url":"https://api.github.com/users/storrisi","html_url":"https://github.com/storrisi","followers_url":"https://api.github.com/users/storrisi/followers","following_url":"https://api.github.com/users/storrisi/following{/other_user}","gists_url":"https://api.github.com/users/storrisi/gists{/gist_id}","starred_url":"https://api.github.com/users/storrisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storrisi/subscriptions","organizations_url":"https://api.github.com/users/storrisi/orgs","repos_url":"https://api.github.com/users/storrisi/repos","events_url":"https://api.github.com/users/storrisi/events{/privacy}","received_events_url":"https://api.github.com/users/storrisi/received_events","type":"User","site_admin":false},"body":"First solution provided related to #191","created_at":"2018-07-21T08:44:57Z","updated_at":"2018-07-27T06:34:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38df78f0008cd36001097bf512e032862a29b958","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clearlydefined/website/pulls/223/commits","review_comments_url":"https://api.github.com/repos/clearlydefined/website/pulls/223/comments","review_comment_url":"https://api.github.com/repos/clearlydefined/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clearlydefined/website/issues/223/comments","statuses_url":"https://api.github.com/repos/clearlydefined/website/statuses/a1679b8c840629bef27f5aff1fd5069edb689d4b","head":{"label":"WebYourMind:master","ref":"master","sha":"a1679b8c840629bef27f5aff1fd5069edb689d4b","user":{"login":"WebYourMind","id":8700366,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3MDAzNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/8700366?v=4","gravatar_id":"","url":"https://api.github.com/users/WebYourMind","html_url":"https://github.com/WebYourMind","followers_url":"https://api.github.com/users/WebYourMind/followers","following_url":"https://api.github.com/users/WebYourMind/following{/other_user}","gists_url":"https://api.github.com/users/WebYourMind/gists{/gist_id}","starred_url":"https://api.github.com/users/WebYourMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebYourMind/subscriptions","organizations_url":"https://api.github.com/users/WebYourMind/orgs","repos_url":"https://api.github.com/users/WebYourMind/repos","events_url":"https://api.github.com/users/WebYourMind/events{/privacy}","received_events_url":"https://api.github.com/users/WebYourMind/received_events","type":"Organization","site_admin":false},"repo":{"id":141287372,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyODczNzI=","name":"website","full_name":"WebYourMind/website","owner":{"login":"WebYourMind","id":8700366,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3MDAzNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/8700366?v=4","gravatar_id":"","url":"https://api.github.com/users/WebYourMind","html_url":"https://github.com/WebYourMind","followers_url":"https://api.github.com/users/WebYourMind/followers","following_url":"https://api.github.com/users/WebYourMind/following{/other_user}","gists_url":"https://api.github.com/users/WebYourMind/gists{/gist_id}","starred_url":"https://api.github.com/users/WebYourMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebYourMind/subscriptions","organizations_url":"https://api.github.com/users/WebYourMind/orgs","repos_url":"https://api.github.com/users/WebYourMind/repos","events_url":"https://api.github.com/users/WebYourMind/events{/privacy}","received_events_url":"https://api.github.com/users/WebYourMind/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WebYourMind/website","description":"Website for clearlydefined.io","fork":true,"url":"https://api.github.com/repos/WebYourMind/website","forks_url":"https://api.github.com/repos/WebYourMind/website/forks","keys_url":"https://api.github.com/repos/WebYourMind/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WebYourMind/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WebYourMind/website/teams","hooks_url":"https://api.github.com/repos/WebYourMind/website/hooks","issue_events_url":"https://api.github.com/repos/WebYourMind/website/issues/events{/number}","events_url":"https://api.github.com/repos/WebYourMind/website/events","assignees_url":"https://api.github.com/repos/WebYourMind/website/assignees{/user}","branches_url":"https://api.github.com/repos/WebYourMind/website/branches{/branch}","tags_url":"https://api.github.com/repos/WebYourMind/website/tags","blobs_url":"https://api.github.com/repos/WebYourMind/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WebYourMind/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WebYourMind/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/WebYourMind/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WebYourMind/website/statuses/{sha}","languages_url":"https://api.github.com/repos/WebYourMind/website/languages","stargazers_url":"https://api.github.com/repos/WebYourMind/website/stargazers","contributors_url":"https://api.github.com/repos/WebYourMind/website/contributors","subscribers_url":"https://api.github.com/repos/WebYourMind/website/subscribers","subscription_url":"https://api.github.com/repos/WebYourMind/website/subscription","commits_url":"https://api.github.com/repos/WebYourMind/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/WebYourMind/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/WebYourMind/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/WebYourMind/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/WebYourMind/website/contents/{+path}","compare_url":"https://api.github.com/repos/WebYourMind/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WebYourMind/website/merges","archive_url":"https://api.github.com/repos/WebYourMind/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WebYourMind/website/downloads","issues_url":"https://api.github.com/repos/WebYourMind/website/issues{/number}","pulls_url":"https://api.github.com/repos/WebYourMind/website/pulls{/number}","milestones_url":"https://api.github.com/repos/WebYourMind/website/milestones{/number}","notifications_url":"https://api.github.com/repos/WebYourMind/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WebYourMind/website/labels{/name}","releases_url":"https://api.github.com/repos/WebYourMind/website/releases{/id}","deployments_url":"https://api.github.com/repos/WebYourMind/website/deployments","created_at":"2018-07-17T12:34:21Z","updated_at":"2018-07-25T16:26:42Z","pushed_at":"2018-07-25T16:26:40Z","git_url":"git://github.com/WebYourMind/website.git","ssh_url":"git@github.com:WebYourMind/website.git","clone_url":"https://github.com/WebYourMind/website.git","svn_url":"https://github.com/WebYourMind/website","homepage":null,"size":1685,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clearlydefined:master","ref":"master","sha":"e6fb35f01333ec7b9a36d3c98f81f973910154ff","user":{"login":"clearlydefined","id":34137144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MTM3MTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/34137144?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlydefined","html_url":"https://github.com/clearlydefined","followers_url":"https://api.github.com/users/clearlydefined/followers","following_url":"https://api.github.com/users/clearlydefined/following{/other_user}","gists_url":"https://api.github.com/users/clearlydefined/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlydefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlydefined/subscriptions","organizations_url":"https://api.github.com/users/clearlydefined/orgs","repos_url":"https://api.github.com/users/clearlydefined/repos","events_url":"https://api.github.com/users/clearlydefined/events{/privacy}","received_events_url":"https://api.github.com/users/clearlydefined/received_events","type":"Organization","site_admin":false},"repo":{"id":114304822,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQzMDQ4MjI=","name":"website","full_name":"clearlydefined/website","owner":{"login":"clearlydefined","id":34137144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MTM3MTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/34137144?v=4","gravatar_id":"","url":"https://api.github.com/users/clearlydefined","html_url":"https://github.com/clearlydefined","followers_url":"https://api.github.com/users/clearlydefined/followers","following_url":"https://api.github.com/users/clearlydefined/following{/other_user}","gists_url":"https://api.github.com/users/clearlydefined/gists{/gist_id}","starred_url":"https://api.github.com/users/clearlydefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearlydefined/subscriptions","organizations_url":"https://api.github.com/users/clearlydefined/orgs","repos_url":"https://api.github.com/users/clearlydefined/repos","events_url":"https://api.github.com/users/clearlydefined/events{/privacy}","received_events_url":"https://api.github.com/users/clearlydefined/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clearlydefined/website","description":"Website for clearlydefined.io","fork":false,"url":"https://api.github.com/repos/clearlydefined/website","forks_url":"https://api.github.com/repos/clearlydefined/website/forks","keys_url":"https://api.github.com/repos/clearlydefined/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clearlydefined/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clearlydefined/website/teams","hooks_url":"https://api.github.com/repos/clearlydefined/website/hooks","issue_events_url":"https://api.github.com/repos/clearlydefined/website/issues/events{/number}","events_url":"https://api.github.com/repos/clearlydefined/website/events","assignees_url":"https://api.github.com/repos/clearlydefined/website/assignees{/user}","branches_url":"https://api.github.com/repos/clearlydefined/website/branches{/branch}","tags_url":"https://api.github.com/repos/clearlydefined/website/tags","blobs_url":"https://api.github.com/repos/clearlydefined/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clearlydefined/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clearlydefined/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/clearlydefined/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clearlydefined/website/statuses/{sha}","languages_url":"https://api.github.com/repos/clearlydefined/website/languages","stargazers_url":"https://api.github.com/repos/clearlydefined/website/stargazers","contributors_url":"https://api.github.com/repos/clearlydefined/website/contributors","subscribers_url":"https://api.github.com/repos/clearlydefined/website/subscribers","subscription_url":"https://api.github.com/repos/clearlydefined/website/subscription","commits_url":"https://api.github.com/repos/clearlydefined/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/clearlydefined/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/clearlydefined/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/clearlydefined/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/clearlydefined/website/contents/{+path}","compare_url":"https://api.github.com/repos/clearlydefined/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clearlydefined/website/merges","archive_url":"https://api.github.com/repos/clearlydefined/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clearlydefined/website/downloads","issues_url":"https://api.github.com/repos/clearlydefined/website/issues{/number}","pulls_url":"https://api.github.com/repos/clearlydefined/website/pulls{/number}","milestones_url":"https://api.github.com/repos/clearlydefined/website/milestones{/number}","notifications_url":"https://api.github.com/repos/clearlydefined/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clearlydefined/website/labels{/name}","releases_url":"https://api.github.com/repos/clearlydefined/website/releases{/id}","deployments_url":"https://api.github.com/repos/clearlydefined/website/deployments","created_at":"2017-12-14T23:08:10Z","updated_at":"2018-07-25T03:52:32Z","pushed_at":"2018-07-25T20:48:45Z","git_url":"git://github.com/clearlydefined/website.git","ssh_url":"git@github.com:clearlydefined/website.git","clone_url":"https://github.com/clearlydefined/website.git","svn_url":"https://github.com/clearlydefined/website","homepage":null,"size":1700,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":74,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/223"},"html":{"href":"https://github.com/clearlydefined/website/pull/223"},"issue":{"href":"https://api.github.com/repos/clearlydefined/website/issues/223"},"comments":{"href":"https://api.github.com/repos/clearlydefined/website/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clearlydefined/website/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/clearlydefined/website/statuses/a1679b8c840629bef27f5aff1fd5069edb689d4b"}},"author_association":"NONE"}}
{"actor":{"display_login":"mynameistechno"}}