mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
83dbf73dde
The metrics cache to calculate and expose build time metrics for templates currently calls `GetTemplates`, which returns all templates even if they are deleted. We can use the `GetTemplatesWithFilter` query to easily filter out deleted templates from the results, and thus not call `GetTemplateAverageBuildTime` for those deleted templates. Delete time for workspaces for non-deleted templates is still calculated. Signed-off-by: Callum Styan <callumstyan@gmail.com>