mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-27 07:28:30 +00:00
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:
parent
fdeea71671
commit
89487743d3
@ -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"
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user