@@ -1080,40 +1080,51 @@ func fetchUnsupportedObjectTypes() ([]UnsupportedFeature, error) {
1080
1080
unsupportedIndexes = append (unsupportedIndexes , ObjectInfo {
1081
1081
ObjectName : fmt .Sprintf ("Index Name: %s, Index Type=%s" , objectName , objectType ),
1082
1082
})
1083
-
1083
+ // For oracle migration complexity comes from ora2pg, so defining Impact not required right now
1084
1084
assessmentReport .AppendIssues (AssessmentIssue {
1085
- Category : UNSUPPORTED_FEATURES_CATEGORY ,
1086
- Type : "" , // TODO
1087
- Name : UNSUPPORTED_INDEXES_FEATURE ,
1088
- ObjectType : "INDEX" ,
1085
+ Category : UNSUPPORTED_FEATURES_CATEGORY ,
1086
+ CategoryDescription : GetCategoryDescription (UNSUPPORTED_FEATURES_CATEGORY ),
1087
+ Type : UNSUPPORTED_INDEXES_ISSUE_TYPE ,
1088
+ Name : UNSUPPORTED_INDEXES_FEATURE ,
1089
+ Description : "" , // TODO
1090
+ ObjectType : constants .INDEX ,
1091
+ // TODO: here it should be only ObjectName, to populate Index Type there should be a separate field
1089
1092
ObjectName : fmt .Sprintf ("Index Name: %s, Index Type=%s" , objectName , objectType ),
1090
1093
})
1091
1094
} else if objectType == VIRTUAL_COLUMN {
1092
1095
virtualColumns = append (virtualColumns , ObjectInfo {ObjectName : objectName })
1093
1096
assessmentReport .AppendIssues (AssessmentIssue {
1094
- Category : UNSUPPORTED_FEATURES_CATEGORY ,
1095
- Type : "" , // TODO
1096
- Name : VIRTUAL_COLUMNS_FEATURE ,
1097
- ObjectName : objectName ,
1097
+ Category : UNSUPPORTED_FEATURES_CATEGORY ,
1098
+ CategoryDescription : GetCategoryDescription (UNSUPPORTED_FEATURES_CATEGORY ),
1099
+ Type : VIRTUAL_COLUMNS_ISSUE_TYPE ,
1100
+ Name : VIRTUAL_COLUMNS_FEATURE ,
1101
+ Description : "" , // TODO
1102
+ ObjectType : constants .COLUMN ,
1103
+ ObjectName : objectName ,
1098
1104
})
1099
1105
} else if objectType == INHERITED_TYPE {
1100
1106
inheritedTypes = append (inheritedTypes , ObjectInfo {ObjectName : objectName })
1101
1107
assessmentReport .AppendIssues (AssessmentIssue {
1102
- Category : UNSUPPORTED_FEATURES_CATEGORY ,
1103
- Type : "" , // TODO
1104
- Name : INHERITED_TYPES_FEATURE ,
1105
- ObjectName : objectName ,
1108
+ Category : UNSUPPORTED_FEATURES_CATEGORY ,
1109
+ CategoryDescription : GetCategoryDescription (UNSUPPORTED_FEATURES_CATEGORY ),
1110
+ Type : INHERITED_TYPES_ISSUE_TYPE ,
1111
+ Name : INHERITED_TYPES_FEATURE ,
1112
+ Description : "" , // TODO
1113
+ ObjectType : constants .TYPE ,
1114
+ ObjectName : objectName ,
1106
1115
})
1107
1116
} else if objectType == REFERENCE_PARTITION || objectType == SYSTEM_PARTITION {
1108
1117
referenceOrTablePartitionPresent = true
1109
1118
unsupportedPartitionTypes = append (unsupportedPartitionTypes , ObjectInfo {ObjectName : fmt .Sprintf ("Table Name: %s, Partition Method: %s" , objectName , objectType )})
1110
1119
1111
- // For oracle migration complexity comes from ora2pg, so defining Impact not required right now
1112
1120
assessmentReport .AppendIssues (AssessmentIssue {
1113
- Category : UNSUPPORTED_FEATURES_CATEGORY ,
1114
- Type : "" , // TODO
1115
- Name : UNSUPPORTED_PARTITIONING_METHODS_FEATURE ,
1116
- ObjectType : "TABLE" ,
1121
+ Category : UNSUPPORTED_FEATURES_CATEGORY ,
1122
+ CategoryDescription : GetCategoryDescription (UNSUPPORTED_FEATURES_CATEGORY ),
1123
+ Type : UNSUPPORTED_PARTITIONING_METHODS_ISSUE_TYPE ,
1124
+ Name : UNSUPPORTED_PARTITIONING_METHODS_FEATURE ,
1125
+ Description : "" , // TODO
1126
+ ObjectType : constants .TABLE ,
1127
+ // TODO: here it should be only ObjectName, to populate Partition Method there should be a separate field
1117
1128
ObjectName : fmt .Sprintf ("Table Name: %s, Partition Method: %s" , objectName , objectType ),
1118
1129
})
1119
1130
}
@@ -1540,6 +1551,13 @@ func postProcessingOfAssessmentReport() {
1540
1551
assessmentReport .Sizing .SizingRecommendation .ColocatedTables [i ] = parts [1 ]
1541
1552
}
1542
1553
}
1554
+
1555
+ // redact Impact info from the assessment report for Oracle
1556
+ // TODO: Remove this processing step in future when supporting Explanation for Oracle
1557
+ for i := range assessmentReport .Issues {
1558
+ assessmentReport .Issues [i ].Impact = "-"
1559
+ }
1560
+
1543
1561
}
1544
1562
}
1545
1563
0 commit comments