From 391cfbc50cea76a7c1d483988edefdcf0bb75983 Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Sun, 30 Mar 2025 12:26:50 -0700 Subject: [PATCH] feat: Enhance notification form handling and logging improvements - Added a hidden input for the notification form to ensure proper handling of the 'is_enabled' state. - Updated the configuration loading to allow skipping SSL verification with a new environment variable. - Introduced temporary log file creation for rclone commands, improving error handling and logging of file processing. - Enhanced the transfer executor to parse rclone logs for file metadata, ensuring accurate tracking of processed files. - Added debug logging for received form data in the notification service update handler to aid in troubleshooting. --- components/notifications/form/form.templ | 1 + internal/config/config.go | 16 +-- internal/scheduler/notification.go | 2 + internal/scheduler/transfer_executor.go | 133 ++++++++++++++++++++- internal/web/handlers/settings_handlers.go | 37 +++++- 5 files changed, 178 insertions(+), 11 deletions(-) diff --git a/components/notifications/form/form.templ b/components/notifications/form/form.templ index 3a1aedb..4cddb99 100644 --- a/components/notifications/form/form.templ +++ b/components/notifications/form/form.templ @@ -127,6 +127,7 @@ templ NotificationForm(ctx context.Context, data types.NotificationFormData) {