You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancements to YBD payload after assessment refactoring (#2238)
* Bumped up the payload version to 1.2
* Updated the AssessmentIssue payload for YBD to be in sync with standard struct format
* Adding MigrationComplexityExplanation to ybd assessment payload
Copy file name to clipboardexpand all lines: yb-voyager/cmd/common.go
+24-14
Original file line number
Diff line number
Diff line change
@@ -1129,27 +1129,37 @@ type AssessMigrationDBConfig struct {
1129
1129
// =============== for yugabyted controlplane ==============//
1130
1130
// TODO: see if this can be accommodated in controlplane pkg, facing pkg cyclic dependency issue
1131
1131
1132
-
varASSESS_MIGRATION_YBD_PAYLOAD_VERSION="1.1"// version(s) till now: 1.0, 1.1
1132
+
/*
1133
+
Version History
1134
+
1.0: Introduced AssessmentIssue field for storing assessment issues in flattened format
1135
+
1.1: Added TargetDBVersion and AssessmentIssueYugabyteD.MinimumVersionFixedIn
1136
+
1.2: Syncing it with original AssessmentIssue(adding fields Category, CategoryDescription, Type, Name, Description, Impact, ObjectType) and MigrationComplexityExplanation;
1137
+
*/
1138
+
varASSESS_MIGRATION_YBD_PAYLOAD_VERSION="1.2"
1133
1139
1134
1140
typeAssessMigrationPayloadstruct {
1135
-
PayloadVersionstring
1136
-
VoyagerVersionstring
1137
-
TargetDBVersion*ybversion.YBVersion
1138
-
MigrationComplexitystring
1139
-
SchemaSummary utils.SchemaSummary
1140
-
AssessmentIssues []AssessmentIssueYugabyteD
1141
-
SourceSizeDetailsSourceDBSizeDetails
1142
-
TargetRecommendationsTargetSizingRecommendations
1143
-
ConversionIssues []utils.AnalyzeSchemaIssue
1141
+
PayloadVersionstring
1142
+
VoyagerVersionstring
1143
+
TargetDBVersion*ybversion.YBVersion
1144
+
MigrationComplexitystring
1145
+
MigrationComplexityExplanationstring
1146
+
SchemaSummary utils.SchemaSummary
1147
+
AssessmentIssues []AssessmentIssueYugabyteD
1148
+
SourceSizeDetailsSourceDBSizeDetails
1149
+
TargetRecommendationsTargetSizingRecommendations
1150
+
ConversionIssues []utils.AnalyzeSchemaIssue
1144
1151
// Depreacted: AssessmentJsonReport is depricated; use the fields directly inside struct
0 commit comments