-
Notifications
You must be signed in to change notification settings - Fork 881
Bug: If you update 'time until shutdown' in a running workspace, the workspace UI has the old value #2055
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 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" 🤷🏾♂️ |
The UI uses the If the workspace is off, it shows the schedule's declared TTL. For agile reasons, updating the schedule while the workspace is running doesn't impact its deadline yet, only future ones. This decision made original MVP easier to reach. The BE ticket for that is #1783 and this ticket is effectively a duplicate of it (I will mark them as such, and port over info to that ticket from this one. When #1783 is addressed (BE-only), the FE, since it derives that information from the workspace deadline, will display as you both expect. But keep in mind, right now, it's displaying the truth, it's just not the truth you're expecting (that the running workspace deadline doesn't change after adjusting the schedule) |
Closing as duplicate of #1783 |
OS Information
coder --version
: 0.6.0Steps to Reproduce
Have
Time until shutdown
already configured e.g., 8 hoursThe workspace is running
Change the
Time until shutdown
to 1 hourThe workspace UI says 7 hours remaining (the leftover part from the original 8 hours)
Expected
Not quite sure, but something based on the new
Time until shutdown
- so maybe 1 hour in this exampleActual
The shutdown remaining in workspace UI is based on the previous
Time until shutdown
Logs
Screenshot
Notes
Nope
The text was updated successfully, but these errors were encountered: