{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9019","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9019/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9019/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9019/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/9019","id":299316388,"number":9019,"title":"Integrate Gutenberg data API subscription","user":{"login":"IreneStr","id":17744553,"avatar_url":"https://avatars3.githubusercontent.com/u/17744553?v=4","gravatar_id":"","url":"https://api.github.com/users/IreneStr","html_url":"https://github.com/IreneStr","followers_url":"https://api.github.com/users/IreneStr/followers","following_url":"https://api.github.com/users/IreneStr/following{/other_user}","gists_url":"https://api.github.com/users/IreneStr/gists{/gist_id}","starred_url":"https://api.github.com/users/IreneStr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IreneStr/subscriptions","organizations_url":"https://api.github.com/users/IreneStr/orgs","repos_url":"https://api.github.com/users/IreneStr/repos","events_url":"https://api.github.com/users/IreneStr/events{/privacy}","received_events_url":"https://api.github.com/users/IreneStr/received_events","type":"User","site_admin":false},"labels":[{"id":661106481,"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/frontend","name":"frontend","color":"5319e7","default":false},{"id":661781864,"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/queue%20%E2%98%85","name":"queue ★","color":"78BDF2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T11:24:45Z","updated_at":"2018-02-22T11:45:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Create a new file called data.js with the following functionality:\r\n\r\n## Subscribe to Gutenberg data API\r\nWe should know when the store has been changed. The subscription callback should be debounced (500ms?). If so, we should compare for each data point we need (see below) whether it has been changed. If so, the data object should be updated. \r\n\r\n### NB: Make sure everything works on first page load as well.\r\n\r\n## Gutenberg data object \r\nCreate a Gutenberg data object that can be used for the analyses. \r\n\r\nThe object should contain:\r\n```\r\n{\r\ncontent:\r\ntitle:\r\nslug:\r\n}\r\n```\r\n\r\npostDataCollector.getData should be able to use this object. It should be a replacement of an input element change (in the case of classic editor) when Gutenberg is active.\r\n\r\n## Intended flow (for context)\r\nsubscribe on store changes in Gutenberg data API --> throttle/debounce/filter --> YoastSEO.js --calculates--> analysis results --> UI"},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/367655997","html_url":"https://github.com/Yoast/wordpress-seo/issues/9019#issuecomment-367655997","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9019","id":367655997,"user":{"login":"Xyfi","id":5389513,"avatar_url":"https://avatars3.githubusercontent.com/u/5389513?v=4","gravatar_id":"","url":"https://api.github.com/users/Xyfi","html_url":"https://github.com/Xyfi","followers_url":"https://api.github.com/users/Xyfi/followers","following_url":"https://api.github.com/users/Xyfi/following{/other_user}","gists_url":"https://api.github.com/users/Xyfi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xyfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xyfi/subscriptions","organizations_url":"https://api.github.com/users/Xyfi/orgs","repos_url":"https://api.github.com/users/Xyfi/repos","events_url":"https://api.github.com/users/Xyfi/events{/privacy}","received_events_url":"https://api.github.com/users/Xyfi/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T11:45:04Z","updated_at":"2018-02-22T11:45:04Z","author_association":"CONTRIBUTOR","body":"![gutenbergdataflow](https://user-images.githubusercontent.com/5389513/36536700-32eee6e6-17ce-11e8-874f-a9538edb7e98.png)\r\n"}}
{"actor":{"display_login":"Xyfi"}}