From 0ac32122f1494eb8ad2a07216d971a01f5c50f6f Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 11 Feb 2022 13:58:01 +0000 Subject: [PATCH] ui: Make sure saving intentions from topology includes the partition (#12317) --- .changelog/12317.txt | 4 ++++ .../consul-ui/app/routes/dc/services/show/topology.js | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changelog/12317.txt diff --git a/.changelog/12317.txt b/.changelog/12317.txt new file mode 100644 index 0000000000..e2a902a243 --- /dev/null +++ b/.changelog/12317.txt @@ -0,0 +1,4 @@ +```release-note:bug +ui: Include partition data when saving an intention from the topology +visualization +``` diff --git a/ui/packages/consul-ui/app/routes/dc/services/show/topology.js b/ui/packages/consul-ui/app/routes/dc/services/show/topology.js index 153d6564cc..e468ebd90c 100644 --- a/ui/packages/consul-ui/app/routes/dc/services/show/topology.js +++ b/ui/packages/consul-ui/app/routes/dc/services/show/topology.js @@ -20,8 +20,10 @@ export default class TopologyRoute extends Route { item.Datacenter === source.Datacenter && item.SourceName === source.Name && item.SourceNS === source.Namespace && + item.SourcePartition === source.Partition && item.DestinationName === destination.Name && - item.DestinationNS === destination.Namespace + item.DestinationNS === destination.Namespace && + item.DestinationPartition === destination.Partition ); }); if (typeof intention === 'undefined') { @@ -29,8 +31,10 @@ export default class TopologyRoute extends Route { Datacenter: source.Datacenter, SourceName: source.Name, SourceNS: source.Namespace || 'default', + SourcePartition: source.Partition || 'default', DestinationName: destination.Name, DestinationNS: destination.Namespace || 'default', + DestinationPartition: destination.Partition || 'default', }); } else { // we found an intention in the find higher up, so we are updating