fix: delete provisioned dashboard in unified if forceDeleteRules is set (#113839)

This commit is contained in:
Rafael Bortolon Paulovic
2025-11-14 14:11:05 +01:00
committed by GitHub
parent c2b15ca786
commit 5a111bc087
5 changed files with 189 additions and 2 deletions
@@ -1698,7 +1698,7 @@ func (dr *DashboardServiceImpl) DeleteInFolders(ctx context.Context, orgID int64
}
for _, dash := range dashes {
errDel := dr.DeleteDashboard(ctx, dash.ID, dash.UID, orgID)
errDel := dr.deleteDashboard(ctx, dash.ID, dash.UID, orgID, false)
if errDel != nil {
dr.log.Error("failed to delete dashboard inside folder", "dashboardUID", dash.UID, "folderUIDs", folderUIDs, "error", errDel)
}