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

[Search] Fix search index rerendering unnecessarily #186412

Merged

Conversation

sphilipse
Copy link
Member

Summary

This fixes the search index rerendering on every change, even if nothing actually changed.

@sphilipse sphilipse added release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.15.0 labels Jun 18, 2024
@sphilipse sphilipse requested a review from a team as a code owner June 18, 2024 17:11
@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 18, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

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
enterpriseSearch 2.7MB 2.7MB +192.0B

History

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

@sphilipse sphilipse merged commit 141044e into elastic:main Jun 18, 2024
49 of 50 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 18, 2024
@sphilipse sphilipse added v8.14.2 and removed backport:skip This commit does not require backporting labels Jul 2, 2024
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 3, 2024
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 186412 locally

@sphilipse sphilipse added auto-backport Deprecated - use backport:version if exact versions are needed and removed auto-backport Deprecated - use backport:version if exact versions are needed labels Jul 4, 2024
@sphilipse
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit that referenced this pull request Jul 4, 2024
## Summary

This fixes the search index rerendering on every change, even if nothing
actually changed.

(cherry picked from commit 141044e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

sphilipse added a commit to sphilipse/kibana that referenced this pull request Jul 4, 2024
## Summary

This fixes the search index rerendering on every change, even if nothing
actually changed.

(cherry picked from commit 141044e)
kibanamachine added a commit that referenced this pull request Jul 4, 2024
…187558)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Search] Fix search index rerendering unnecessarily
(#186412)](#186412)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-06-18T21:35:24Z","message":"[Search]
Fix search index rerendering unnecessarily (#186412)\n\n##
Summary\r\n\r\nThis fixes the search index rerendering on every change,
even if nothing\r\nactually
changed.","sha":"141044e51ec77ea7c5e68c9311a381aecb515497","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","Team:Search","auto-backport","v8.15.0","v8.14.2"],"number":186412,"url":"https://github.com/elastic/kibana/pull/186412","mergeCommit":{"message":"[Search]
Fix search index rerendering unnecessarily (#186412)\n\n##
Summary\r\n\r\nThis fixes the search index rerendering on every change,
even if nothing\r\nactually
changed.","sha":"141044e51ec77ea7c5e68c9311a381aecb515497"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/186412","number":186412,"mergeCommit":{"message":"[Search]
Fix search index rerendering unnecessarily (#186412)\n\n##
Summary\r\n\r\nThis fixes the search index rerendering on every change,
even if nothing\r\nactually
changed.","sha":"141044e51ec77ea7c5e68c9311a381aecb515497"}},{"branch":"8.14","label":"v8.14.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 4, 2024
@mistic
Copy link
Member

mistic commented Jul 4, 2024

This PR didn't make it on time to be included in the latest BC for v8.14.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants