{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10686","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10686/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10686/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10686/events","html_url":"https://github.com/Automattic/wp-calypso/pull/10686","id":201235499,"number":10686,"title":"Prevent user accessing paths on domain only site","user":{"login":"yurynix","id":326402,"avatar_url":"https://avatars.githubusercontent.com/u/326402?v=3","gravatar_id":"","url":"https://api.github.com/users/yurynix","html_url":"https://github.com/yurynix","followers_url":"https://api.github.com/users/yurynix/followers","following_url":"https://api.github.com/users/yurynix/following{/other_user}","gists_url":"https://api.github.com/users/yurynix/gists{/gist_id}","starred_url":"https://api.github.com/users/yurynix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurynix/subscriptions","organizations_url":"https://api.github.com/users/yurynix/orgs","repos_url":"https://api.github.com/users/yurynix/repos","events_url":"https://api.github.com/users/yurynix/events{/privacy}","received_events_url":"https://api.github.com/users/yurynix/received_events","type":"User","site_admin":false},"labels":[{"id":289076660,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Domains","name":"Domains","color":"006b75","default":false},{"id":285010030,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Ready%20to%20Merge","name":"[Status] Ready to Merge","color":"d4fb79","default":false}],"state":"closed","locked":false,"assignee":{"login":"yurynix","id":326402,"avatar_url":"https://avatars.githubusercontent.com/u/326402?v=3","gravatar_id":"","url":"https://api.github.com/users/yurynix","html_url":"https://github.com/yurynix","followers_url":"https://api.github.com/users/yurynix/followers","following_url":"https://api.github.com/users/yurynix/following{/other_user}","gists_url":"https://api.github.com/users/yurynix/gists{/gist_id}","starred_url":"https://api.github.com/users/yurynix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurynix/subscriptions","organizations_url":"https://api.github.com/users/yurynix/orgs","repos_url":"https://api.github.com/users/yurynix/repos","events_url":"https://api.github.com/users/yurynix/events{/privacy}","received_events_url":"https://api.github.com/users/yurynix/received_events","type":"User","site_admin":false},"assignees":[{"login":"yurynix","id":326402,"avatar_url":"https://avatars.githubusercontent.com/u/326402?v=3","gravatar_id":"","url":"https://api.github.com/users/yurynix","html_url":"https://github.com/yurynix","followers_url":"https://api.github.com/users/yurynix/followers","following_url":"https://api.github.com/users/yurynix/following{/other_user}","gists_url":"https://api.github.com/users/yurynix/gists{/gist_id}","starred_url":"https://api.github.com/users/yurynix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurynix/subscriptions","organizations_url":"https://api.github.com/users/yurynix/orgs","repos_url":"https://api.github.com/users/yurynix/repos","events_url":"https://api.github.com/users/yurynix/events{/privacy}","received_events_url":"https://api.github.com/users/yurynix/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-01-17T10:29:01Z","updated_at":"2017-01-17T18:22:25Z","closed_at":"2017-01-17T18:22:16Z","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/10686","html_url":"https://github.com/Automattic/wp-calypso/pull/10686","diff_url":"https://github.com/Automattic/wp-calypso/pull/10686.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/10686.patch"},"body":"For a domain only site, we allow users to visit only certain parts of site management.\r\n \r\nBased on @scruffian's work [on the prototype](https://github.com/Automattic/wp-calypso/pull/10427/files#diff-f11e4a0f3fa89aa5176d3244e323a240R176)\r\n\r\n#### Testing instructions\r\n  \r\n1. Run `git checkout add/redirect-not-in-whitelist-for-domain-only-site` and start your server, or open a [live branch](https://calypso.live/?branch=add/redirect-not-in-whitelist-for-domain-only-site)\r\n2. Get to a state where you have a domain only site ( via the [prototype](https://github.com/Automattic/wp-calypso/pull/10427), or otherwise )\r\n3. Open the [http://calypso.localhost:3000/domains/manage/myyury.wordpress.com](http://calypso.localhost:3000/domains/manage/myyury.wordpress.com) where `myyury.wordpress.com` is the domain only site.\r\n4. Check that you are redirected back to that page when you try visit pages that are not:\r\n```\r\n\t'/domains/manage/',\r\n\t'/checkout/',\r\n```\r\n5. Validate cold start as well, by, for example visiting directly the disallowed links such as: `http://calypso.localhost:3000/design/myyury.wordpress.com`\r\n  \r\n \r\n#### Reviews\r\n  \r\n- [x] Code\r\n- [ ] Product\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/273253707","html_url":"https://github.com/Automattic/wp-calypso/pull/10686#issuecomment-273253707","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/10686","id":273253707,"user":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T18:22:25Z","updated_at":"2017-01-17T18:22:25Z","body":"I'm more than happy :)"}}
{"actor":{"display_login":"gziolo"}}