From 5b79d2d6efa898390868dcc0a9b4e9209373576d Mon Sep 17 00:00:00 2001 From: Mike Minutillo Date: Wed, 14 Oct 2026 12:59:05 +0800 Subject: [PATCH 1/2] Map PlannedToDecommission user indicator to NServiceBusEndpoint --- src/Particular.LicensingComponent/ThroughputCollector.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Particular.LicensingComponent/ThroughputCollector.cs b/src/Particular.LicensingComponent/ThroughputCollector.cs index 945640ea10..ac4415a252 100644 --- a/src/Particular.LicensingComponent/ThroughputCollector.cs +++ b/src/Particular.LicensingComponent/ThroughputCollector.cs @@ -301,7 +301,12 @@ string CleanseSanitizedName(string endpointName) { return throughputQuery == null ? endpointName : throughputQuery.SanitizedEndpointNameCleanser(endpointName); } - static string? UserIndicator(IGrouping endpoint) => endpoint.FirstOrDefault(s => !string.IsNullOrEmpty(s.UserIndicator))?.UserIndicator; + static string? UserIndicator(IGrouping endpoint) => endpoint.FirstOrDefault(s => !string.IsNullOrEmpty(s.UserIndicator))?.UserIndicator switch + { + // HINT: PlannedToDecommission is a legacy value. Only endpoints would have been marked with this user indicator. + var userIndicator when userIndicator == Contracts.UserIndicator.PlannedToDecommission.ToString() => Contracts.UserIndicator.NServiceBusEndpoint.ToString(), + var userIndicator => userIndicator + }; static string? EndpointScope(IGrouping endpoint) => endpoint.FirstOrDefault(s => !string.IsNullOrEmpty(s.Scope))?.Scope; From 35242f9abd61014a209ceabd4bda32285f2cee4a Mon Sep 17 00:00:00 2001 From: Mike Minutillo Date: Wed, 14 Oct 2026 14:29:13 +0800 Subject: [PATCH 2/2] Fix test --- ...Throughput_Tests.Should_generate_correct_report.approved.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1a2234c3e8..ef7900a1ea 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 @@ -120,7 +120,7 @@ "NameHash": "BBF022C092922A8B3A63455FC7583EAF35840E66F01B73AF997EACDCA8ABCEA4", "Throughput": 47, "EndpointIndicators": [], - "UserIndicator": "PlannedToDecommission", + "UserIndicator": "NServiceBusEndpoint", "Scope": "", "ScopeHash": "", "DailyThroughputFromBroker": [