mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: persist AI task state in template imports & workspace builds (#18449)
This commit is contained in:
@ -121,11 +121,10 @@ INSERT INTO
|
||||
deadline,
|
||||
max_deadline,
|
||||
reason,
|
||||
template_version_preset_id,
|
||||
has_ai_task
|
||||
template_version_preset_id
|
||||
)
|
||||
VALUES
|
||||
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15);
|
||||
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14);
|
||||
|
||||
-- name: UpdateWorkspaceBuildCostByID :exec
|
||||
UPDATE
|
||||
@ -152,6 +151,15 @@ SET
|
||||
updated_at = @updated_at::timestamptz
|
||||
WHERE id = @id::uuid;
|
||||
|
||||
-- name: UpdateWorkspaceBuildAITaskByID :exec
|
||||
UPDATE
|
||||
workspace_builds
|
||||
SET
|
||||
has_ai_task = @has_ai_task,
|
||||
ai_task_sidebar_app_id = @sidebar_app_id,
|
||||
updated_at = @updated_at::timestamptz
|
||||
WHERE id = @id::uuid;
|
||||
|
||||
-- name: GetActiveWorkspaceBuildsByTemplateID :many
|
||||
SELECT wb.*
|
||||
FROM (
|
||||
|
Reference in New Issue
Block a user