Title: Send workspace display status in API response · Issue #2772 · coder/coder · GitHub
Open Graph Title: Send workspace display status in API response · Issue #2772 · coder/coder
X Title: Send workspace display status in API response · Issue #2772 · coder/coder
Description: As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI. Currently, frontend computes the display status itself, and backend also has duplicated logi...
Open Graph Description: As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI. Currently, frontend computes the display status itse...
X Description: As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI. Currently, frontend computes the display status itse...
Opengraph URL: https://github.com/coder/coder/issues/2772
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Send workspace display status in API response ","articleBody":"As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI.\r\n\r\nCurrently, frontend computes the display status itself, and backend also has duplicated logic after #2743.\r\n\r\n### Frontend code\r\nhttps://github.com/coder/coder/blob/482feef3731666cc14548277cb4a5215a4cac863/site/src/util/workspace.ts#L22-L54\r\n\r\n### Backend code\r\nhttps://github.com/coder/coder/blob/28d0f4cae95374b094c8fdad7582ad1c4e471d83/codersdk/workspacedisplaystatus.go#L1-L48\r\n\r\nWe plan to send the display status as part of the API response along with other workspace details, and use it in the frontend directly. This should get rid of the duplicated logic.\r\n\r\n","author":{"url":"https://github.com/AbhineetJain","@type":"Person","name":"AbhineetJain"},"datePublished":"2022-07-01T07:28:51Z","url":"https://github.com/coder/coder/issues/2772"}
| 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:5831683d-a61a-2315-3df0-2df469c1ced0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C552:1DC4CC:9707F:CA98A:6B018124 |
| html-safe-nonce | 149d49214afa048364e925fbf45bc0405d7d635770629422045c6b38d7e8aca4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTUyOjFEQzRDQzo5NzA3RjpDQTk4QTo2QjAxODEyNCIsInZpc2l0b3JfaWQiOiIxOTYwNzQ4MjM3NDk4Mjg5MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7d34a82e155598d782eb424b3b8ad360dfd786947e9ea0d5713d532ca861ba7d |
| hovercard-subject-tag | issue:1291025101 |
| 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/2772/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6faae7ae4e288dc656e094cea3eccf95e9ff031cad2f381a1b9252eaa3d70cd5/coder/coder/issues/2772 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6faae7ae4e288dc656e094cea3eccf95e9ff031cad2f381a1b9252eaa3d70cd5/coder/coder/issues/2772 |
| og:image:alt | As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI. Currently, frontend computes the display status itse... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhineetJain |
| 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