mirror of
https://github.com/coder/coder.git
synced 2026-09-21 12:44:32 +08:00
fix(coderd)!: only show task status for current build (#19966)
This changes the task get endpoint to omit app statuses for previous 'lifetimes' of a workspace. It also introduces a [breaking change](https://github.com/coder/coder/blob/release/2.26/codersdk/aitasks.go#L83) to bring `TaskStateComplete` in line with `WorkspaceAppStatusStateComplete`. I can alternatively revert this change and add a conversion function between the two SDK types.
This commit is contained in:
+4
-4
@@ -96,10 +96,10 @@ type TaskState string
|
||||
|
||||
// TaskState enums.
|
||||
const (
|
||||
TaskStateWorking TaskState = "working"
|
||||
TaskStateIdle TaskState = "idle"
|
||||
TaskStateCompleted TaskState = "completed"
|
||||
TaskStateFailed TaskState = "failed"
|
||||
TaskStateWorking TaskState = "working"
|
||||
TaskStateIdle TaskState = "idle"
|
||||
TaskStateComplete TaskState = "complete"
|
||||
TaskStateFailed TaskState = "failed"
|
||||
)
|
||||
|
||||
// Task represents a task.
|
||||
|
||||
Reference in New Issue
Block a user