Encoded the fqn name on Node expand for lineage api endpoint (#8864)

This commit is contained in:
Ashish Gupta 2022-11-18 17:58:42 +05:30 committed by GitHub
parent e3ea6d0699
commit 1de27af02f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ import {
prepareLabel,
} from './CommonUtils';
import { isLeafNode } from './EntityUtils';
import { getEncodedFqn } from './StringsUtils';
import SVGIcons from './SvgUtils';
import { getEntityLink } from './TableUtils';
@ -287,7 +288,15 @@ export const getLineageData = (
e.stopPropagation();
onSelect(false, {} as SelectedNode);
if (node) {
loadNodeHandler(node, 'from');
loadNodeHandler(
{
...node,
fullyQualifiedName: getEncodedFqn(
node.fullyQualifiedName ?? ''
),
},
'from'
);
}
}}>
{!isLeafNode(lineageLeafNodes, node?.id as string, 'from') &&
@ -313,7 +322,15 @@ export const getLineageData = (
e.stopPropagation();
onSelect(false, {} as SelectedNode);
if (node) {
loadNodeHandler(node, 'to');
loadNodeHandler(
{
...node,
fullyQualifiedName: getEncodedFqn(
node.fullyQualifiedName ?? ''
),
},
'to'
);
}
}}>
{!isLeafNode(lineageLeafNodes, node?.id as string, 'to') &&