{"action":"opened","issue":{"url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1498","repository_url":"https://api.github.com/repos/Automattic/woocommerce-services","labels_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1498/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1498/comments","events_url":"https://api.github.com/repos/Automattic/woocommerce-services/issues/1498/events","html_url":"https://github.com/Automattic/woocommerce-services/issues/1498","id":356149605,"node_id":"MDU6SXNzdWUzNTYxNDk2MDU=","number":1498,"title":"Remove or disable predefined boxes from the Purchase Label flow when they can't be used","user":{"login":"DanReyLop","id":1715800,"node_id":"MDQ6VXNlcjE3MTU4MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1715800?v=4","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":430368343,"node_id":"MDU6TGFiZWw0MzAzNjgzNDM=","url":"https://api.github.com/repos/Automattic/woocommerce-services/labels/Shipping%20Labels","name":"Shipping Labels","color":"00326c","default":false},{"id":322224214,"node_id":"MDU6TGFiZWwzMjIyMjQyMTQ=","url":"https://api.github.com/repos/Automattic/woocommerce-services/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T23:31:01Z","updated_at":"2018-08-31T23:31:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Some packages make no sense for international shipments. `Regional Rate Box A1-A2-B1-B2` come to mind, but I'm not sure if there are other situations where knowing the origin and destination, we could safely exclude some kinds of boxes.\r\n\r\nWhen the user interacts with the `Packages` step of the Purchase Label modal, the origin and destination are already known. It makes sense to remove from the `Package` dropdown (or at least disable) the options that don't apply. For example, a `Regional` box will never work if the origin and destination are in different countries.\r\n\r\nThings to note:\r\n* Double-check what's a \"domestic\" and \"international\" shipment for USPS, specially when it involves those non-US territories that have USPS offices.\r\n* What happens if the user had selected an \"incorrect\" box? Edge case, but since the merchant can change the destination address at label-purchase time, it's something we need to address, and show an error or something (or maybe just keep going with the bogus box and let the error in the `Rates` step inform the user)."}}
{"actor":{"display_login":"DanReyLop"}}