diff --git a/backend/windmill-api-flows/src/flows.rs b/backend/windmill-api-flows/src/flows.rs index 1f14762871..761cf8b176 100644 --- a/backend/windmill-api-flows/src/flows.rs +++ b/backend/windmill-api-flows/src/flows.rs @@ -1385,10 +1385,7 @@ async fn update_flow( if is_new_path { // Everything left at the old path is a draft this deploy didn't consume // — teammates' rows, and the deployer's own when the caller asked us to - // keep it. Carry them rather than strand them. Only the deployer's own - // row is restamped: this runs on any path-changing deploy, content edits - // included, and a teammate whose draft claimed the new head would lose - // their stale-draft warning. + // keep it. Carry them rather than strand them. let outcome = windmill_common::user_drafts::move_drafts_for_path( &mut tx, &w_id, diff --git a/backend/windmill-api-scripts/src/scripts.rs b/backend/windmill-api-scripts/src/scripts.rs index 27f20f2916..eb8e198e29 100644 --- a/backend/windmill-api-scripts/src/scripts.rs +++ b/backend/windmill-api-scripts/src/scripts.rs @@ -2137,10 +2137,7 @@ async fn create_script_internal<'c>( if p_path != &ns.path { // Everything left at the old path is a draft this deploy didn't // consume — teammates' rows, and the deployer's own when the caller - // asked us to keep it. Carry them rather than strand them. Only the - // deployer's own row is restamped: this runs on any path-changing - // deploy, content edits included, and a teammate whose draft claimed - // the new head would lose their stale-draft warning. + // asked us to keep it. Carry them rather than strand them. let outcome = windmill_common::user_drafts::move_drafts_for_path( &mut tx, &w_id, diff --git a/backend/windmill-api/src/apps.rs b/backend/windmill-api/src/apps.rs index 1922f06e97..f36f7ef7fc 100644 --- a/backend/windmill-api/src/apps.rs +++ b/backend/windmill-api/src/apps.rs @@ -3450,10 +3450,7 @@ async fn update_app_internal<'a>( if npath != path { // Everything left at the old path is a draft this deploy didn't consume // — teammates' rows, and the deployer's own when the caller asked us to - // keep it. Carry them rather than strand them. Only the deployer's own - // row is restamped: this runs on any path-changing deploy, content edits - // included, and a teammate whose draft claimed the new head would lose - // their stale-draft warning. + // keep it. Carry them rather than strand them. let outcome = windmill_common::user_drafts::move_drafts_for_path( &mut tx, &w_id, diff --git a/backend/windmill-api/src/drafts.rs b/backend/windmill-api/src/drafts.rs index 31360a04f8..e38581b4c6 100644 --- a/backend/windmill-api/src/drafts.rs +++ b/backend/windmill-api/src/drafts.rs @@ -415,9 +415,7 @@ fn draft_lineage(kind: UserDraftItemKind, value: &str) -> Option