From b4e9c3d36f019a464eebbae01225ab0b69262a68 Mon Sep 17 00:00:00 2001 From: Spencer Bliven Date: Mon, 6 Oct 2025 16:45:35 +0200 Subject: [PATCH 01/26] fix: provide datasets to all actions (#2253) * Load context.datasets globally for all actions * Fix exception handling during actions * Improve job-template-simplified.html email * Update tests {{datasets}} is now empty rather than undefined/error for jobs with not datasetList. --- .../job-template-simplified.html | 22 ++-- src/common/utils.ts | 6 + src/config/job-config/actions/actionutils.ts | 50 ++++---- .../actions/switchaction/switchaction.spec.ts | 117 +++++++++++++----- .../actions/switchaction/switchaction.ts | 35 +----- .../validateaction/validateaction.service.ts | 5 +- .../validateaction/validateaction.spec.ts | 23 ++-- .../actions/validateaction/validateaction.ts | 31 +++-- src/config/job-config/jobconfig.interface.ts | 4 +- src/jobs/jobs.controller.utils.ts | 17 ++- 10 files changed, 172 insertions(+), 138 deletions(-) diff --git a/src/common/email-templates/job-template-simplified.html b/src/common/email-templates/job-template-simplified.html index 3aa422ba6..6dedf8f3c 100644 --- a/src/common/email-templates/job-template-simplified.html +++ b/src/common/email-templates/job-template-simplified.html @@ -1,4 +1,8 @@ -{{#with job}} +{{!-- + Minimal job email template. + + This is primarily meant as a starting point for customization. +--}}