-
Notifications
You must be signed in to change notification settings - Fork 881
If you update 'time until shutdown' in a running workspace, the workspace UI has the old value #1783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we can combine treat these: if the shutdown time is less than 5 minutes in the future, we warn. I don't know why someone would want a scheduled shutoff in 2 minutes, so if that use case is mildly inelegant (confirm on change and confirm on imminent shutdown) that's oka. |
This got duplicated as a bug in #2055 , meaning it's tripping users up. Here's @mtm20176 's comment: OS Information
Steps to Reproduce
ExpectedNot quite sure, but something based on the new ActualThe shutdown remaining in workspace UI is based on the previous LogsScreenshotNotesNope |
Here's @ketang 's comment from the dupe: I poked at this to see how it behaved. To start more from scratch:
Doing a hard page reload doesn't change anything; it still shows 3 hours. However, if I hit the "Stop" button, then schedule card then shows "1 hour after start" 🤷🏾♂️ |
Please add your planning poker estimate with ZenHub @johnstcn |
In #1778 we added support for setting a deadline on a single workspace build. In that implementation, the deadline can only increase monotonically. Changes to workspace TTL do not affect the deadline of an active workspace build.
Originally posted by @deansheather in #1778 (review) (paraphrased)
Seems like this would be useful behaviour, but there are some ins and outs to this we need to think through:
Acceptance Criteria:
Given a user has a workspace with no deadline/TTL set and the workspace is not running
When the user updates the workspace TTL
Then: the TTL is updated
Given a user has a workspace with a deadline set and the workspace is running
When the user updates the workspace TTL such that the updated deadline would affect a running workspace
Then: the user is notified about the effect of the change (workspace will be stopped at X time) and be prompted to confirm.
Given a user has a workspace with a deadline set and the workspace is running
When: the user updates the workspace TTL such at the updated deadline would cause the running workspace to be stopped
Then: the user is notified about the effect of the change (workspace will be stopped immediately) and be prompted to confirm.
Implementation Notes:
ttl
TextFieldLanguage
component of WorkspaceScheduleThe text was updated successfully, but these errors were encountered: