Title: Decide how to handle workspace deletion · Issue #1837 · coder/coder · GitHub
Open Graph Title: Decide how to handle workspace deletion · Issue #1837 · coder/coder
X Title: Decide how to handle workspace deletion · Issue #1837 · coder/coder
Description: As a user, I want to be able to delete a workspace from the UI, and see whether deletion succeeded or failed. Outcome: we'll stick with 1b for now, and I'll write a ticket to implement 2 later. Currently, the frontend is prepared to disp...
Open Graph Description: As a user, I want to be able to delete a workspace from the UI, and see whether deletion succeeded or failed. Outcome: we'll stick with 1b for now, and I'll write a ticket to implement 2 later. Cur...
X Description: As a user, I want to be able to delete a workspace from the UI, and see whether deletion succeeded or failed. Outcome: we'll stick with 1b for now, and I'll write a ticket to implement 2 la...
Opengraph URL: https://github.com/coder/coder/issues/1837
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decide how to handle workspace deletion","articleBody":"As a user, I want to be able to delete a workspace from the UI, and see whether deletion succeeded or failed.\r\n\r\n---\r\n\r\nOutcome: we'll stick with 1b for now, and I'll write a ticket to implement 2 later.\r\n\r\n---\r\n\r\nCurrently, the frontend is prepared to display a deleted workspace like any other workspace, with a status of \"Deleted\" and no available actions. However, the backend gives an error, not a workspace in the \"deleted\" state, when the frontend requests a deleted workspace to display on the workspace page. So we need to decide whether a deleted workspace should be fetchable, and what should happen when a user deletes a workspace on the Workspace Page. Here are the options I can think of and their downsides (which are a mix of UX concerns and just calling out additional work they would require):\r\n\r\n1. If deleted workspaces are not fetchable\r\n a. When I click Delete and then confirm, I stay on the Workspace page. If deletion fails, I see an error message briefly pop up and then I continue to see my workspace. If deletion succeeds, either\r\n i. I see a Workspace Deleted view with a link to the Workspaces page (downside: new design), or\r\n ii. I am redirected to the Workspaces page (downside: a bit abrupt), or\r\n iii. I see a Workspace Deleted view warning me that I'm about to be redirected, and then I'm redirected (downside: new design, doesn't feel elegant to me)\r\n b. When I click Delete and then confirm, I am redirected to the Workspaces page. If deletion fails, that workspace in my list gets the Error status. If deletion succeeds, that workspace disappears from my list. (downside: the Workspaces page does not currently poll workspace statuses, so I will only know this if I refresh after a little bit, or, we need to add polling)\r\n2. If deleted workspaces are fetchable, when I click Delete and then confirm, I see my workspace get the Deleting status, and then its status changes to either Error or Deleted. It's up to me to navigate elsewhere. (downside: if deleted workspaces stick around, they can clutter up the Workspaces page. If that's not addressed by some garbage collection, then we should add a filter to that page.)","author":{"url":"https://github.com/presleyp","@type":"Person","name":"presleyp"},"datePublished":"2022-05-27T14:37:14Z","url":"https://github.com/coder/coder/issues/1837"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1cb6a3cf-90d3-697c-20bc-baedd59aabf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E28A:2D02CB:51BB47:6BF517:6B017A46 |
| html-safe-nonce | fc0a63e5d4ec10d02f7afc5963e709afd2789efa6a819226ca12c33fe53eb514 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjhBOjJEMDJDQjo1MUJCNDc6NkJGNTE3OjZCMDE3QTQ2IiwidmlzaXRvcl9pZCI6IjQ3NzIxMzQ3NDk4ODE4NTg2MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 855d58bb4973566311f8c3c727a9e0df99c82fad31aa3c980882133a31eb28d9 |
| hovercard-subject-tag | issue:1250844594 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1837/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b5199abf6e843af0d2af0ab3dc524749a02f31eb85e1df7c015fecc0bc916db/coder/coder/issues/1837 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b5199abf6e843af0d2af0ab3dc524749a02f31eb85e1df7c015fecc0bc916db/coder/coder/issues/1837 |
| og:image:alt | As a user, I want to be able to delete a workspace from the UI, and see whether deletion succeeded or failed. Outcome: we'll stick with 1b for now, and I'll write a ticket to implement 2 later. Cur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | presleyp |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width