mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: delete chart, dashboards, dbs with assoc reports (#11801)
* fix: delete chart or dashboards with assoc reports * database constraint to reports and tests * add tests for dashboards and database * fix exceptions default text
This commit is contained in:
committed by
GitHub
parent
13c51d5211
commit
bac84a3aac
@@ -113,6 +113,10 @@ class DatabaseDeleteFailedError(DeleteFailedError):
|
||||
message = _("Database could not be deleted.")
|
||||
|
||||
|
||||
class DatabaseDeleteFailedReportsExistError(DatabaseDeleteFailedError):
|
||||
message = _("There are associated alerts or reports")
|
||||
|
||||
|
||||
class DatabaseSecurityUnsafeError(DBSecurityException):
|
||||
message = _("Stopped an unsafe database connection")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user