Title: Delete template: several error messages in console contain redundant api output · Issue #3044 · coder/coder · GitHub
Open Graph Title: Delete template: several error messages in console contain redundant api output · Issue #3044 · coder/coder
X Title: Delete template: several error messages in console contain redundant api output · Issue #3044 · coder/coder
Description: Coder v0.7.12+6f34cbf Cmd Scenario 1 Do template init of any template Create a template Create a workspace based on template Delete template: coder templates delete [template name] Actual result: redundant api output is displayed in the ...
Open Graph Description: Coder v0.7.12+6f34cbf Cmd Scenario 1 Do template init of any template Create a template Create a workspace based on template Delete template: coder templates delete [template name] Actual result: r...
X Description: Coder v0.7.12+6f34cbf Cmd Scenario 1 Do template init of any template Create a template Create a workspace based on template Delete template: coder templates delete [template name] Actual result: r...
Opengraph URL: https://github.com/coder/coder/issues/3044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Delete template: several error messages in console contain redundant api output","articleBody":"Coder v0.7.12+6f34cbf\r\nCmd\r\n\r\n**Scenario 1**\r\n\r\n1. Do template init of any template\r\n2. Create a template \r\n3. Create a workspace based on template\r\n4. Delete template:\r\ncoder templates delete [template name]\r\n\r\n**Actual result:**\r\n- redundant api output is displayed in the error message\r\n\"delete template \"aws-windows\": DELETE https://fcca2689e23903a563ca16e90d03c1da.pit-1.try.coder.app/api/v2/templates/04950462-6de9-4c63-a854-6c5da260b161: unexpected status code 412: All workspaces must be deleted before a template can be removed.\"\r\n\r\n\r\n**Expected result:**\r\n- the error message \"All workspaces must be deleted before a template can be removed. Run 'coder templates delete --help' for usage.\" is displayed\r\n\r\n**Scenario 2**\r\n\r\n1. As an Admin create several templates via cli\r\n2. Login to CLI as a user with a role Member\r\n3. Run in console/terminal\r\ncoder templates list\r\n4. Run \r\ncoder templates delete [any template name]\r\n\r\n**Actual result:**\r\n- redundant api output is displayed in the error message\r\n\"delete template \"aws-windows001\": DELETE https://fcca2689e23903a563ca16e90d03c1da.pit-1.try.coder.app/api/v2/templates/bb5e4cf4-8032-498e-8963-ed94d00d188a: unexpected status code 404: Resource not found or you do not have access to this resource\"\r\n\r\n\r\n**Expected result:**\r\n- the error message \"Resource not found or you do not have access to this resource. Run 'coder templates delete --help' for usage.\" is displayed\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/OlgaKhmelevskaya","@type":"Person","name":"OlgaKhmelevskaya"},"datePublished":"2022-07-19T15:54:56Z","url":"https://github.com/coder/coder/issues/3044"}
| 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:ba49050f-1883-140e-6683-32638ae93ac5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C07A:EA09B:23E7E6B:2F970D7:6B019384 |
| html-safe-nonce | 692421be4b8dfcd66032900b6169631bbab718b9307c4e5035f5479ed19c3f3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDdBOkVBMDlCOjIzRTdFNkI6MkY5NzBENzo2QjAxOTM4NCIsInZpc2l0b3JfaWQiOiIxMTUzMDUyNjA1OTgzODU1NDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d57f6913c3216b30bbef2217d352bc2d88dd9d5c9d77a3364e5ca2191810e229 |
| hovercard-subject-tag | issue:1309730239 |
| 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/3044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9270a2eaa574ba8105e9591eb15204d77c7d760c07b0c212d352b45a3fd1757b/coder/coder/issues/3044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9270a2eaa574ba8105e9591eb15204d77c7d760c07b0c212d352b45a3fd1757b/coder/coder/issues/3044 |
| og:image:alt | Coder v0.7.12+6f34cbf Cmd Scenario 1 Do template init of any template Create a template Create a workspace based on template Delete template: coder templates delete [template name] Actual result: r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OlgaKhmelevskaya |
| 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