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

[8.18] [Performance][Security Solution][4/4] - General Performance changes (#212488) #212990

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

michaelolo24
Copy link
Contributor

Backport

This will backport the following commits from main to 8.18:

Questions ?

Please refer to the Backport tool documentation

…lastic#212488)

## Summary
Part 4 (Final) of elastic#212173

### Testing
For setup see testing section here:
elastic#212173 (comment)

For testing, feel free to add a `console.count('!! - Number of
re-renders:)` to
`x-pack/solutions/security/plugins/security_solution/public/app/home/index.tsx`.
The memoization changes
[here](https://github.com/elastic/kibana/pull/212488/files#diff-b0cdd6dc57dd06dba69d90894de8c88a7bb7c71c0e58753f324eb8ba664a0782R18)
to the plugin template wrapper, prevented 2 extra re-renders, but there
is still an underlying problem of how the `PageTemplateWrapper` is used,
as it causes unmounting and remounting of the security views when
navigating between pages.

The only other change was to rely on React's built in diffing on the
alerts page for the page level filters

(cherry picked from commit 7f32eb0)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detections/pages/detection_engine/detection_engine.tsx
query={query}
timeRange={pageFiltersTimerange}
onInit={setDetectionPageFilterHandler}
indexPattern={indexPattern}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there is this difference when compared to 9.1 PR because of one of Sourcerer's PR. Not sure if it is significant.

Copy link
Contributor Author

@michaelolo24 michaelolo24 Mar 4, 2025

Choose a reason for hiding this comment

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

Yea, I very much expect there most likely will be with the entire sourcerer refactor

@michaelolo24 michaelolo24 merged commit d3a58d9 into elastic:8.18 Mar 4, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants