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 to sessionview search #128680

Merged
merged 5 commits into from
Mar 28, 2022
Merged

Conversation

mitodrummer
Copy link
Contributor

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).

@mitodrummer mitodrummer added bug Fixes for quality problems that affect the customer experience v8.2.0 labels Mar 28, 2022
@@ -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()) {
Copy link
Contributor Author

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;
Copy link
Contributor Author

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 = ({
Copy link
Contributor Author

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

@mitodrummer mitodrummer added backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes labels Mar 28, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
sessionView 50.3KB 50.3KB +85.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@zizhouW zizhouW left a comment

Choose a reason for hiding this comment

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

LGTM!

@mitodrummer mitodrummer merged commit 065b585 into elastic:main Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants