villebro commented on issue #17238:
URL: https://github.com/apache/superset/issues/17238#issuecomment-954415090


   If I understand this correctly, the real issue is the fact that we don't 
check which metrics are in use when attempting to delete them. To check this, 
we would need to add link table linking charts to metrics, similar to how we do 
between dashboards and charts or charts and datasets. Then we'd just check if 
the metric is referenced by charts when trying to delete it, similar to how we 
do when trying to delete a dataset that's referenced by charts: 
   
![image](https://user-images.githubusercontent.com/33317356/139374221-7272b640-0906-4c71-83fd-36e1510a835b.png)
   


-- 
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]

Reply via email to