Skip to content

[Lens][Embeddable] Fix unnecessary rerender on view mode change#213902

Merged
dej611 merged 2 commits intoelastic:mainfrom
dej611:fix/203020
Mar 12, 2025
Merged

[Lens][Embeddable] Fix unnecessary rerender on view mode change#213902
dej611 merged 2 commits intoelastic:mainfrom
dej611:fix/203020

Conversation

@dej611
Copy link
Contributor

@dej611 dej611 commented Mar 11, 2025

Summary

Fixes #203020

Improve drill down check before triggering a rerender.

Checklist

@dej611 dej611 added release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// Feature:Lens backport:version Backport to applied version labels v9.1.0 v8.19.0 v8.18.1 v8.17.4 v9.0.1 labels Mar 11, 2025
@elasticmachine
Copy link
Contributor

💚 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
lens 1.5MB 1.5MB +42.0B
@dej611 dej611 marked this pull request as ready for review March 11, 2025 13:56
@dej611 dej611 requested a review from a team as a code owner March 11, 2025 13:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@dej611 dej611 self-assigned this Mar 11, 2025
@elasticmachine
Copy link
Contributor

💚 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
lens 1.5MB 1.5MB +42.0B

History

cc @dej611

@dej611 dej611 merged commit 14b0c61 into elastic:main Mar 12, 2025
28 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13807617498

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 12, 2025
…tic#213902)

## Summary

Fixes elastic#203020

Improve drill down check before triggering a rerender.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 14b0c61)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 12, 2025
…tic#213902)

## Summary

Fixes elastic#203020

Improve drill down check before triggering a rerender.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 14b0c61)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.17 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.17:
- [Performance][Security Solution][2/4] - Timeline Performance (#212478)
8.18
8.x
9.0 Backport failed because of merge conflicts

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 213902

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 12, 2025
…#213902) (#214073)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens][Embeddable] Fix unnecessary rerender on view mode change
(#213902)](#213902)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Marco
Liberati","email":"dej611@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-12T09:09:33Z","message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","backport:version","v9.1.0","v8.19.0","v8.18.1","v8.17.4","v9.0.1"],"title":"[Lens][Embeddable]
Fix unnecessary rerender on view mode
change","number":213902,"url":"https://github.com/elastic/kibana/pull/213902","mergeCommit":{"message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.18","8.17","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213902","number":213902,"mergeCommit":{"message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 12, 2025
#213902) (#214072)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Lens][Embeddable] Fix unnecessary rerender on view mode change
(#213902)](#213902)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Marco
Liberati","email":"dej611@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-12T09:09:33Z","message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","backport:version","v9.1.0","v8.19.0","v8.18.1","v8.17.4","v9.0.1"],"title":"[Lens][Embeddable]
Fix unnecessary rerender on view mode
change","number":213902,"url":"https://github.com/elastic/kibana/pull/213902","mergeCommit":{"message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.18","8.17","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213902","number":213902,"mergeCommit":{"message":"[Lens][Embeddable]
Fix unnecessary rerender on view mode change (#213902)\n\n##
Summary\n\nFixes #203020 \n\nImprove drill down check before triggering
a rerender.\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"14b0c611b1c479fa8e9fdb1c98f2b6c8f55ca12e"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
…tic#213902)

## Summary

Fixes elastic#203020 

Improve drill down check before triggering a rerender.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Lens release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.17.4 v8.18.0 v8.18.1 v8.19.0 v9.0.1 v9.1.0

4 participants