dry run migration
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user