Title: Validate that `workspace ttl` < `template max_ttl` in the WorkspaceScheduleForm · Issue #3216 · coder/coder · GitHub
Open Graph Title: Validate that `workspace ttl` < `template max_ttl` in the WorkspaceScheduleForm · Issue #3216 · coder/coder
X Title: Validate that `workspace ttl` < `template max_ttl` in the WorkspaceScheduleForm · Issue #3216 · coder/coder
Description: Problem (ref: #2960) Root cause: the workspace template has a max_ttl of 12h set. We do not allow setting the workspace TTL higher than the template TTL. The problem is, the error message from the backend is not being surfaced properly i...
Open Graph Description: Problem (ref: #2960) Root cause: the workspace template has a max_ttl of 12h set. We do not allow setting the workspace TTL higher than the template TTL. The problem is, the error message from the ...
X Description: Problem (ref: #2960) Root cause: the workspace template has a max_ttl of 12h set. We do not allow setting the workspace TTL higher than the template TTL. The problem is, the error message from the ...
Opengraph URL: https://github.com/coder/coder/issues/3216
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Validate that `workspace ttl` \u003c `template max_ttl` in the WorkspaceScheduleForm","articleBody":"# Problem\r\n\r\n(ref: https://github.com/coder/coder/issues/2960)\r\n\r\n> Root cause: the workspace template has a max_ttl of 12h set.\r\n> We do not allow setting the workspace TTL higher than the template TTL.\r\n> The problem is, the error message from the backend is not being surfaced properly in the UI.\r\n> The workspace schedule form should have a validation on the template max_ttl value.\r\n\r\nWe do not validate the max_ttl value in the WorkspaceScheduleForm. \r\n\r\n\r\n# Solution\r\n\r\nValidate in WorkspaceScheduleForm that the TTL (hours) is strictly less than the template max_ttl.\r\n\r\n\r\n# Definition of Done\r\n\r\nGiven: a template with max_ttl of 12h0m, and a workspace from this template exists\r\nWhen: a user attempts to update the TTL to a value greater than template max_ttl\r\nThen: the TTL field should go red with a validation error and show the maximum value\r\n\r\nWhen: a user attempts to update the TTL to a value less than template max_ttl\r\nThen: the TTL field should validate successfully.","author":{"url":"https://github.com/johnstcn","@type":"Person","name":"johnstcn"},"datePublished":"2022-07-26T15:33:55Z","url":"https://github.com/coder/coder/issues/3216"}
| 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:2f6d1c3a-fcc3-8c56-7972-43bea3b67ac7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D802:29AEE8:221D0EF:2D6C65A:6B0189C3 |
| html-safe-nonce | 224eb82575ac309c2672de94d0200fd123d6e0a7f68a976ed10af23413f3d076 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODAyOjI5QUVFODoyMjFEMEVGOjJENkM2NUE6NkIwMTg5QzMiLCJ2aXNpdG9yX2lkIjoiNDA4NDIwNzY5OTE4NzgyOTE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 544382c0a07e019a95703d0106e06581fd7d9c0d4ce2f97283f620d618ee1167 |
| hovercard-subject-tag | issue:1318415119 |
| 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/3216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/711335d2f32c6eec7c8d00bb3e78d00c9c0e5f1cf0ea0d16133c02115bf6748f/coder/coder/issues/3216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/711335d2f32c6eec7c8d00bb3e78d00c9c0e5f1cf0ea0d16133c02115bf6748f/coder/coder/issues/3216 |
| og:image:alt | Problem (ref: #2960) Root cause: the workspace template has a max_ttl of 12h set. We do not allow setting the workspace TTL higher than the template TTL. The problem is, the error message from the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnstcn |
| 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