{"action":"opened","issue":{"url":"https://api.github.com/repos/spree/spree/issues/6901","labels_url":"https://api.github.com/repos/spree/spree/issues/6901/labels{/name}","comments_url":"https://api.github.com/repos/spree/spree/issues/6901/comments","events_url":"https://api.github.com/repos/spree/spree/issues/6901/events","html_url":"https://github.com/spree/spree/issues/6901","id":122714210,"number":6901,"title":"Order#empty! should restart_checkout_flow","user":{"login":"jalada","id":126989,"avatar_url":"https://avatars.githubusercontent.com/u/126989?v=3","gravatar_id":"","url":"https://api.github.com/users/jalada","html_url":"https://github.com/jalada","followers_url":"https://api.github.com/users/jalada/followers","following_url":"https://api.github.com/users/jalada/following{/other_user}","gists_url":"https://api.github.com/users/jalada/gists{/gist_id}","starred_url":"https://api.github.com/users/jalada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalada/subscriptions","organizations_url":"https://api.github.com/users/jalada/orgs","repos_url":"https://api.github.com/users/jalada/repos","events_url":"https://api.github.com/users/jalada/events{/privacy}","received_events_url":"https://api.github.com/users/jalada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T11:11:34Z","updated_at":"2015-12-17T11:11:34Z","closed_at":null,"body":"I encountered a nasty bug when using `Order#empty!`. It clears the shipments, but it doesn't `restart_checkout_flow` so the order remains in the `confirm` step. That means you never go through the delivery state, so shipments are never recreated, amongst other things.\r\n\r\nI might be wrong, but I feel like `empty!` should `restart_checkout_flow`?"}}