Stefan781 opened a new issue, #26734: URL: https://github.com/apache/superset/issues/26734
### Bug description I have a dataset for which I have defined some metrics. The dataset is used in some visualizations that are then used inside a dashboard. When I export the dashboard, the dataset is exported properly - the metrics are included in the YAML file. However, if I import the dashboard on a different instance of Superset, the metrics seem to not be imported and the charts raise an error when accessed, informing that the metrics are missing. ### How to reproduce the bug 1. Create a new dataset. 2. Add a custom metric to it. 3. Use the dataset in a visualization. 4. Add the visualization to a new dashboard. 5. Export the dashboard. Verify that the metrics are included into the file. 6. Import the dashboard in a new Superset instance. 7. The metrics are not imported. ### Screenshots/recordings _No response_ ### Superset version 3.1.0 ### Python version Not applicable ### Node version Not applicable ### Browser Not applicable ### Additional context I am currently using the 3.1.0 Docker image, but found the issue while using the 3.0.2. There are no errors in the logs when I import the dashboard. ### Checklist - [X] I have searched Superset docs and Slack and didn't find a solution to my problem. - [X] I have searched the GitHub issue tracker and didn't find a similar bug report. - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- 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]
