{"action":"created","comment":{"url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments/180130282","pull_request_review_id":110463678,"id":180130282,"diff_hunk":"@@ -152,6 +154,10 @@ class RichTextEditor extends React.Component {\n     if (this.props.fetchAnswers) {\n       this.updatePipedValues(this.state.editorState);\n     }\n+\n+    if (this.props.autoFocus) {\n+      this.focus();\n+    }","path":"src/components/RichTextEditor/index.js","position":27,"original_position":27,"commit_id":"d93656966ea76a955499358ab7e519615f78c7f5","original_commit_id":"d93656966ea76a955499358ab7e519615f78c7f5","user":{"login":"WickyNilliams","id":1091390,"avatar_url":"https://avatars3.githubusercontent.com/u/1091390?v=4","gravatar_id":"","url":"https://api.github.com/users/WickyNilliams","html_url":"https://github.com/WickyNilliams","followers_url":"https://api.github.com/users/WickyNilliams/followers","following_url":"https://api.github.com/users/WickyNilliams/following{/other_user}","gists_url":"https://api.github.com/users/WickyNilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/WickyNilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WickyNilliams/subscriptions","organizations_url":"https://api.github.com/users/WickyNilliams/orgs","repos_url":"https://api.github.com/users/WickyNilliams/repos","events_url":"https://api.github.com/users/WickyNilliams/events{/privacy}","received_events_url":"https://api.github.com/users/WickyNilliams/received_events","type":"User","site_admin":false},"body":"If Draft accepts an autoFocus prop itself, what's the need for this? ","created_at":"2018-04-09T15:18:18Z","updated_at":"2018-04-09T15:26:41Z","html_url":"https://github.com/ONSdigital/eq-author/pull/334#discussion_r180130282","pull_request_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments/180130282"},"html":{"href":"https://github.com/ONSdigital/eq-author/pull/334#discussion_r180130282"},"pull_request":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334"}}},"pull_request":{"url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334","id":179128501,"html_url":"https://github.com/ONSdigital/eq-author/pull/334","diff_url":"https://github.com/ONSdigital/eq-author/pull/334.diff","patch_url":"https://github.com/ONSdigital/eq-author/pull/334.patch","issue_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/334","number":334,"state":"open","locked":false,"title":"Move sections to own page","user":{"login":"hamishtaplin","id":930398,"avatar_url":"https://avatars0.githubusercontent.com/u/930398?v=4","gravatar_id":"","url":"https://api.github.com/users/hamishtaplin","html_url":"https://github.com/hamishtaplin","followers_url":"https://api.github.com/users/hamishtaplin/followers","following_url":"https://api.github.com/users/hamishtaplin/following{/other_user}","gists_url":"https://api.github.com/users/hamishtaplin/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishtaplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishtaplin/subscriptions","organizations_url":"https://api.github.com/users/hamishtaplin/orgs","repos_url":"https://api.github.com/users/hamishtaplin/repos","events_url":"https://api.github.com/users/hamishtaplin/events{/privacy}","received_events_url":"https://api.github.com/users/hamishtaplin/received_events","type":"User","site_admin":false},"body":"### What is the context of this PR?\r\n\r\n[Trello card](https://trello.com/c/SAkVHdop/398-adding-section-onto-their-own-page)\r\n\r\n### How to review \r\n\r\n1. Open a questionnaire\r\n2. Confirm navigation between pages/sections\r\n3. Confirm deleting sections works as expected\r\n4. Check auto focus works as expected\r\n","created_at":"2018-04-03T15:05:24Z","updated_at":"2018-04-09T15:26:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2371b69e8b91eacee72f4abca4613f47e52cbc9d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/334/comments","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/d93656966ea76a955499358ab7e519615f78c7f5","head":{"label":"ONSdigital:move-sections-to-own-page","ref":"move-sections-to-own-page","sha":"d93656966ea76a955499358ab7e519615f78c7f5","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82051674,"name":"eq-author","full_name":"ONSdigital/eq-author","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/eq-author","description":"Author application","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-author","forks_url":"https://api.github.com/repos/ONSdigital/eq-author/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-author/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-author/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-author/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-author/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-author/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-author/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-author/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-author/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-author/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-author/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-author/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-author/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-author/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-author/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-author/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-author/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-author/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-author/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-author/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-author/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-author/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-author/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-author/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-author/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-author/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-author/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-author/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-author/deployments","created_at":"2017-02-15T11:06:14Z","updated_at":"2018-04-09T12:32:34Z","pushed_at":"2018-04-09T14:54:49Z","git_url":"git://github.com/ONSdigital/eq-author.git","ssh_url":"git@github.com:ONSdigital/eq-author.git","clone_url":"https://github.com/ONSdigital/eq-author.git","svn_url":"https://github.com/ONSdigital/eq-author","homepage":"https://staging-author.dev.eq.ons.digital/","size":4004,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"ca7553f3924dcc40b05baa54f1da6bb71bfb5f8e","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82051674,"name":"eq-author","full_name":"ONSdigital/eq-author","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/eq-author","description":"Author application","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-author","forks_url":"https://api.github.com/repos/ONSdigital/eq-author/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-author/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-author/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-author/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-author/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-author/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-author/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-author/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-author/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-author/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-author/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-author/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-author/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-author/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-author/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-author/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-author/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-author/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-author/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-author/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-author/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-author/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-author/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-author/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-author/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-author/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-author/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-author/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-author/deployments","created_at":"2017-02-15T11:06:14Z","updated_at":"2018-04-09T12:32:34Z","pushed_at":"2018-04-09T14:54:49Z","git_url":"git://github.com/ONSdigital/eq-author.git","ssh_url":"git@github.com:ONSdigital/eq-author.git","clone_url":"https://github.com/ONSdigital/eq-author.git","svn_url":"https://github.com/ONSdigital/eq-author","homepage":"https://staging-author.dev.eq.ons.digital/","size":4004,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334"},"html":{"href":"https://github.com/ONSdigital/eq-author/pull/334"},"issue":{"href":"https://api.github.com/repos/ONSdigital/eq-author/issues/334"},"comments":{"href":"https://api.github.com/repos/ONSdigital/eq-author/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/eq-author/statuses/d93656966ea76a955499358ab7e519615f78c7f5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"WickyNilliams"}}