-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 to sessionview search #128680
Fix to sessionview search #128680
Conversation
…ch when verbose mode is OFF
…ch when verbose mode is OFF
@@ -94,11 +94,6 @@ export class ProcessImpl implements Process { | |||
return false; | |||
} | |||
|
|||
// If the process has no children and has not exec'd (fork only), we hide it. | |||
if (child.children.length === 0 && !child.hasExec()) { |
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.
removing this as it was added because of a bug in endpoint where entity_id would change btw the fork and exec calls thus creating a bunch of lone forks.
|
||
const eTop = processEl.offsetTop; |
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.
There was a bug in this check where isVisible would return true even if the process was below the fold. The improved code was borrowed from the isVisible hook.
@@ -32,58 +31,6 @@ export const ChildrenProcessesButton = ({ | |||
); | |||
}; | |||
|
|||
export const SessionLeaderButton = ({ |
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.
cleanup from the old 'verbose mode' UX
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!
Summary
Adds useMemo wrapper on getChildren call in process_tree_node.
Fixed some issues with verbose mode OFF and matching on deeply nested search results.
When searching, regardless of verbose mode setting, if a process matches a search it will be unhidden along with it's lineage (e.g parents up the tree to the root).