-
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
Dashboards and visualizations using non-default space are throwing a type error #29926
Comments
Pinging @elastic/kibana-app |
@ppisljar @lukeelmers another candidate to validate for pre/post revert |
Seems to be OK in the current 6.7.0-SNAPSHOT.
|
I'm also unable to reproduce this on I added a functional test last week which should fail in this exact situation (assuming the test is doing its job, of course): #29459 |
I am still able to reproduce on latest master snapshot |
I can reproduce on the cloud on 7.0 snapshot (2/6 - pre-BC) |
Interesting. I'm at a little bit of a loss on this one; I'm currently running the following snapshots on my machine:
Everything loads as expected for me. I can see the issue in the cloud instance that @rayafratkina posted, but that's the only place I've been able to reproduce. Do we know when that cloud instance was deployed? Maybe it was an older version of the 7.0.0 snapshot? @liza-mae Is there any more direction you could provide on exactly how you are running kibana to reproduce this? |
@lukeelmers can you try to load the sample data from default space first, then switch to non-default and load sample data. It should reproduce that way. Let me know. Thanks. |
Thanks! That did the trick. I took some time to test this in more depth... here are my findings:
To Reproduce
@mikecote Any ideas what might be going on here? The stack trace originates around |
Pinging @elastic/kibana-platform |
@lukeelmers It turns out the migrations I created mutate the data and when you try to add it in the system a second time, data is missing. Another way to reproduce this is to add sample data, remove it, add it again and you will notice dashboards don't load properly. I will create a PR to remove data mutations no later than tomorrow. |
Ah, interesting. Thanks for the insight! Ping me if there’s anything I can do to help or test this out. |
@lukeelmers I have assigned you as a reviewer for the PR that will solve this issue (#30475). Let me know if there's questions or issues with the fix. |
Kibana version: 7.0 snapshots
Elasticsearch version: 7.0 snapshots
Server OS version: Linux
Browser version: Chrome
Browser OS version: Master
Original install method (e.g. download page, yum, from source, etc.):
Snapshots
Describe the bug:
Error loading dashboard in non-default space
Steps to reproduce:
Install ES/Kibana
Load sample dashboards
Create another space, go to that space and load sample data
Try to load dashboard for that sample data
When loading visualization - the TypeError occurs and the visualization does not open
Uncaught (in promise) TypeError: Cannot read property 'create' of undefined
at DashboardPanelUi._callee$ (commons.bundle.js:4)
at tryCatch (vendors.bundle.dll.js:480)
at Generator.invoke [as _invoke] (vendors.bundle.dll.js:480)
at Generator.prototype.(anonymous function) [as next] (https://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:480:448402)
at step (commons.bundle.js:4)
at commons.bundle.js:4
at new Promise ()
at DashboardPanelUi. (commons.bundle.js:4)
at DashboardPanelUi.componentDidMount (commons.bundle.js:4)
at Hi (vendors.bundle.dll.js:217)
The text was updated successfully, but these errors were encountered: