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

[Embeddables] Reset, discard changes, or inline editing cancel can cause infinite loading #150920

Open
bhavyarm opened this issue Feb 10, 2023 · 10 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Dashboard Dashboard related features Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@bhavyarm
Copy link
Contributor

Kibana version: 8.7.0 BC1

Elasticsearch version: 8.7.0 BC1

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from staging

Describe the bug: if user clicks on convert to lens ->lens app->replace in dashboard-> switch to view mode - discard changes - then that panel keeps loading infinitely.

Console error:

embeddable.plugin.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getOutput$')
    at embeddable_child_panel_EmbeddableChildPanel.componentDidMount (embeddable.plugin.js:1:41421)
componentDidMount @ embeddable.plugin.js:1
await in componentDidMount (async)
Ss @ kbn-ui-shared-deps-npm.dll.js:398
Wu @ kbn-ui-shared-deps-npm.dll.js:398
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:406
$i @ kbn-ui-shared-deps-npm.dll.js:398
zu @ kbn-ui-shared-deps-npm.dll.js:398
Mu @ kbn-ui-shared-deps-npm.dll.js:398
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:398
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:406
$i @ kbn-ui-shared-deps-npm.dll.js:398
Zi @ kbn-ui-shared-deps-npm.dll.js:398
Ki @ kbn-ui-shared-deps-npm.dll.js:398
Au @ kbn-ui-shared-deps-npm.dll.js:398
(anonymous) @ dashboard.chunk.3.js:1
(anonymous) @ dashboard.chunk.3.js:1
Promise.then (async)
Ct @ dashboard.chunk.3.js:1
(anonymous) @ dashboard.chunk.3.js:1
run @ dashboard.chunk.3.js:1
onClick @ navigation.plugin.js:1
Ue @ kbn-ui-shared-deps-npm.dll.js:398
Xe @ kbn-ui-shared-deps-npm.dll.js:398
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:398
jr @ kbn-ui-shared-deps-npm.dll.js:398
Cr @ kbn-ui-shared-deps-npm.dll.js:398
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:398
Re @ kbn-ui-shared-deps-npm.dll.js:398
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:398
Rr @ kbn-ui-shared-deps-npm.dll.js:398
en @ kbn-ui-shared-deps-npm.dll.js:398
Jt @ kbn-ui-shared-deps-npm.dll.js:398
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:406
$i @ kbn-ui-shared-deps-npm.dll.js:398
Ie @ kbn-ui-shared-deps-npm.dll.js:398
Zt @ kbn-ui-shared-deps-npm.dll.js:398

Panel loading infinitely -
Screen Shot 2023-02-10 at 10 01 03 PM

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Feature:Dashboard Dashboard related features Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Feb 10, 2023
@elasticmachine
Copy link
Contributor

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

@kibanamachine kibanamachine added loe:needs-research This issue requires some research before it can be worked on or estimated impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Feb 10, 2023
@bhavyarm
Copy link
Contributor Author

If you navigate away from this dashboard to dashboard listing page - you see the warning - about unsaved changes(?)
Screen Shot 2023-02-10 at 10 16 39 PM

@stratoula stratoula added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Feb 11, 2023
@stratoula
Copy link
Contributor

This doesn't happen only for converted to Lens panels but in general if you create a by value visualization and then make some changes, switch to view mode and discard the embeddable appears with an error.

@elastic/kibana-presentation do you know which could be the problem here?

@stratoula stratoula added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Feb 13, 2023
@ThomThomson
Copy link
Contributor

I think these might be two different bugs - with the one where discarding changes to a by value Lens results in a The timeRange property is required for the given configuration error being more impactful because it happens to all panels, not just ones which have been converted from TSVB to Lens. I've opened #151039 to track that.

Let us fix that one first, then we can figure out what is going on with this infinite loading bug.

@stratoula
Copy link
Contributor

Cool, possibly is the same root!

@bhavyarm
Copy link
Contributor Author

The same bug when you click on newly available reset action.

reset_does_infinite_loading.mp4

@Heenawter
Copy link
Contributor

Heenawter commented Oct 5, 2023

Verified that this is still happening on 8.11 - this should be resolved by the embeddable refactor initiative (#167429) because an embeddable type change should no longer require an object to be destroyed/recreated.

@stratoula stratoula added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. and removed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jan 26, 2024
@stratoula stratoula changed the title User discarding a converted to lens panel by switching to view mode -> discard changes causes infinte loading on that panel [Embeddables] Reset, discard changes, or inline editing cancel can cause infinite loading Jan 26, 2024
@stratoula
Copy link
Contributor

stratoula commented Jan 26, 2024

Another occurence of the bug. This time when cancelling from the flyout. This is happening when the Defer loading panels before the fold settings are on. When I restored them to the default values, Cancel works as expected!

image

kibana-lens-missing

@stratoula stratoula removed the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jan 30, 2024
@bhavyarm
Copy link
Contributor Author

Still happening in 8.13.0. I converted a TSVB viz to lens viz but choose to switch to view mode without saving option. Kibana displays this error -
Screenshot 2024-02-13 at 2 47 02 PM

and in the browser console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getExplicitInputIsEqual')
    at dashboard.chunk.5.js:1:91076

@markov00 markov00 removed the blocked label Jun 4, 2024
@TomonoriSoejima
Copy link
Contributor

Another case I can run into is when we did import the dashboard using compatibilityMode=true, this error Embeddable has been destroyed showed up in Console log and dashboard stopped loading.

curl -X POST "http://localhost:5601/api/saved_objects/_import?overwrite=true&compatibilityMode=true" -H "kbn-xsrf: true" --form [email protected]

@ThomThomson ThomThomson self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Dashboard Dashboard related features Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

8 participants