From c8f15ec274c0e248201544bd5746a210c0cd7cad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:07:15 +0000 Subject: [PATCH 1/2] Initial plan From 54e2867b00cf0cd47fb4a52fe4114da3994d1820 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:42:58 +0000 Subject: [PATCH 2/2] fix: add 404 handling to deploy and stop workflow pipelines Co-authored-by: intel352 <77607+intel352@users.noreply.github.com> --- admin/config.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/admin/config.yaml b/admin/config.yaml index 263e80c8..074bfced 100644 --- a/admin/config.yaml +++ b/admin/config.yaml @@ -1037,6 +1037,20 @@ workflows: type: step.request_parse config: path_params: [id] + - name: check-exists + type: step.db_query + config: + database: admin-db + query: "SELECT id FROM workflows WHERE id = ?" + params: ["{{index .steps \"parse-request\" \"path_params\" \"id\"}}"] + mode: single + - name: check-found + type: step.conditional + config: + field: "steps.check-exists.found" + routes: + "false": not-found + default: set-now - name: set-now type: step.set config: @@ -1062,6 +1076,12 @@ workflows: config: status: 200 body_from: "steps.get-workflow.row" + - name: not-found + type: step.json_response + config: + status: 404 + body: + error: "workflow not found" # Stop: update workflow status to 'stopped' - method: POST path: "/api/v1/admin/workflows/{id}/stop" @@ -1073,6 +1093,20 @@ workflows: type: step.request_parse config: path_params: [id] + - name: check-exists + type: step.db_query + config: + database: admin-db + query: "SELECT id FROM workflows WHERE id = ?" + params: ["{{index .steps \"parse-request\" \"path_params\" \"id\"}}"] + mode: single + - name: check-found + type: step.conditional + config: + field: "steps.check-exists.found" + routes: + "false": not-found + default: set-now - name: set-now type: step.set config: @@ -1098,6 +1132,12 @@ workflows: config: status: 200 body_from: "steps.get-workflow.row" + - name: not-found + type: step.json_response + config: + status: 404 + body: + error: "workflow not found" # Load workflow from a server-local filesystem path - method: POST path: "/api/v1/admin/workflows/load-from-path"