diff --git a/yb-voyager/cmd/migration_complexity.go b/yb-voyager/cmd/migration_complexity.go index d9868a082..173421980 100644 --- a/yb-voyager/cmd/migration_complexity.go +++ b/yb-voyager/cmd/migration_complexity.go @@ -214,6 +214,7 @@ func getComplexityForLevel(level string, count int) string { // ======================================= Migration Complexity Explanation ========================================== const explainTemplateHTML = ` +

Below is a detailed breakdown of issues by category, showing the count for each impact level.

@@ -238,13 +239,16 @@ const explainTemplateHTML = `

- Level-1 Impact: Resolutions are available with minimal effort.
- Level-2 Impact: Resolutions are available requiring moderate effort.
- Level-3 Impact: Resolutions may not be available or are complex. + Complexity: {{ .Complexity }}
+ Reasoning: {{ .ComplexityRationale }}

- Reasoning: {{ .ComplexityRationale }} +Impact Levels:
+ Level-1: Resolutions are available with minimal effort.
+ Level-2 + : Resolutions are available requiring moderate effort.
+ Level-3: Resolutions may not be available or are complex.

` @@ -252,6 +256,7 @@ const explainTemplateText = `Reasoning: {{ .ComplexityRationale }}` type MigrationComplexityExplanationData struct { Summaries []MigrationComplexityCategorySummary + Complexity string ComplexityRationale string // short reasoning or explanation text } @@ -267,6 +272,7 @@ func buildMigrationComplexityExplanation(sourceDBType string, assessmentReport A } var explanation MigrationComplexityExplanationData + explanation.Complexity = assessmentReport.MigrationComplexity explanation.ComplexityRationale = migrationComplexityRationale explanation.Summaries = buildCategorySummary(assessmentReport.Issues)