From ba21b72e62875d26c54deb0ad7270d415e912862 Mon Sep 17 00:00:00 2001 From: Phil Bastian Date: Thu, 23 Jul 2026 15:17:27 +0800 Subject: [PATCH 1/2] include scopehash in throughput report --- src/Directory.Packages.props | 2 +- src/Particular.LicensingComponent/ThroughputCollector.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 0ca0c404c2..4278721570 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -67,7 +67,7 @@ - + diff --git a/src/Particular.LicensingComponent/ThroughputCollector.cs b/src/Particular.LicensingComponent/ThroughputCollector.cs index 925cc203c0..b2632ee92e 100644 --- a/src/Particular.LicensingComponent/ThroughputCollector.cs +++ b/src/Particular.LicensingComponent/ThroughputCollector.cs @@ -132,7 +132,8 @@ public async Task GenerateThroughputReport(string spVersion, DateT UserIndicator = endpointData.UserIndicator, EndpointIndicators = endpointData.EndpointIndicators ?? [], NoDataOrSendOnly = endpointData.ThroughputData.Sum() == 0, - Scope = endpointData.Scope ?? "", + ScopeHash = string.IsNullOrEmpty(endpointData.Scope) ? "" : OneWayHasher.CalculateOneWayHash(endpointData.Scope), + Scope = masker.Mask(endpointData.Scope ?? ""), Throughput = endpointData.ThroughputData.MaxDailyThroughput(), DailyThroughputFromAudit = endpointData.ThroughputData.FromSource(ThroughputSource.Audit).Select(s => new DailyThroughput { DateUTC = s.DateUTC, MessageCount = s.MessageCount }).ToArray(), DailyThroughputFromMonitoring = endpointData.ThroughputData.FromSource(ThroughputSource.Monitoring).Select(s => new DailyThroughput { DateUTC = s.DateUTC, MessageCount = s.MessageCount }).ToArray(), From ae79ace4ebe625012b089e9e2551f67944195d77 Mon Sep 17 00:00:00 2001 From: Phil Bastian Date: Fri, 24 Jul 2026 14:58:18 +0800 Subject: [PATCH 2/2] update approval test --- ...oughput_Tests.Should_generate_correct_report.approved.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt b/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt index df4c5ac553..64bf7b5097 100644 --- a/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt +++ b/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt @@ -18,6 +18,7 @@ "KnownEndpoint" ], "Scope": "", + "ScopeHash": "", "DailyThroughputFromBroker": [ { "DateUTC": "2024-04-24", @@ -48,6 +49,7 @@ "KnownEndpoint" ], "Scope": "", + "ScopeHash": "", "DailyThroughputFromBroker": [ { "DateUTC": "2024-04-24", @@ -78,6 +80,7 @@ "KnownEndpoint" ], "Scope": "", + "ScopeHash": "", "DailyThroughputFromBroker": [ { "DateUTC": "2024-04-24", @@ -116,6 +119,7 @@ "EndpointIndicators": [], "UserIndicator": "PlannedToDecommission", "Scope": "", + "ScopeHash": "", "DailyThroughputFromBroker": [ { "DateUTC": "2024-04-24", @@ -136,6 +140,7 @@ "EndpointIndicators": [], "UserIndicator": "NotNServiceBusEndpoint", "Scope": "", + "ScopeHash": "", "DailyThroughputFromBroker": [], "DailyThroughputFromAudit": [], "DailyThroughputFromMonitoring": []