dry run migration

This commit is contained in:
2026-02-27 20:48:18 +03:00
parent 149d230426
commit 8fa951fc93
16 changed files with 12141 additions and 2051 deletions

View File

@@ -16,5 +16,48 @@ export interface DashboardSelection {
source_env_id: string;
target_env_id: string;
replace_db_config?: boolean;
fix_cross_filters?: boolean;
}
// [/DEF:DashboardTypes:Module]
export interface DiffObjectRef {
uuid: string;
title?: string;
target_title?: string;
}
export interface DiffBucket {
create: DiffObjectRef[];
update: DiffObjectRef[];
delete: DiffObjectRef[];
}
export interface DryRunRiskItem {
code: string;
severity: "low" | "medium" | "high";
object_type: string;
object_uuid: string;
message: string;
}
export interface MigrationDryRunResult {
generated_at: string;
selection: DashboardSelection;
selected_dashboard_titles: string[];
diff: {
dashboards: DiffBucket;
charts: DiffBucket;
datasets: DiffBucket;
};
summary: {
dashboards: Record<"create" | "update" | "delete", number>;
charts: Record<"create" | "update" | "delete", number>;
datasets: Record<"create" | "update" | "delete", number>;
selected_dashboards: number;
};
risk: {
score: number;
level: "low" | "medium" | "high";
items: DryRunRiskItem[];
};
}
// [/DEF:DashboardTypes:Module]