Open
Description
Problem Description:
When importing a dashboard in Apache Superset and overwriting an old Dashboard, the system exhibits inconsistent behavior. I export a Dashboard from a Supersetinstance and import it to an other instance.
Although the versions and configurations of the Superset instances are identical, the following issues occur after import:
- some charts are placed in the wrong tabs or outside the intended tabs.
- a random amount of Charts are duplicated: they appear both in the intended tab and outside, and deleting one of the duplicated charts removes both charts.
- an error message is displayed where the moved charts should be displayed: "There is no diagram definition associated with this component. Could it have been deleted? Delete this container and save to remove this message."
Steps to Reproduce:
- export a dashboard from Superset Instance 1 using the export function
- import the entire export folder (including YAML files) to Superset Instance 2, overwriting the existing dashboard
- observe that charts are misplaced or duplicated
Expected Behavior:
- the imported dashboard should appear identical on Instance 2 as it does on Instance 1.
Actual Behavior:
- charts are not in their intended position and are partially duplicated.
Environment:
Superset Version: 4.0.2 with internal Postgres database version 15
Execution Environment: Docker Container
Connected Databases: PostGIS database version 17-3.5-alpine
Workaround:
- the issue does not occur if all existing dashboards, datasets and charts in the Supersetinstance are deleted before importing
Priority:
- due to the existing workaround, the priority is not high, but resolving the issue would make the import process more efficient.
Additional Information:
- no related issues or documentation could be found that explain this behavior. Currently, the only known solution is to clean the instance before importing.