Skip to content

Bug: When a workspace is on, the UI should derive time remaining from build deadline, not TTL #1779

Closed
@greyscaled

Description

@greyscaled

Overview

Right now, the UI derives time remaining for a running workspace from its ttl. This implies that if a user turns on a workspace that is scheduled to stop 8 hours later, then adjusts their ttl to 4 hours, the UI will present that the workspace will shutdown 4 hours later.

However, the underlying model uses a deadline on the build. The deadline may be stickier than ttl - for example, updating your ttl while your workspace is live may or may not cascade to your build.

Therefore it's best that the FE does the following:

  • for a running workspace, compute shutdown time from build deadline
  • for a non-running workspace, compute shutdown time from workspace ttl

Why It Matters

We want to accurately present when a workspace will shutdown, and not have a mismatch.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions