Skip to content

Commit

Permalink
Added placeholder for impact of the new categories being considered now
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamsinghal committed Jan 7, 2025
1 parent b7e33b1 commit c09118a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion yb-voyager/cmd/assessMigrationCommandV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,15 @@ 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 @@ -201,6 +203,7 @@ 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 @@ -241,7 +244,7 @@ func fetchUnsupportedPlPgSQLObjectsV2(schemaAnalysisReport utils.SchemaReport) [
Category: constants.PLPGSQL_OBJECT,
Type: issue.Type,
Name: reason,
Impact: issue.Impact, // TODO
Impact: issue.Impact, // TODO: verify(expected already there since underlying issues are assigned)
ObjectType: issue.ObjectType,
ObjectName: issue.ObjectName,
SqlStatement: issue.SqlStatement,
Expand Down Expand Up @@ -355,6 +358,7 @@ func fetchUnsupportedQueryConstructsV2() ([]AssessmentIssue, error) {
Category: constants.QUERY_CONSTRUCT,
Type: issue.Type,
Name: issue.Name,
Impact: issue.Impact,
SqlStatement: issue.SqlStatement,
DocsLink: issue.DocsLink,
MinimumVersionFixedIn: issue.MinimumVersionsFixedIn,
Expand Down Expand Up @@ -404,6 +408,7 @@ func fetchMigrationCaveatAssessmentIssues(unsupportedDataTypesForLiveMigration [
CategoryDescription: "", // TODO
Type: UNSUPPORTED_DATATYPES_LIVE_CAVEAT_FEATURE, // TODO add object type in type name
Name: "", // TODO
Impact: "", // TODO
Description: UNSUPPORTED_DATATYPES_FOR_LIVE_MIGRATION_DESCRIPTION,
ObjectType: constants.COLUMN,
ObjectName: fmt.Sprintf("%s.%s.%s", colInfo.SchemaName, colInfo.TableName, colInfo.ColumnName),
Expand All @@ -420,6 +425,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
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 c09118a

Please sign in to comment.