From 564746add56cfe2be459b3dbd092e5c9a203bc6d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 9 Jan 2026 07:23:45 +0000 Subject: [PATCH] fix tests --- backend/tests/worker.rs | 5 ----- backend/windmill-api-client/src/lib.rs | 8 ++------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index 0a4cb580ae..381fe21db2 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -2080,7 +2080,6 @@ async fn test_flow_lock_all(db: Pool) -> anyhow::Result<()> { .get_flow_by_path("test-workspace", "g/all/flow_lock_all", None) .await .unwrap() - .into_inner() .open_flow .value .modules; @@ -2363,7 +2362,6 @@ async fn test_script_schedule_handlers(db: Pool) -> anyhow::Result<()> no_flow_overlap: None, summary: None, tag: None, - paused_until: None, cron_version: None, description: None, }; @@ -2434,7 +2432,6 @@ async fn test_script_schedule_handlers(db: Pool) -> anyhow::Result<()> summary: None, no_flow_overlap: None, tag: None, - paused_until: None, cron_version: None, description: None, }, @@ -2520,7 +2517,6 @@ async fn test_flow_schedule_handlers(db: Pool) -> anyhow::Result<()> { no_flow_overlap: None, summary: None, tag: None, - paused_until: None, cron_version: None, description: None, }; @@ -2592,7 +2588,6 @@ async fn test_flow_schedule_handlers(db: Pool) -> anyhow::Result<()> { summary: None, no_flow_overlap: None, tag: None, - paused_until: None, cron_version: None, description: None, }, diff --git a/backend/windmill-api-client/src/lib.rs b/backend/windmill-api-client/src/lib.rs index 83cb6e4385..a407cb9bbd 100644 --- a/backend/windmill-api-client/src/lib.rs +++ b/backend/windmill-api-client/src/lib.rs @@ -733,12 +733,8 @@ pub mod types { #[derive(Clone, Debug, Deserialize)] pub struct Flow { pub path: String, - pub summary: String, - #[serde(default)] - pub description: Option, - pub value: serde_json::Value, - #[serde(default)] - pub schema: Option, + #[serde(flatten)] + pub open_flow: OpenFlow, #[serde(flatten)] pub extra: HashMap, }