kevinwen2k opened a new issue #16514: URL: https://github.com/apache/superset/issues/16514
Here’s what I did: 1. Click the link on the first 2 screenshots 2. I got the 3rd screenshot with uri /superset/dashboard/8/. 3. Expand the See more on the right side, I got the 4th screenshot. 4. When I go to /dashboard/list/, I can see the broken dashboard on the top as 5th screenshot. Apparently, the new dashboard was created already, when I clicked both links in the first 2 screenshots. The problem comes from the API call /api/v1/dashboard/8/datasets due to dashboard created without charts as the 6th screenshot. The root cause of this error is the dashboard.datasources is an empty set throwing an exception at line 117 in file dao.py in the 7th screenshot. The following is the tracing code: ``` get_dashboard_and_datasets_changed_on, dao.py:116 <lambda>, api.py:279 wrapper, cache.py:181 dispatch_request, app.py:1936 full_dispatch_request, app.py:1950 wsgi_app, app.py:2447 __call__, app.py:2464 __call__, cli.py:337 debug_application, __init__.py:304 execute, serving.py:314 run_wsgi, serving.py:323 handle_one_request, serving.py:379 handle, server.py:427 handle, serving.py:345 __init__, socketserver.py:747 finish_request, socketserver.py:360 process_request_thread, socketserver.py:683 run, threading.py:870 _bootstrap_inner, threading.py:932 _bootstrap, threading.py:890 ``` The same problem happens at line 94 on the same file (dao.py) when another api /api/v1/dashboard/8/charts is hit without charts on the dashboard shown as the 8th screenshot. To successfully create a new dashboard, I have to create a chart and then create a new dashboard from there as the 9th screenshot. I’m using superset 1.2 version. Does anyone have the same issue? Thanks.         -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
