From 69fe460538a2df7e21ec4010f99cfb855132c971 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Mon, 27 Apr 2026 20:11:56 -0400 Subject: [PATCH] Add Purge Now action to Manage Servers (#900) - New "Purge Now" button on Manage Servers window with override modes (configured / 1 / 3 / 7 / custom / all). All option uses TRUNCATE. - Right-click menu now mirrors all per-row actions (Edit, Toggle Favorite, Check Server Version, Purge Now, Remove) above existing copy/export. - config.data_retention reworked: @retention_days = NULL respects per-collector schedule, 0 TRUNCATEs every collect.* table, N > 0 overrides every cutoff to N days. Old @truncate_all parameter removed; @retention_days = 0 covers that case. Truncate path snapshots row count before wiping for reporting. Co-Authored-By: Claude Opus 4.7 (1M context) --- Dashboard/ManageServersWindow.xaml | 8 + Dashboard/ManageServersWindow.xaml.cs | 67 ++++++++ Dashboard/PurgeNowDialog.xaml | 53 ++++++ Dashboard/PurgeNowDialog.xaml.cs | 114 +++++++++++++ Dashboard/Services/ServerManager.cs | 88 ++++++++++ install/43_data_retention.sql | 226 +++++++++++++++++++++----- 6 files changed, 515 insertions(+), 41 deletions(-) create mode 100644 Dashboard/PurgeNowDialog.xaml create mode 100644 Dashboard/PurgeNowDialog.xaml.cs diff --git a/Dashboard/ManageServersWindow.xaml b/Dashboard/ManageServersWindow.xaml index 99d1650c..c96e9863 100644 --- a/Dashboard/ManageServersWindow.xaml +++ b/Dashboard/ManageServersWindow.xaml @@ -9,6 +9,13 @@ + + + + + + @@ -91,6 +98,7 @@