feat: add template_active_version_id to workspaces (#9226)

* feat: add `template_active_version_id` to workspaces

This reduces a fetch in the VS Code extension when getting the
active version update message!

* Fix entities.ts

* Fix golden gen
This commit is contained in:
Kyle Carberry
2023-08-27 16:26:20 +00:00
committed by GitHub
parent 54032ccfe8
commit c3ac55ff42
9 changed files with 21 additions and 0 deletions
+1
View File
@@ -1187,6 +1187,7 @@ func convertWorkspace(
TemplateIcon: template.Icon,
TemplateDisplayName: template.DisplayName,
TemplateAllowUserCancelWorkspaceJobs: template.AllowUserCancelWorkspaceJobs,
TemplateActiveVersionID: template.ActiveVersionID,
Outdated: workspaceBuild.TemplateVersionID.String() != template.ActiveVersionID.String(),
Name: workspace.Name,
AutostartSchedule: autostartSchedule,