Title: TTL/Workspace Schedule is too coupled · Issue #2229 · coder/coder · GitHub
Open Graph Title: TTL/Workspace Schedule is too coupled · Issue #2229 · coder/coder
X Title: TTL/Workspace Schedule is too coupled · Issue #2229 · coder/coder
Description: So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to one hour, and then boom, my workspace turn...
Open Graph Description: So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to on...
X Description: So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to on...
Opengraph URL: https://github.com/coder/coder/issues/2229
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TTL/Workspace Schedule is too coupled","articleBody":"So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to one hour, and then boom, my workspace turns off.\r\n\r\nI looked at the code a bit and have no idea what's causing this behavior. \r\n\r\nThe fact that \"Edit Schedule\" modifies my active lease is very hard to reason about as a user. Why does it add the TTL to the lease vs. adding the TTL to my current time? Why would I expect it to change the lease at all?\r\n\r\nAlso.. we use the word TTL around the product to mean both the schedule and the active lease. This has been confusing as I navigate the code, and also as a user. (See https://github.com/coder/coder/issues/2224 issue, which can be interpreted multiple ways). \r\n\r\nWhat I suggest is we remove the ability for \"Schedule\" edits to affect the active lease. A lease is created on Workspace Start and then can only be modified directly. We can expose the ability for the user to edit the active lease separately from the schedule, as described [here](https://github.com/coder/coder/issues/2175). ","author":{"url":"https://github.com/ammario","@type":"Person","name":"ammario"},"datePublished":"2022-06-10T03:26:25Z","url":"https://github.com/coder/coder/issues/2229"}
| 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:3d50261e-067a-347f-dbd0-db479ba28c9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF36:7D034:2B3B1:385A2:6B015649 |
| html-safe-nonce | 567f4ca130c57c897e9b7c921db3cce765e387116b568798efdaddb64da3d282 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjM2OjdEMDM0OjJCM0IxOjM4NUEyOjZCMDE1NjQ5IiwidmlzaXRvcl9pZCI6IjIyODc5ODM1OTIwOTkzNzA1NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed2a4b9880199014b6d3308dd2ac97e0c198b88a5f67103f9b58c2a28b54fdc3 |
| hovercard-subject-tag | issue:1266964231 |
| 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/2229/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d542610eade901ff6cc87355846a2061f7184ba81f29e0d26e1f60121452b26/coder/coder/issues/2229 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d542610eade901ff6cc87355846a2061f7184ba81f29e0d26e1f60121452b26/coder/coder/issues/2229 |
| og:image:alt | So, I have a workspace that it scheduled to shut down in an hour. I want to edit my workspace schedule (which is a separate idea than extending my lease). I change my TTL in the Edit Schedule to on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ammario |
| 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