{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/6814","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6814/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6814/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6814/events","html_url":"https://github.com/WordPress/gutenberg/pull/6814","id":324317024,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4OTU1MTgz","number":6814,"title":"Adds support for returning a list of blocks from a raw transform","user":{"login":"notnownikki","id":3314354,"node_id":"MDQ6VXNlcjMzMTQzNTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3314354?v=4","gravatar_id":"","url":"https://api.github.com/users/notnownikki","html_url":"https://github.com/notnownikki","followers_url":"https://api.github.com/users/notnownikki/followers","following_url":"https://api.github.com/users/notnownikki/following{/other_user}","gists_url":"https://api.github.com/users/notnownikki/gists{/gist_id}","starred_url":"https://api.github.com/users/notnownikki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notnownikki/subscriptions","organizations_url":"https://api.github.com/users/notnownikki/orgs","repos_url":"https://api.github.com/users/notnownikki/repos","events_url":"https://api.github.com/users/notnownikki/events{/privacy}","received_events_url":"https://api.github.com/users/notnownikki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-18T08:29:13Z","updated_at":"2018-06-01T13:33:02Z","closed_at":"2018-05-30T09:41:05Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/6814","html_url":"https://github.com/WordPress/gutenberg/pull/6814","diff_url":"https://github.com/WordPress/gutenberg/pull/6814.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/6814.patch"},"body":"## Description\r\n\r\ntransforms with a `raw` type only supported a single node to a single block,\r\nbut we may need to convert raw content into a list of blocks.\r\n\r\nIf a raw transform returned a list of blocks, it would cause a crash in the\r\nfactory, because we expect each element to be a block, not a list of blocks,\r\nso this change flattens the list returned from `rawHandler`.\r\n\r\n## How has this been tested?\r\n\r\nModify an existing block with a raw transform to return its block in an array,\r\ncheck that the transform still works.\r\n\r\n## Types of changes\r\nNew feature\r\n\r\n## Checklist:\r\n- [ ] My code is tested.\r\n- [ ] My code follows the WordPress code style. <!-- Check code: `npm run lint`, Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/ -->\r\n- [ ] My code follows the accessibility standards. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->\r\n- [ ] My code has proper inline documentation. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ -->\r\n"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/393881660","html_url":"https://github.com/WordPress/gutenberg/pull/6814#issuecomment-393881660","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6814","id":393881660,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzg4MTY2MA==","user":{"login":"notnownikki","id":3314354,"node_id":"MDQ6VXNlcjMzMTQzNTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3314354?v=4","gravatar_id":"","url":"https://api.github.com/users/notnownikki","html_url":"https://github.com/notnownikki","followers_url":"https://api.github.com/users/notnownikki/followers","following_url":"https://api.github.com/users/notnownikki/following{/other_user}","gists_url":"https://api.github.com/users/notnownikki/gists{/gist_id}","starred_url":"https://api.github.com/users/notnownikki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notnownikki/subscriptions","organizations_url":"https://api.github.com/users/notnownikki/orgs","repos_url":"https://api.github.com/users/notnownikki/repos","events_url":"https://api.github.com/users/notnownikki/events{/privacy}","received_events_url":"https://api.github.com/users/notnownikki/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T13:33:02Z","updated_at":"2018-06-01T13:33:02Z","author_association":"CONTRIBUTOR","body":"@iseulde although I just saw there was a change recently to init the editor just with a post id, so this becomes even more difficult to get working."}}
{"actor":{"display_login":"notnownikki"}}