{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus/issues/346","labels_url":"https://api.github.com/repos/solidusio/solidus/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/346/comments","events_url":"https://api.github.com/repos/solidusio/solidus/issues/346/events","html_url":"https://github.com/solidusio/solidus/pull/346","id":104112832,"number":346,"title":"Introduce customization hook for create_proposed_shipments","user":{"login":"richardnuno","id":2223534,"avatar_url":"https://avatars.githubusercontent.com/u/2223534?v=3","gravatar_id":"","url":"https://api.github.com/users/richardnuno","html_url":"https://github.com/richardnuno","followers_url":"https://api.github.com/users/richardnuno/followers","following_url":"https://api.github.com/users/richardnuno/following{/other_user}","gists_url":"https://api.github.com/users/richardnuno/gists{/gist_id}","starred_url":"https://api.github.com/users/richardnuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardnuno/subscriptions","organizations_url":"https://api.github.com/users/richardnuno/orgs","repos_url":"https://api.github.com/users/richardnuno/repos","events_url":"https://api.github.com/users/richardnuno/events{/privacy}","received_events_url":"https://api.github.com/users/richardnuno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-31T18:57:26Z","updated_at":"2015-09-01T16:33:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/solidusio/solidus/pulls/346","html_url":"https://github.com/solidusio/solidus/pull/346","diff_url":"https://github.com/solidusio/solidus/pull/346.diff","patch_url":"https://github.com/solidusio/solidus/pull/346.patch"},"body":"The change introduces a customization hook that allows stores to manipulate the shipments generated by Spree::Stock::Coordinator.\r\n\r\nThe particular use case for us here is to ensure a selected shipping method (selected by an admin or a user) is preserved even if create_proposed_shipments is called multiple times."},"comment":{"url":"https://api.github.com/repos/solidusio/solidus/issues/comments/136783325","html_url":"https://github.com/solidusio/solidus/pull/346#issuecomment-136783325","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/346","id":136783325,"user":{"login":"jhawthorn","id":131752,"avatar_url":"https://avatars.githubusercontent.com/u/131752?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawthorn","html_url":"https://github.com/jhawthorn","followers_url":"https://api.github.com/users/jhawthorn/followers","following_url":"https://api.github.com/users/jhawthorn/following{/other_user}","gists_url":"https://api.github.com/users/jhawthorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawthorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawthorn/subscriptions","organizations_url":"https://api.github.com/users/jhawthorn/orgs","repos_url":"https://api.github.com/users/jhawthorn/repos","events_url":"https://api.github.com/users/jhawthorn/events{/privacy}","received_events_url":"https://api.github.com/users/jhawthorn/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T16:33:50Z","updated_at":"2015-09-01T16:33:50Z","body":"I'm not sure about this as an extension point.\r\n\r\nIs there a reason not to implement this as our default behaviour? `Shipment#refresh_rates` already has logic to keep the same shipping rate selected, it seems like we should do that same here."}}