From 448283d22f2dfb6ce925fbbdc1746f2aab7aba00 Mon Sep 17 00:00:00 2001 From: Oleksandr Slynko Date: Mon, 13 Apr 2026 16:33:51 +0100 Subject: [PATCH] Skip follower databases with no changes in diff output Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- KustoSchemaTools/KustoSchemaHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KustoSchemaTools/KustoSchemaHandler.cs b/KustoSchemaTools/KustoSchemaHandler.cs index c5be0d9..ee1d03f 100644 --- a/KustoSchemaTools/KustoSchemaHandler.cs +++ b/KustoSchemaTools/KustoSchemaHandler.cs @@ -44,7 +44,7 @@ public async Task GenerateStructuredDiff(string path, stri structuredDiffs.Add(ConvertToStructuredDiff(clusterDiff.Cluster.Name, clusterDiff.Cluster.Url, databaseName, clusterDiff.Changes)); } - foreach (var followerDiff in diffData.FollowerDiffs) + foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0)) { structuredDiffs.Add(ConvertToStructuredDiff(followerDiff.ConnectionKey, followerDiff.ConnectionKey, followerDiff.DatabaseName, followerDiff.Changes)); } @@ -192,7 +192,7 @@ private async Task BuildDiffComputationResult(string path } } - foreach (var followerDiff in diffData.FollowerDiffs) + foreach (var followerDiff in diffData.FollowerDiffs.Where(f => f.Changes.Count > 0)) { if (logDetails) {