From 590e16298cbeb5e4db613fd7046ecad08ab713a2 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Mon, 28 Oct 2024 16:41:30 -0500 Subject: [PATCH 1/3] fix: use correct key for destination `CurrentSourceInfoKey` --- .../Routing/RoutingFeedbackManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs index 0af3bfa5..0da17f9d 100644 --- a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs +++ b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs @@ -175,6 +175,7 @@ namespace PepperDash.Essentials.Core.Routing }); var source = sourceListItem.Value; + var sourceKey = sourceListItem.Key; if (source == null) { @@ -194,7 +195,7 @@ namespace PepperDash.Essentials.Core.Routing // Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Got Source {source}", this, source); destination.CurrentSourceInfo = source; - destination.CurrentSourceInfoKey = source.SourceKey; + destination.CurrentSourceInfoKey = sourceKey; } private TieLine GetRootTieLine(TieLine tieLine) From db2d8a213d866323bafaf08ee076f801204ef7d8 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 29 Oct 2024 10:59:26 -0500 Subject: [PATCH 2/3] fix: get order of source & source key correct --- .../Routing/RoutingFeedbackManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs index 0da17f9d..39782fc3 100644 --- a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs +++ b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs @@ -192,10 +192,11 @@ namespace PepperDash.Essentials.Core.Routing return; } - // Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Got Source {source}", this, source); + //Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Got Source {@source} with key {sourceKey}", this, source, sourceKey); - destination.CurrentSourceInfo = source; destination.CurrentSourceInfoKey = sourceKey; + destination.CurrentSourceInfo = source; + } private TieLine GetRootTieLine(TieLine tieLine) From 86ba9e0f1693092097e3aa1409a2860f380a2300 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 30 Oct 2024 10:19:55 -0500 Subject: [PATCH 3/3] fix: set currentSourceKey & currentSource in order --- .../Routing/RoutingFeedbackManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs index 39782fc3..4e2ccc5b 100644 --- a/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs +++ b/src/PepperDash.Essentials.Core/Routing/RoutingFeedbackManager.cs @@ -187,8 +187,8 @@ namespace PepperDash.Essentials.Core.Routing Name = sourceTieLine.SourcePort.Key, }; - destination.CurrentSourceInfo = tempSourceListItem; ; destination.CurrentSourceInfoKey = "$transient"; + destination.CurrentSourceInfo = tempSourceListItem; return; }