diff --git a/backend/windmill-api/src/workspaces.rs b/backend/windmill-api/src/workspaces.rs index 1d49d9ef1c..274a250f81 100644 --- a/backend/windmill-api/src/workspaces.rs +++ b/backend/windmill-api/src/workspaces.rs @@ -134,7 +134,6 @@ pub struct WorkspaceSettings { pub code_completion_enabled: bool, pub error_handler: Option, pub error_handler_extra_args: Option, - pub error_handler_muted_on_cancel: Option, } #[derive(FromRow, Serialize, Debug)] @@ -247,7 +246,6 @@ pub struct NewWorkspaceUser { pub struct EditErrorHandler { pub error_handler: Option, pub error_handler_extra_args: Option, - pub error_handler_muted_on_cancel: Option, } async fn list_pending_invites( @@ -835,10 +833,9 @@ async fn edit_error_handler( if let Some(error_handler) = &ee.error_handler { sqlx::query!( - "UPDATE workspace_settings SET error_handler = $1, error_handler_extra_args = $2, error_handler_muted_on_cancel = $3 WHERE workspace_id = $4", + "UPDATE workspace_settings SET error_handler = $1, error_handler_extra_args = $2 WHERE workspace_id = $3", error_handler, ee.error_handler_extra_args, - ee.error_handler_muted_on_cancel.unwrap_or(false), &w_id ) .execute(&mut *tx) @@ -1457,6 +1454,8 @@ struct ScriptMetadata { ws_error_handler_muted: Option, #[serde(skip_serializing_if = "Option::is_none")] priority: Option, + #[serde(skip_serializing_if = "Option::is_none")] + tag: Option, } pub fn is_none_or_false(val: &Option) -> bool { @@ -1659,6 +1658,7 @@ async fn tarball_workspace( dedicated_worker: script.dedicated_worker, ws_error_handler_muted: script.ws_error_handler_muted, priority: script.priority, + tag: script.tag, }; let metadata_str = serde_json::to_string_pretty(&metadata).unwrap(); diff --git a/frontend/src/lib/components/sidebar/UserMenu.svelte b/frontend/src/lib/components/sidebar/UserMenu.svelte index 185ee1c767..967b058751 100644 --- a/frontend/src/lib/components/sidebar/UserMenu.svelte +++ b/frontend/src/lib/components/sidebar/UserMenu.svelte @@ -26,7 +26,12 @@
- +