{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/12214","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12214/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12214/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12214/events","html_url":"https://github.com/WordPress/gutenberg/pull/12214","id":383478347,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyOTMzOTQ1","number":12214,"title":"Fix getSelectedBlockClientId selector","user":{"login":"nosolosw","id":583546,"node_id":"MDQ6VXNlcjU4MzU0Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/583546?v=4","gravatar_id":"","url":"https://api.github.com/users/nosolosw","html_url":"https://github.com/nosolosw","followers_url":"https://api.github.com/users/nosolosw/followers","following_url":"https://api.github.com/users/nosolosw/following{/other_user}","gists_url":"https://api.github.com/users/nosolosw/gists{/gist_id}","starred_url":"https://api.github.com/users/nosolosw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosolosw/subscriptions","organizations_url":"https://api.github.com/users/nosolosw/orgs","repos_url":"https://api.github.com/users/nosolosw/repos","events_url":"https://api.github.com/users/nosolosw/events{/privacy}","received_events_url":"https://api.github.com/users/nosolosw/received_events","type":"User","site_admin":false},"labels":[{"id":531680823,"node_id":"MDU6TGFiZWw1MzE2ODA4MjM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Bug","name":"[Type] Bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"nosolosw","id":583546,"node_id":"MDQ6VXNlcjU4MzU0Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/583546?v=4","gravatar_id":"","url":"https://api.github.com/users/nosolosw","html_url":"https://github.com/nosolosw","followers_url":"https://api.github.com/users/nosolosw/followers","following_url":"https://api.github.com/users/nosolosw/following{/other_user}","gists_url":"https://api.github.com/users/nosolosw/gists{/gist_id}","starred_url":"https://api.github.com/users/nosolosw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosolosw/subscriptions","organizations_url":"https://api.github.com/users/nosolosw/orgs","repos_url":"https://api.github.com/users/nosolosw/repos","events_url":"https://api.github.com/users/nosolosw/events{/privacy}","received_events_url":"https://api.github.com/users/nosolosw/received_events","type":"User","site_admin":false},"assignees":[{"login":"nosolosw","id":583546,"node_id":"MDQ6VXNlcjU4MzU0Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/583546?v=4","gravatar_id":"","url":"https://api.github.com/users/nosolosw","html_url":"https://github.com/nosolosw","followers_url":"https://api.github.com/users/nosolosw/followers","following_url":"https://api.github.com/users/nosolosw/following{/other_user}","gists_url":"https://api.github.com/users/nosolosw/gists{/gist_id}","starred_url":"https://api.github.com/users/nosolosw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosolosw/subscriptions","organizations_url":"https://api.github.com/users/nosolosw/orgs","repos_url":"https://api.github.com/users/nosolosw/repos","events_url":"https://api.github.com/users/nosolosw/events{/privacy}","received_events_url":"https://api.github.com/users/nosolosw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/78","html_url":"https://github.com/WordPress/gutenberg/milestone/78","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/78/labels","id":3832064,"node_id":"MDk6TWlsZXN0b25lMzgzMjA2NA==","number":78,"title":"4.6","description":"Pre 5.0","creator":{"login":"mtias","id":548849,"node_id":"MDQ6VXNlcjU0ODg0OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/548849?v=4","gravatar_id":"","url":"https://api.github.com/users/mtias","html_url":"https://github.com/mtias","followers_url":"https://api.github.com/users/mtias/followers","following_url":"https://api.github.com/users/mtias/following{/other_user}","gists_url":"https://api.github.com/users/mtias/gists{/gist_id}","starred_url":"https://api.github.com/users/mtias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtias/subscriptions","organizations_url":"https://api.github.com/users/mtias/orgs","repos_url":"https://api.github.com/users/mtias/repos","events_url":"https://api.github.com/users/mtias/events{/privacy}","received_events_url":"https://api.github.com/users/mtias/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":31,"state":"open","created_at":"2018-11-19T15:45:15Z","updated_at":"2018-11-26T17:40:17Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-11-22T10:46:22Z","updated_at":"2018-11-26T19:29:28Z","closed_at":"2018-11-22T14:19:24Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/12214","html_url":"https://github.com/WordPress/gutenberg/pull/12214","diff_url":"https://github.com/WordPress/gutenberg/pull/12214.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/12214.patch"},"body":"Addresses https://github.com/WordPress/gutenberg/issues/12002\r\nSuperseedes https://github.com/WordPress/gutenberg/pull/12209 and https://github.com/WordPress/gutenberg/pull/12052 that tried to fix this only for the `BlockSettingsMenu` component.\r\n\r\nAt the moment, we don't have a way to clear or update block selection for `UNDO` / `REDO` actions. This is problematic for every client that uses `getSelectedBlockClientId` because they may end up with a block that no longer exist in the editor.\r\n\r\nBy inverting the dependencies between `getSelectedBlockClientId`  and `getSelectedBlock` we make sure we always return a valid clientId in `getSelectedBlockClientId`.\r\n\r\nWe still have to fix the `UNDO`/`REDO` problem, but this patch gives us time to think while the external API works as expected.\r\n"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/441766268","html_url":"https://github.com/WordPress/gutenberg/pull/12214#issuecomment-441766268","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12214","id":441766268,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc2NjI2OA==","user":{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T19:29:28Z","updated_at":"2018-11-26T19:29:28Z","author_association":"CONTRIBUTOR","body":"Just created this https://github.com/WordPress/gutenberg/issues/12327 thanks @aduth for the reminder."}}
{"actor":{"display_login":"youknowriad"}}