{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27893","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27893/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27893/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27893/events","html_url":"https://github.com/Automattic/wp-calypso/pull/27893","id":370864619,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNDQ0ODAz","number":27893,"title":"Post Editor: Wire up the dialog opt-in button to set the blog's editor to Gutenberg. [WIP]","user":{"login":"kwight","id":349751,"node_id":"MDQ6VXNlcjM0OTc1MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/349751?v=4","gravatar_id":"","url":"https://api.github.com/users/kwight","html_url":"https://github.com/kwight","followers_url":"https://api.github.com/users/kwight/followers","following_url":"https://api.github.com/users/kwight/following{/other_user}","gists_url":"https://api.github.com/users/kwight/gists{/gist_id}","starred_url":"https://api.github.com/users/kwight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwight/subscriptions","organizations_url":"https://api.github.com/users/kwight/orgs","repos_url":"https://api.github.com/users/kwight/repos","events_url":"https://api.github.com/users/kwight/events{/privacy}","received_events_url":"https://api.github.com/users/kwight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-17T01:45:52Z","updated_at":"2018-10-17T01:45:53Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/27893","html_url":"https://github.com/Automattic/wp-calypso/pull/27893","diff_url":"https://github.com/Automattic/wp-calypso/pull/27893.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/27893.patch"},"body":"Requires #27892 .\r\n\r\nThis PR allows the opt-in button to set the site's editor to Gutenberg. It depends on and is branched from #27892 , so that needs to be merged first.\r\n\r\nClicking the \"Try the new editor\" button will dispatch `EDITOR_TYPE_SET`, which in turn updates the site's editor to Gutenberg over the `/sites/:site/gutenberg` endpoint, and sets `state.sites.items[xxxxxxxxx].editor` to `gutenberg`.\r\n\r\n<img width=\"1196\" alt=\"screen shot 2018-10-16 at 6 39 41 pm\" src=\"https://user-images.githubusercontent.com/349751/47056879-34ad0a80-d173-11e8-9672-6b1c4087f00d.png\">\r\n\r\nTesting instructions\r\n* On this branch, load `/post/:site`.\r\n* Click \"Learn more\" in the sidebar's opt-in visual.\r\n* Click \"Try the new editor\".\r\n* Verify a successful API call to `/sites/:site/gutenberg`, and verify the `enable-gutenberg` blog sticker is now applied to the site.\r\n* Verify the update in the store: `state.sites.items[xxxxxxxxx].editor === \"gutenberg\"`."},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/430460094","html_url":"https://github.com/Automattic/wp-calypso/pull/27893#issuecomment-430460094","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/27893","id":430460094,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDQ2MDA5NA==","user":{"login":"matticbot","id":18333116,"node_id":"MDQ6VXNlcjE4MzMzMTE2","avatar_url":"https://avatars2.githubusercontent.com/u/18333116?v=4","gravatar_id":"","url":"https://api.github.com/users/matticbot","html_url":"https://github.com/matticbot","followers_url":"https://api.github.com/users/matticbot/followers","following_url":"https://api.github.com/users/matticbot/following{/other_user}","gists_url":"https://api.github.com/users/matticbot/gists{/gist_id}","starred_url":"https://api.github.com/users/matticbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matticbot/subscriptions","organizations_url":"https://api.github.com/users/matticbot/orgs","repos_url":"https://api.github.com/users/matticbot/repos","events_url":"https://api.github.com/users/matticbot/events{/privacy}","received_events_url":"https://api.github.com/users/matticbot/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T01:45:53Z","updated_at":"2018-10-17T01:45:53Z","author_association":"NONE","body":"Test live: https://calypso.live/?branch=update/gutenberg-opt-in"}}
{"actor":{"display_login":"matticbot"}}