{"action":"created","comment":{"url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/comments/207438293","pull_request_review_id":143050882,"id":207438293,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzQzODI5Mw==","diff_hunk":"@@ -8,45 +8,46 @@ import Layout from '../components/Layout';\n import NewsItem from '../components/NewsItem';\n \n const componentFor = data => {\n+  const nodes = query => (query ? query['edges'] : []).map(edge => edge.node);\n   if (data) {\n-    if (data.ploneCollection) {\n+    if (data['ploneCollection']) {\n       return (\n         <Folder\n-          data={data.ploneCollection}\n-          images={data.allPloneImage}\n-          files={data.allPloneFile}\n+          data={data['ploneCollection']}\n+          images={nodes(data['allPloneImage'])}\n+          files={nodes(data['allPloneFile'])}\n         />\n       );\n-    } else if (data.ploneDocument) {\n+    } else if (data['ploneDocument']) {\n       return (\n         <Document\n-          data={data.ploneDocument}\n-          images={data.allPloneImage}\n-          files={data.allPloneFile}\n+          data={data['ploneDocument']}\n+          images={nodes(data['allPloneImage'])}\n+          files={nodes(data['allPloneFile'])}\n         />\n       );\n-    } else if (data.ploneEvent) {\n+    } else if (data['ploneEvent']) {\n       return (\n         <Event\n-          data={data.ploneEvent}\n-          images={data.allPloneImage}\n-          files={data.allPloneFile}\n+          data={data['ploneEvent']}\n+          images={nodes(data['allPloneImage'])}\n+          files={nodes(data['allPloneFile'])}\n         />\n       );\n-    } else if (data.ploneFolder) {\n+    } else if (data['ploneFolder']) {\n       return (\n         <Folder\n-          data={data.ploneFolder}\n-          images={data.allPloneImage}\n-          files={data.allPloneFile}\n+          data={data['ploneFolder']}\n+          images={nodes(data['allPloneImage'])}\n+          files={nodes(data['allPloneFile'])}\n         />\n       );\n-    } else if (data.ploneNewsItem) {\n+    } else if (data['ploneNewsItem']) {","path":"tests/gatsby-starter-default/src/templates/default.js","position":59,"original_position":55,"commit_id":"2432c58223fa3265b768c9de4219c2f4450126f8","original_commit_id":"f4e3f01901190b28a79eea6bce78f46ad4bc3b70","user":{"login":"ajayns","id":20743219,"node_id":"MDQ6VXNlcjIwNzQzMjE5","avatar_url":"https://avatars0.githubusercontent.com/u/20743219?v=4","gravatar_id":"","url":"https://api.github.com/users/ajayns","html_url":"https://github.com/ajayns","followers_url":"https://api.github.com/users/ajayns/followers","following_url":"https://api.github.com/users/ajayns/following{/other_user}","gists_url":"https://api.github.com/users/ajayns/gists{/gist_id}","starred_url":"https://api.github.com/users/ajayns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajayns/subscriptions","organizations_url":"https://api.github.com/users/ajayns/orgs","repos_url":"https://api.github.com/users/ajayns/repos","events_url":"https://api.github.com/users/ajayns/events{/privacy}","received_events_url":"https://api.github.com/users/ajayns/received_events","type":"User","site_admin":false},"body":"The general convention is to use the `dot` notation, while `bracket` is only used in the case where there are special characters in the object property name. ","created_at":"2018-08-03T04:32:16Z","updated_at":"2018-08-03T04:32:17Z","html_url":"https://github.com/collective/gatsby-source-plone/pull/143#discussion_r207438293","pull_request_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/comments/207438293"},"html":{"href":"https://github.com/collective/gatsby-source-plone/pull/143#discussion_r207438293"},"pull_request":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143"}},"in_reply_to_id":207228704},"pull_request":{"url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143","id":205419292,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDE5Mjky","html_url":"https://github.com/collective/gatsby-source-plone/pull/143","diff_url":"https://github.com/collective/gatsby-source-plone/pull/143.diff","patch_url":"https://github.com/collective/gatsby-source-plone/pull/143.patch","issue_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/143","number":143,"state":"closed","locked":false,"title":"Refactor to support incremental gatsby builds [fixes #136]","user":{"login":"datakurre","id":160447,"node_id":"MDQ6VXNlcjE2MDQ0Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/160447?v=4","gravatar_id":"","url":"https://api.github.com/users/datakurre","html_url":"https://github.com/datakurre","followers_url":"https://api.github.com/users/datakurre/followers","following_url":"https://api.github.com/users/datakurre/following{/other_user}","gists_url":"https://api.github.com/users/datakurre/gists{/gist_id}","starred_url":"https://api.github.com/users/datakurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datakurre/subscriptions","organizations_url":"https://api.github.com/users/datakurre/orgs","repos_url":"https://api.github.com/users/datakurre/repos","events_url":"https://api.github.com/users/datakurre/events{/privacy}","received_events_url":"https://api.github.com/users/datakurre/received_events","type":"User","site_admin":false},"body":"Breaking changes:\r\n\r\n* use of `parent` and `children` attributes was corrected;\r\n  containers should now list their contents by using `items` attribute\r\n* *expansions* option has been removed\r\n* *showLog* option has been replaced with *logLevel*\r\n\r\nNew features:\r\n\r\n* Support for incremantal builds (updated content is updated,\r\n  added content is added and removed content is removed)  [fixes #136];\r\n  Note that gatsby does not clear static-folder between builds,\r\n  so while removing content hides it, it may not completely\r\n  remove it \r\n\r\n* New default nodes *PloneBreadcrumbs* and *PloneNavigation*\r\n  to be searched with *_path* for rendering and incrementally\r\n  updating breadcrumbs and navigation in gatsby site\r\n\r\n* *logLevel* option to control plugin login;\r\n  accepts a string value of *DEBUG*, *INFO*, *WARNING*, *ERROR* or\r\n  *CRITICAL*;\r\n  empty or invalid value mutes logging\r\n\r\nOther changes:\r\n\r\n* BFS traversal option (was default) for fetching Plone\r\n  content tree has been replaced with using search endpoint\r\n  only [fixes #134], because incremental build could only\r\n  be supported with search endpoint\r\n\r\n* Streamlined build to minimize itaration over data [fixes #118]\r\n\r\n* `normalize.js` was renamed to `utils.js` with more gatsby\r\n  independent code (to be tested with jest)\r\n\r\n* expanding file attributes for content types with images has been moved\r\n  into a `onCreateNode` \"transform\" and created remote file nodes are\r\n  saved as node `children`\r\n\r\n* [x] tests\r\n* [ ] docs","created_at":"2018-08-01T13:08:02Z","updated_at":"2018-08-03T04:32:17Z","closed_at":"2018-08-02T21:37:04Z","merged_at":"2018-08-02T21:37:04Z","merge_commit_sha":"64e87cb47511a5061c99f935195878bf43285ddc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143/commits","review_comments_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143/comments","review_comment_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/143/comments","statuses_url":"https://api.github.com/repos/collective/gatsby-source-plone/statuses/2432c58223fa3265b768c9de4219c2f4450126f8","head":{"label":"collective:feature-incremental-builds","ref":"feature-incremental-builds","sha":"2432c58223fa3265b768c9de4219c2f4450126f8","user":{"login":"collective","id":362867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mjg2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/362867?v=4","gravatar_id":"","url":"https://api.github.com/users/collective","html_url":"https://github.com/collective","followers_url":"https://api.github.com/users/collective/followers","following_url":"https://api.github.com/users/collective/following{/other_user}","gists_url":"https://api.github.com/users/collective/gists{/gist_id}","starred_url":"https://api.github.com/users/collective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collective/subscriptions","organizations_url":"https://api.github.com/users/collective/orgs","repos_url":"https://api.github.com/users/collective/repos","events_url":"https://api.github.com/users/collective/events{/privacy}","received_events_url":"https://api.github.com/users/collective/received_events","type":"Organization","site_admin":false},"repo":{"id":113101944,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMxMDE5NDQ=","name":"gatsby-source-plone","full_name":"collective/gatsby-source-plone","owner":{"login":"collective","id":362867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mjg2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/362867?v=4","gravatar_id":"","url":"https://api.github.com/users/collective","html_url":"https://github.com/collective","followers_url":"https://api.github.com/users/collective/followers","following_url":"https://api.github.com/users/collective/following{/other_user}","gists_url":"https://api.github.com/users/collective/gists{/gist_id}","starred_url":"https://api.github.com/users/collective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collective/subscriptions","organizations_url":"https://api.github.com/users/collective/orgs","repos_url":"https://api.github.com/users/collective/repos","events_url":"https://api.github.com/users/collective/events{/privacy}","received_events_url":"https://api.github.com/users/collective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/collective/gatsby-source-plone","description":"Source plugin for pulling data into Gatsby from Plone sites","fork":false,"url":"https://api.github.com/repos/collective/gatsby-source-plone","forks_url":"https://api.github.com/repos/collective/gatsby-source-plone/forks","keys_url":"https://api.github.com/repos/collective/gatsby-source-plone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/collective/gatsby-source-plone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/collective/gatsby-source-plone/teams","hooks_url":"https://api.github.com/repos/collective/gatsby-source-plone/hooks","issue_events_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/events{/number}","events_url":"https://api.github.com/repos/collective/gatsby-source-plone/events","assignees_url":"https://api.github.com/repos/collective/gatsby-source-plone/assignees{/user}","branches_url":"https://api.github.com/repos/collective/gatsby-source-plone/branches{/branch}","tags_url":"https://api.github.com/repos/collective/gatsby-source-plone/tags","blobs_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/refs{/sha}","trees_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/collective/gatsby-source-plone/statuses/{sha}","languages_url":"https://api.github.com/repos/collective/gatsby-source-plone/languages","stargazers_url":"https://api.github.com/repos/collective/gatsby-source-plone/stargazers","contributors_url":"https://api.github.com/repos/collective/gatsby-source-plone/contributors","subscribers_url":"https://api.github.com/repos/collective/gatsby-source-plone/subscribers","subscription_url":"https://api.github.com/repos/collective/gatsby-source-plone/subscription","commits_url":"https://api.github.com/repos/collective/gatsby-source-plone/commits{/sha}","git_commits_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/commits{/sha}","comments_url":"https://api.github.com/repos/collective/gatsby-source-plone/comments{/number}","issue_comment_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/comments{/number}","contents_url":"https://api.github.com/repos/collective/gatsby-source-plone/contents/{+path}","compare_url":"https://api.github.com/repos/collective/gatsby-source-plone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/collective/gatsby-source-plone/merges","archive_url":"https://api.github.com/repos/collective/gatsby-source-plone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/collective/gatsby-source-plone/downloads","issues_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues{/number}","pulls_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls{/number}","milestones_url":"https://api.github.com/repos/collective/gatsby-source-plone/milestones{/number}","notifications_url":"https://api.github.com/repos/collective/gatsby-source-plone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/collective/gatsby-source-plone/labels{/name}","releases_url":"https://api.github.com/repos/collective/gatsby-source-plone/releases{/id}","deployments_url":"https://api.github.com/repos/collective/gatsby-source-plone/deployments","created_at":"2017-12-04T22:23:19Z","updated_at":"2018-08-02T21:37:06Z","pushed_at":"2018-08-02T21:50:50Z","git_url":"git://github.com/collective/gatsby-source-plone.git","ssh_url":"git@github.com:collective/gatsby-source-plone.git","clone_url":"https://github.com/collective/gatsby-source-plone.git","svn_url":"https://github.com/collective/gatsby-source-plone","homepage":null,"size":1688,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":13,"watchers":7,"default_branch":"master"}},"base":{"label":"collective:master","ref":"master","sha":"b9eb0c2e05309103bfdf43441dfba3954b533909","user":{"login":"collective","id":362867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mjg2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/362867?v=4","gravatar_id":"","url":"https://api.github.com/users/collective","html_url":"https://github.com/collective","followers_url":"https://api.github.com/users/collective/followers","following_url":"https://api.github.com/users/collective/following{/other_user}","gists_url":"https://api.github.com/users/collective/gists{/gist_id}","starred_url":"https://api.github.com/users/collective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collective/subscriptions","organizations_url":"https://api.github.com/users/collective/orgs","repos_url":"https://api.github.com/users/collective/repos","events_url":"https://api.github.com/users/collective/events{/privacy}","received_events_url":"https://api.github.com/users/collective/received_events","type":"Organization","site_admin":false},"repo":{"id":113101944,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMxMDE5NDQ=","name":"gatsby-source-plone","full_name":"collective/gatsby-source-plone","owner":{"login":"collective","id":362867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mjg2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/362867?v=4","gravatar_id":"","url":"https://api.github.com/users/collective","html_url":"https://github.com/collective","followers_url":"https://api.github.com/users/collective/followers","following_url":"https://api.github.com/users/collective/following{/other_user}","gists_url":"https://api.github.com/users/collective/gists{/gist_id}","starred_url":"https://api.github.com/users/collective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collective/subscriptions","organizations_url":"https://api.github.com/users/collective/orgs","repos_url":"https://api.github.com/users/collective/repos","events_url":"https://api.github.com/users/collective/events{/privacy}","received_events_url":"https://api.github.com/users/collective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/collective/gatsby-source-plone","description":"Source plugin for pulling data into Gatsby from Plone sites","fork":false,"url":"https://api.github.com/repos/collective/gatsby-source-plone","forks_url":"https://api.github.com/repos/collective/gatsby-source-plone/forks","keys_url":"https://api.github.com/repos/collective/gatsby-source-plone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/collective/gatsby-source-plone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/collective/gatsby-source-plone/teams","hooks_url":"https://api.github.com/repos/collective/gatsby-source-plone/hooks","issue_events_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/events{/number}","events_url":"https://api.github.com/repos/collective/gatsby-source-plone/events","assignees_url":"https://api.github.com/repos/collective/gatsby-source-plone/assignees{/user}","branches_url":"https://api.github.com/repos/collective/gatsby-source-plone/branches{/branch}","tags_url":"https://api.github.com/repos/collective/gatsby-source-plone/tags","blobs_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/refs{/sha}","trees_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/collective/gatsby-source-plone/statuses/{sha}","languages_url":"https://api.github.com/repos/collective/gatsby-source-plone/languages","stargazers_url":"https://api.github.com/repos/collective/gatsby-source-plone/stargazers","contributors_url":"https://api.github.com/repos/collective/gatsby-source-plone/contributors","subscribers_url":"https://api.github.com/repos/collective/gatsby-source-plone/subscribers","subscription_url":"https://api.github.com/repos/collective/gatsby-source-plone/subscription","commits_url":"https://api.github.com/repos/collective/gatsby-source-plone/commits{/sha}","git_commits_url":"https://api.github.com/repos/collective/gatsby-source-plone/git/commits{/sha}","comments_url":"https://api.github.com/repos/collective/gatsby-source-plone/comments{/number}","issue_comment_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues/comments{/number}","contents_url":"https://api.github.com/repos/collective/gatsby-source-plone/contents/{+path}","compare_url":"https://api.github.com/repos/collective/gatsby-source-plone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/collective/gatsby-source-plone/merges","archive_url":"https://api.github.com/repos/collective/gatsby-source-plone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/collective/gatsby-source-plone/downloads","issues_url":"https://api.github.com/repos/collective/gatsby-source-plone/issues{/number}","pulls_url":"https://api.github.com/repos/collective/gatsby-source-plone/pulls{/number}","milestones_url":"https://api.github.com/repos/collective/gatsby-source-plone/milestones{/number}","notifications_url":"https://api.github.com/repos/collective/gatsby-source-plone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/collective/gatsby-source-plone/labels{/name}","releases_url":"https://api.github.com/repos/collective/gatsby-source-plone/releases{/id}","deployments_url":"https://api.github.com/repos/collective/gatsby-source-plone/deployments","created_at":"2017-12-04T22:23:19Z","updated_at":"2018-08-02T21:37:06Z","pushed_at":"2018-08-02T21:50:50Z","git_url":"git://github.com/collective/gatsby-source-plone.git","ssh_url":"git@github.com:collective/gatsby-source-plone.git","clone_url":"https://github.com/collective/gatsby-source-plone.git","svn_url":"https://github.com/collective/gatsby-source-plone","homepage":null,"size":1688,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":13,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143"},"html":{"href":"https://github.com/collective/gatsby-source-plone/pull/143"},"issue":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/issues/143"},"comments":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/collective/gatsby-source-plone/statuses/2432c58223fa3265b768c9de4219c2f4450126f8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ajayns"}}