-
Notifications
You must be signed in to change notification settings - Fork 881
There's no way to retract a workspace lease? #2224
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
Workaround: stop it by clicking "Stop." I think being able to shorten is good, but given that you can click "Stop" I'm not too stressed about it. This isn't a bug; it's a missing function. |
Counterpoint: If you no longer need the workspace, it's the same amount of effort to just stop it as it is to run, say, |
"unbump?" What about |
My honest interpretation is that @ammario is imagining some kind of date in the UI as being editable in any direction, within constraints. The data layer uses a TTL, but I think we can abstract that data concern from the interface representation. Can you confirm @ammario ? I don't want to put words in your mouth, just what I'm sensing. |
Here's my user experience with the current behavior:
Yes, I do think this is the ideal experience. It can work with TTL constraints by preventing you from putting it more than X hours in the future from now. When using an incremental bump value, it's unclear to the user whether it's applied to the current time or the existing deadline. Editing the time is far clearer. I would suggest mapping the data layer to timestamp instead of TTL as well for these reasons:
Overall: I'm looking forward to our conversation this morning 😁 |
I'm not dismissing this as the experience we want. I just don't think it's important enough for this level of elaboration right now. I suggest putting up |
I think we may be misaligned on the LoE of tidying up this flow. If we go down a time-based approach, I wouldn't think that's more than 1 engineering day to solve. |
From discussion:
|
I don't think we're that misaligned. I don't want to spend a day on it. This is not critical for the next few weeks. It's an edge case of an edge case. |
This is not an edge case of an edge case. I wasn't doing anything weird last night and the exact situation that was outlined affected and severely annoyed me. Have you experienced this directly? |
Edge case of an edge case and then some... for this to be a problem:
It annoyed you. Okay. I think your perspective is not necessarily the same as our typical customer. |
Well anywhos, Cian and Grey believe this to be very simple to implement, and we're refactoring other aspects so it can be batched nicely. We agreed in a call this morning to implement already. |
Closed via #2721 |
I accidently added 6 hours to my workspace today which was unnecessary, and there's no way for me to wind that back unfortunately. As we implement UI for extending the lease, I suggest we also let the user modify the lease in both directions.
cc @johnstcn
Acceptance Criteria:
/api/v2/workspaces/:workspace/extend
should accept any time greater than or equal to now plus 30 minutes. (fix: allow setting workspace deadline as early as now plus 30 minutes #2328)coder bump <workspace> <duration>
should set the deadline of workspace named<workspace>
to now plus<duration>
. Minimum duration is now plus 30 minutes. Deadlines earlier than the currently set deadline should be accepted. (fix: allow setting workspace deadline as early as now plus 30 minutes #2328)The text was updated successfully, but these errors were encountered: