-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the latest updates and the selection is working now. The original bug for collapsed nodes is fixed as well.
Please fix the linter error then I can approved it.
@@ -34,7 +34,7 @@ export class TableBody extends React.Component<TableBodyProps> { | |||
if (!this.props.nodes) { | |||
return undefined; | |||
} | |||
|
|||
console.log('TableBody.render() selectedRow:'+this.props.selectedRow+' multiSelectedRows:'+this.props.multiSelectedRows); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove print-out
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 <patrick.tasse@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
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