Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix time graph filtering and collapsing #1131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PatrickTasse
Copy link
Contributor

@PatrickTasse PatrickTasse commented Oct 17, 2024

Update the filtering of empty nodes to include visible nodes even if any of their parent is filtered-out. Recursively replace filtered-out nodes by their visible children, if any, but only if the filtered-out parent node is not collapsed.

In TimeGraphOutputComponent update the arrows layer after empty nodes have been determined, and filter out empty nodes from the rowIds passed to the arrows layer.

Fixes #1132

Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

Please fix linting error. Meanwhile I'll review the change

@bhufmann
Copy link
Collaborator

I noticed some issues when selection rows when filtering is ongoing and after all rows are filtered out.

When filtering is ongoing, and I click on the tree, it seems that the tree is scrolling to a different location:

timeline-chart-filter-selection-bug2

When filtering is finished, the selection is not synced correctly from tree to graph. See video when selecting with left mouse button:
timeline-chart-filter-selection-bug

Update the filtering of empty nodes to include visible nodes even if any
of their parent is filtered-out. Recursively replace filtered-out nodes
by their visible children, if any, but only if the filtered-out parent
node is not collapsed.

In TimeGraphOutputComponent update the arrows layer after empty nodes
have been determined, and filter out empty nodes from the rowIds passed
to the arrows layer.

Update getIndexOfNode() in utils to consider the list of empty nodes.

Fix names of selectedRow and multiSelectedRows in TableBodyProps.

Fixes eclipse-cdt-cloud#1132

Signed-off-by: Patrick Tasse <[email protected]>
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.

Time graph filtering and collapsing not working properly.
2 participants