{"action":"opened","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/25183","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/25183/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/25183/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/25183/events","html_url":"https://github.com/Automattic/wp-calypso/issues/25183","id":327685197,"number":25183,"title":"[Q] Purchases: Remove site slug from paths","user":{"login":"sirreal","id":841763,"avatar_url":"https://avatars2.githubusercontent.com/u/841763?v=4","gravatar_id":"","url":"https://api.github.com/users/sirreal","html_url":"https://github.com/sirreal","followers_url":"https://api.github.com/users/sirreal/followers","following_url":"https://api.github.com/users/sirreal/following{/other_user}","gists_url":"https://api.github.com/users/sirreal/gists{/gist_id}","starred_url":"https://api.github.com/users/sirreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirreal/subscriptions","organizations_url":"https://api.github.com/users/sirreal/orgs","repos_url":"https://api.github.com/users/sirreal/repos","events_url":"https://api.github.com/users/sirreal/events{/privacy}","received_events_url":"https://api.github.com/users/sirreal/received_events","type":"User","site_admin":false},"labels":[{"id":285010023,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Design%20Review","name":"[Status] Needs Design Review","color":"13CDF7","default":false},{"id":285009977,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Question","name":"[Type] Question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T11:17:17Z","updated_at":"2018-05-30T11:17:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Design Question\r\n\r\nIn #24692 I'm working to fix 1642-gh-jpop-issues.\r\n\r\n**Can we remove the site slug from purchase view/manage routes?**\r\n\r\nPurchase routes are generally of the form:\r\n\r\n```\r\n/me/purchases/:SITE_SLUG/:PURCHASE_ID/:MAYBE_AN_ACTION\r\n```\r\n\r\nThese would become:\r\n\r\n```\r\n/me/purchases/:PURCHASE_ID/:MAYBE_AN_ACTION\r\n```\r\n\r\nThe changes are quite laborious, so I've raised the question here rather than implementing in case there are any objections.\r\n\r\n### The issue\r\n\r\nPurchases are tangled up with site objects in Calypso. In practice, this means that users are unable to take any action for purchases associated with Jetpack sites which are disconnected and they must contact support.\r\n\r\nIt may be impossible to know the associated site slug for a purchase and keeping them in the route is problematic for technical reasons.\r\n\r\n### A technical note\r\n\r\nDisconnected sites do not appear in the user's sites. Extended site data is unavailable, however the purchase data includes the associated site ID which is required to operate on purchases.\r\n\r\n### The solution\r\n\r\nThere are many things that the user should be able to do and are technically possible without a full site object. The proposal is to treat full site data as an enhancement, and allow basic functionality with only the purchase data.\r\n\r\n#### Examples\r\n\r\nA user can remove a purchase or update/add credit card information for a disconnected site.\r\n\r\nA user cannot navigate to the `/plans/:SITE_SLUG` page for a disconnected site (requires full site data).\r\n\r\ncc: @Automattic/luna @Automattic/jetpack-design "}}
{"actor":{"display_login":"sirreal"}}