You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workspace_builds current_buildONcurrent_build.id=CASE WHEN current_job.input ? 'workspace_build_id' THEN (current_job.input->>'workspace_build_id')::uuid END
77
81
LEFT JOIN
78
-
templates tmpl ONtmpl.id=version.template_id
82
+
-- We should always have a template version, either explicitly or implicitly via workspace build.
83
+
template_versions current_version ONcurrent_version.id= CASE WHEN current_job.input ? 'template_version_id' THEN (current_job.input->>'template_version_id')::uuid ELSE current_build.template_version_id END
workspace_builds previous_build ONprevious_build.id= CASE WHEN previous_job.input ? 'workspace_build_id' THEN (previous_job.input->>'workspace_build_id')::uuid END
89
+
LEFT JOIN
90
+
-- We should always have a template version, either explicitly or implicitly via workspace build.
91
+
template_versions previous_version ONprevious_version.id= CASE WHEN previous_job.input ? 'template_version_id' THEN (previous_job.input->>'template_version_id')::uuid ELSE previous_build.template_version_id END
0 commit comments