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
feat(coderd): add filters and fix template for provisioner daemons (#16558)
This change adds provisioner daemon ID filter to the provisioner daemons
endpoint, and also implements the limiting to 50 results.
Test coverage is greatly improved and template information for jobs
associated to the daemon was also fixed.
Updates #15084
Updates #15192
Related #16532
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