From 2bed97bbcce8ff236f5b16c0a986104e35913492 Mon Sep 17 00:00:00 2001 From: dieriba Date: Sun, 26 Jan 2025 22:09:49 +0100 Subject: [PATCH] nits: show error and documentation link, add better name (#5141) --- .../windmill-api/src/postgres_triggers/trigger.rs | 5 +++-- .../postgres/PostgresTriggerEditorInner.svelte | 12 ++++++++---- .../triggers/postgres/RelationPicker.svelte | 5 ++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/backend/windmill-api/src/postgres_triggers/trigger.rs b/backend/windmill-api/src/postgres_triggers/trigger.rs index 2e84c0c7ec..aba36d81c3 100644 --- a/backend/windmill-api/src/postgres_triggers/trigger.rs +++ b/backend/windmill-api/src/postgres_triggers/trigger.rs @@ -76,7 +76,7 @@ impl PostgresSimpleClient { .port(database.port) .user(&database.user) .replication_mode(rust_postgres::config::ReplicationMode::Logical); - + if !database.password.is_empty() { config.password(&database.password); } @@ -389,7 +389,8 @@ async fn listen_to_transactions( } } Err(err) => { - tracing::error!("Postgres trigger error while trying to start_logical_replication_streaming: {}", err.to_string()) + tracing::error!("Postgres trigger error while trying to start logical replication streaming: {}", &err); + disable_with_error(&postgres_trigger, &db, err.to_string()).await } } } diff --git a/frontend/src/lib/components/triggers/postgres/PostgresTriggerEditorInner.svelte b/frontend/src/lib/components/triggers/postgres/PostgresTriggerEditorInner.svelte index 29bbbf0acd..6c0934817d 100644 --- a/frontend/src/lib/components/triggers/postgres/PostgresTriggerEditorInner.svelte +++ b/frontend/src/lib/components/triggers/postgres/PostgresTriggerEditorInner.svelte @@ -443,7 +443,7 @@ bind:selected={transaction_to_track} /> -
+

Select the tables to track. You can choose to track all tables in your database, @@ -456,6 +456,7 @@

Basic

Choose the relations to track without worrying about the underlying mechanics of creating a @@ -469,6 +470,7 @@

Advanced

Select a specific publication from your database to track, and manage it by creating, @@ -488,10 +490,11 @@ -

Columns

Enter the names of the columns you want to track.
If no columns are specified, all columns in the table will be @@ -81,7 +82,9 @@

Where Clause

+ >

Where Clause

Use this field to define a row filter for the selected table. The WHERE