Skip to content

Commit

Permalink
Assigning impact to remaining cases/issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamsinghal committed Jan 7, 2025
1 parent 54f1d59 commit 5cd1f84
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions yb-voyager/cmd/assessMigrationCommandV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ func fetchUnsupportedObjectTypesV2() ([]AssessmentIssue, error) {
return nil, fmt.Errorf("error scanning rows:%w", err)
}

// For these oracle issues defining Impact not required, since oracle migration complexity comes from ora2pg
switch {
case slices.Contains(OracleUnsupportedIndexTypes, objectType):
assessmentIssues = append(assessmentIssues, AssessmentIssue{
Category: constants.FEATURE,
Type: "", // TODO
Name: UNSUPPORTED_INDEXES_FEATURE,
Impact: "", // TODO
ObjectType: "INDEX",
ObjectName: fmt.Sprintf("Index Name: %s, Index Type=%s", objectName, objectType),
})
Expand All @@ -186,15 +186,13 @@ func fetchUnsupportedObjectTypesV2() ([]AssessmentIssue, error) {
Category: constants.FEATURE,
Type: "", // TODO
Name: VIRTUAL_COLUMNS_FEATURE,
Impact: "", // TODO
ObjectName: objectName,
})
case objectType == INHERITED_TYPE:
assessmentIssues = append(assessmentIssues, AssessmentIssue{
Category: constants.FEATURE,
Type: "", // TODO
Name: INHERITED_TYPES_FEATURE,
Impact: "", // TODO
ObjectName: objectName,
})
case objectType == REFERENCE_PARTITION || objectType == SYSTEM_PARTITION:
Expand All @@ -203,7 +201,6 @@ func fetchUnsupportedObjectTypesV2() ([]AssessmentIssue, error) {
Category: constants.FEATURE,
Type: "", // TODO
Name: UNSUPPORTED_PARTITIONING_METHODS_FEATURE,
Impact: "", // TODO
ObjectType: "TABLE",
ObjectName: fmt.Sprintf("Table Name: %s, Partition Method: %s", objectName, objectType),
})
Expand Down Expand Up @@ -379,7 +376,7 @@ func getAssessmentIssuesForUnsupportedDatatypes(unsupportedDatatypes []utils.Tab
CategoryDescription: GetCategoryDescription(constants.DATATYPE),
Type: colInfo.DataType, // TODO: maybe name it like "unsupported datatype - geometry"
Name: colInfo.DataType, // TODO: maybe name it like "unsupported datatype - geometry"
Impact: "", // TODO
Impact: constants.IMPACT_LEVEL_3,
ObjectType: constants.COLUMN,
ObjectName: qualifiedColName,
DocsLink: "", // TODO
Expand Down Expand Up @@ -408,7 +405,7 @@ func fetchMigrationCaveatAssessmentIssues(unsupportedDataTypesForLiveMigration [
CategoryDescription: "", // TODO
Type: UNSUPPORTED_DATATYPES_LIVE_CAVEAT_FEATURE, // TODO add object type in type name
Name: "", // TODO
Impact: "", // TODO
Impact: constants.IMPACT_LEVEL_1, // Caveat - we don't know the migration is offline/online;
Description: UNSUPPORTED_DATATYPES_FOR_LIVE_MIGRATION_DESCRIPTION,
ObjectType: constants.COLUMN,
ObjectName: fmt.Sprintf("%s.%s.%s", colInfo.SchemaName, colInfo.TableName, colInfo.ColumnName),
Expand All @@ -425,7 +422,7 @@ func fetchMigrationCaveatAssessmentIssues(unsupportedDataTypesForLiveMigration [
CategoryDescription: "", // TODO
Type: UNSUPPORTED_DATATYPES_LIVE_WITH_FF_FB_CAVEAT_FEATURE, // TODO add object type in type name
Name: "", // TODO
Impact: "", // TODO
Impact: constants.IMPACT_LEVEL_1,
Description: UNSUPPORTED_DATATYPES_FOR_LIVE_MIGRATION_WITH_FF_FB_DESCRIPTION,
ObjectType: constants.COLUMN,
ObjectName: fmt.Sprintf("%s.%s.%s", colInfo.SchemaName, colInfo.TableName, colInfo.ColumnName),
Expand Down

0 comments on commit 5cd1f84

Please sign in to comment.