mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 01:18:20 +00:00
fix(ui/lineage): Do not hide transformational nodes in cycles with their parent (#14423)
This commit is contained in:
parent
738f16ce91
commit
b4842b194c
@ -187,8 +187,10 @@ function getChildrenToFilter(
|
||||
for (let node = queue.pop(); node; node = queue.pop()) {
|
||||
const children = adjacencyList[direction].get(node.urn);
|
||||
// Include non-query transformational nodes if they have no children
|
||||
// Have to also include non-query transformational nodes in cycles with their parent, because
|
||||
// those are effectively leaves as well.
|
||||
if (
|
||||
!children?.size &&
|
||||
(!children?.size || (node.inCycle && children.has(parent.urn))) &&
|
||||
!isQuery(node) &&
|
||||
!(direction === LineageDirection.Downstream && isDbt(node) && node.entity?.subtype === SubType.DbtSource)
|
||||
) {
|
||||
|
||||
@ -187,8 +187,10 @@ function getChildrenToFilter(
|
||||
for (let node = queue.pop(); node; node = queue.pop()) {
|
||||
const children = adjacencyList[direction].get(node.urn);
|
||||
// Include non-query transformational nodes if they have no children
|
||||
// Have to also include non-query transformational nodes in cycles with their parent, because
|
||||
// those are effectively leaves as well.
|
||||
if (
|
||||
!children?.size &&
|
||||
(!children?.size || (node.inCycle && children.has(parent.urn))) &&
|
||||
!isQuery(node) &&
|
||||
!(direction === LineageDirection.Downstream && isDbt(node) && node.entity?.subtype === SubType.DbtSource)
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user