-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[lens] changing disabled filter causes lens panel fetch when embedded on dashboard #151223
Comments
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
Blocked by #151224. Dashboard updates searchSessionId updated when disabled filter changes so even if this issue is fixed for lens embeddable, the searchSessionId check would still cause a new search |
#151224 is resolved and this issue is unblocked |
I can't reproduce this issue as it is stated. True, the filter comparison check in the embeddable is faulty, but no network request is created. I think it's probably because of the expression request caching layer. |
Assigned to @nreese since his current work on unifying this "listener" logic across all our embeddables will resolve everything. Thank you! |
…1799) Fixes #151223 and #151128 PR does the following 1) creates `shouldFetch$` method that centralizes logic for checking when an embeddable should fetch. 2) updates Lens and Maps embeddable to use `shouldFetch$` 3) Adds unit tests for Maps embeddable to capture behavior of unique edge cases --------- Co-authored-by: kibanamachine <[email protected]>
…stic#151799) Fixes elastic#151223 and elastic#151128 PR does the following 1) creates `shouldFetch$` method that centralizes logic for checking when an embeddable should fetch. 2) updates Lens and Maps embeddable to use `shouldFetch$` 3) Adds unit tests for Maps embeddable to capture behavior of unique edge cases --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit afb251c)
#151799) (#152838) # Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-03-01T01:47:48Z","message":"[embeddable] centralize should fetch embeddable observable logic (#151799)\n\nFixes #151223 and\r\nhttps://github.com//issues/151128\r\n\r\nPR does the following\r\n1) creates `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT method that centralizes logic for checking\r\nwhen an embeddable should fetch.\r\n2) updates Lens and Maps embeddable to use `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT \r\n3) Adds unit tests for Maps embeddable to capture behavior of unique\r\nedge cases\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"afb251c624552024076ae75890de9c7d5f4458f0","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Visualizations","Feature:Embedding","Team:Presentation","release_note:skip","backport:skip","Feature:Maps","v8.8.0"],"number":151799,"url":"https://github.com/elastic/kibana/pull/151799","mergeCommit":{"message":"[embeddable] centralize should fetch embeddable observable logic (#151799)\n\nFixes #151223 and\r\nhttps://github.com//issues/151128\r\n\r\nPR does the following\r\n1) creates `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT method that centralizes logic for checking\r\nwhen an embeddable should fetch.\r\n2) updates Lens and Maps embeddable to use `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT \r\n3) Adds unit tests for Maps embeddable to capture behavior of unique\r\nedge cases\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"afb251c624552024076ae75890de9c7d5f4458f0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151799","number":151799,"mergeCommit":{"message":"[embeddable] centralize should fetch embeddable observable logic (#151799)\n\nFixes #151223 and\r\nhttps://github.com//issues/151128\r\n\r\nPR does the following\r\n1) creates `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT method that centralizes logic for checking\r\nwhen an embeddable should fetch.\r\n2) updates Lens and Maps embeddable to use `shouldFetch# Backport This will backport the following commits from `main` to `8.7`: - [[embeddable] centralize should fetch embeddable observable logic (#151799)](#151799) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT \r\n3) Adds unit tests for Maps embeddable to capture behavior of unique\r\nedge cases\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"afb251c624552024076ae75890de9c7d5f4458f0"}}]}] BACKPORT--> Co-authored-by: Nathan Reese <[email protected]>
…stic#151799) Fixes elastic#151223 and elastic#151128 PR does the following 1) creates `shouldFetch$` method that centralizes logic for checking when an embeddable should fetch. 2) updates Lens and Maps embeddable to use `shouldFetch$` 3) Adds unit tests for Maps embeddable to capture behavior of unique edge cases --------- Co-authored-by: kibanamachine <[email protected]>
Originally fixed by #41144
Steps to view problem
bug occurs because diff check uses
fastIsEqual
to check filters instead of usingonlyDisabledFiltersChanged
https://github.com/elastic/kibana/blob/main/x-pack/plugins/lens/public/embeddable/embeddable.tsx#L434
The text was updated successfully, but these errors were encountered: