Skip to content

Render handles for Model Column only when that column selected#1994

Merged
mykalmax merged 1 commit intomainfrom
fix-lineage-model-with-columns
Jan 22, 2024
Merged

Render handles for Model Column only when that column selected#1994
mykalmax merged 1 commit intomainfrom
fix-lineage-model-with-columns

Conversation

@mykalmax
Copy link
Contributor

Render Lineage node handles for Model Column only when that column has been selected to build column level lineage. Rendering handles (blue circle on screenshot) for all nodes with columns upfront slows down rendering lineage and creates unnecessary html elements
Screenshot 2024-01-19 at 5 17 35 PM

Also, show columns for nodes when withColumns: false:

  • when node selected
  • when node has selected columns
  • when hovered over node
  • when main node (selected model)

Render Lineage node handles for Model Column only when that column has been select to build column level lineage
}
}, [lineageIndex, withColumns])

useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant sinse will be updated in next useEffect anyways

withConnected: boolean = true,
withImpacted: boolean = true,
withSecondary: boolean = true,
withColumns: boolean = true,
Copy link
Contributor Author

@mykalmax mykalmax Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withColumns triggers rebuilding and repositioning of the lineage sinse node with columns has different height, so no need for additionally update

@mykalmax mykalmax requested a review from vchan January 20, 2024 01:28
@mykalmax mykalmax changed the title Render handles for Model Column only when that column has been select Render handles for Model Column only when that column selected Jan 20, 2024
@mykalmax mykalmax merged commit 152f70b into main Jan 22, 2024
@mykalmax mykalmax deleted the fix-lineage-model-with-columns branch January 22, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants