{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15722","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15722/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15722/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15722/events","html_url":"https://github.com/Automattic/wp-calypso/pull/15722","id":239787069,"number":15722,"title":"Added logic & UI for creating zones, updating zones and deleting zones.","user":{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars1.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false},"labels":[{"id":545515130,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/WooCommerce","name":"WooCommerce","color":"96588a","default":false},{"id":542883719,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Size]%20XL","name":"[Size] XL","color":"390036","default":false},{"id":285010018,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars1.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false},"assignees":[{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars1.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-06-30T13:58:17Z","updated_at":"2017-06-30T20:00:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/15722","html_url":"https://github.com/Automattic/wp-calypso/pull/15722","diff_url":"https://github.com/Automattic/wp-calypso/pull/15722.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/15722.patch"},"body":"Fixes #14268 , fixes #14271\r\n\r\nI've followed (i.e. shamelessly copied) @coderkevin code for products. This PR includes:\r\n* UI tweaks (mainly in the Header action bar).\r\n* Creating a new shipping zone in the server.\r\n* Updating a shipping zone on the server.\r\n* Deleting a shipping zone from the server.\r\n* Success notice on success, error notice on error.\r\n* After the zone is deleted, the user is taken back to the Shipping Settings page.\r\n\r\nThis PR does NOT include:\r\n* Saving the shipping methods inside a shipping zone.\r\n* Saving the locations inside a shipping zone.\r\n* Auto-ordering.\r\n\r\nI found a weird behaviour of the `action-list`. If you don't change anything on the zone, and click the `Save` button, nothing happens, because an `actionList` with an empty list of `nextSteps` is created, and that doesn't trigger the `successAction`. In my mind, I would expect that the `successAction` would trigger immediately for those cases. What do you think Kevin?"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/312360274","html_url":"https://github.com/Automattic/wp-calypso/pull/15722#issuecomment-312360274","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15722","id":312360274,"user":{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars1.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T20:00:15Z","updated_at":"2017-06-30T20:00:15Z","body":"> The trash thing is definitely a bug, let me take a look.\r\n\r\nYeah, that was easy (i.e. stupid mistake). Fixed :)\r\n"}}
{"actor":{"display_login":"DanReyLop"}}