fix: use lineage config while fetching child nodes (#11828)

* fix: use lineage config while fetching child nodes

* fix: css issues

* fix: remove css important
This commit is contained in:
karanh37 2023-06-02 11:16:41 +05:30 committed by GitHub
parent fdeea71671
commit 89487743d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 10 deletions

View File

@ -123,7 +123,7 @@ export const CustomEdge = ({
data.label ? (
<LineageEdgeIcon offset={3} x={edgeCenterX} y={edgeCenterY}>
<Button
className="custom-edge-pipeline-button"
className="d-flex justify-center items-center custom-edge-pipeline-button"
data-testid="pipeline-label"
icon={<PipelineIcon />}
type="primary"
@ -181,7 +181,7 @@ export const CustomEdge = ({
data.isExpanded && (
<LineageEdgeIcon offset={3} x={edgeCenterX} y={edgeCenterY}>
<Button
className="custom-edge-pipeline-button"
className="d-flex justify-center items-center custom-edge-pipeline-button"
data-tesid="function-icon"
icon={<FunctionIcon />}
type="primary"

View File

@ -270,7 +270,9 @@ const EntityLineageComponent: FunctionComponent<EntityLineageProp> = ({
try {
const res = await getLineageByFQN(
node.fullyQualifiedName ?? '',
node.type
node.type,
lineageConfig.upstreamDepth,
lineageConfig.downstreamDepth
);
if (res && entityLineage) {
setNodeLoading((prev) => ({ ...prev, id: node.id, state: false }));
@ -287,7 +289,7 @@ const EntityLineageComponent: FunctionComponent<EntityLineageProp> = ({
);
}
},
[entityLineage, setNodeLoading]
[entityLineage, lineageConfig, setNodeLoading]
);
const setLeafNode = useCallback(

View File

@ -58,7 +58,7 @@ const TableExpandButton = ({
return (
<Button
ghost
className="custom-node-expand-button p-0"
className="absolute custom-node-expand-button p-0"
icon={
<SVGIcons
alt="plus"

View File

@ -71,10 +71,7 @@
}
.custom-edge-pipeline-button {
background: #8d6af1;
display: flex;
justify-content: center;
align-items: center;
background: @primary-color;
color: @white;
height: 32px;
width: 32px;
@ -120,7 +117,6 @@
width: 150px;
}
.custom-node-expand-button {
position: absolute;
top: -14px;
left: -12px;
cursor: pointer;