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.9] [Security Selection][Detection engine] fixes rule preview performance issues (#164207) #164487

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.9:

Questions ?

Please refer to the Backport tool documentation

… issues (elastic#164207)

## Summary

On every single keyboard type on query input, the whole preview part was
re-rendering. If there are too many alerts, it could take ~150ms-200ms,
for its re-render. Ultimately, making form almost unusable
So, in this PR I'm adding memoization for 2 Preview components, to
resolve this issue

### Before

<img width="2529" alt="Screenshot 2023-08-17 at 17 13 07"
src="https://github.com/elastic/kibana/assets/92328789/c0b137e6-828b-4068-b061-85a5b5ca99f1">

### After

<img width="2523" alt="Screenshot 2023-08-17 at 17 07 56"
src="https://github.com/elastic/kibana/assets/92328789/06a0983c-d8e0-40c1-9b48-fd4bc106e922">

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit cd8a94b)
@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
securitySolution 11.2MB 11.2MB +107.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 13 15 +2
securitySolution 416 420 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 14 16 +2
securitySolution 497 501 +4
total +6

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

cc @vitaliidm

@kibanamachine kibanamachine merged commit e164e8a into elastic:8.9 Aug 22, 2023
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