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
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeModernizerManager.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -687,6 +687,7 @@ class CodeModernizerManager(private val project: Project) : PersistentStateCompo
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeModernizerSession.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeTransformTelemetryManager.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ class CodeTransformTelemetryManager(private val project: Project) {
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/controller/CodeTransformChatController.kt
returnSqlMetadataValidationResult(false, "Invalid XML encountered.")
301
-
}
302
-
303
-
try {
304
-
val instances = sctMetadata["instances"] asMap<*, *>
305
-
val projectModel = instances["ProjectModel"] asMap<*, *>
306
-
val entities = projectModel["entities"] asMap<*, *>
307
-
308
-
val sources = entities["sources"] asMap<*, *>
309
-
val sourceDbServer = sources["DbServer"] asMap<*, *>
310
-
val sourceVendor = (sourceDbServer["vendor"] asString).trim().uppercase()
311
-
if (sourceVendor !="ORACLE") {
312
-
returnSqlMetadataValidationResult(false, "Sorry, your .sct metadata file appears to be invalid; the source DB must be Oracle.")
313
-
}
314
-
315
-
val sourceServerName = (sourceDbServer["name"] asString).trim()
316
-
317
-
val targets = entities["targets"] asMap<*, *>
318
-
val targetDbServer = targets["DbServer"] asMap<*, *>
319
-
val targetVendor = (targetDbServer["vendor"] asString).trim().uppercase()
320
-
if (targetVendor !="AURORA_POSTGRESQL"&& targetVendor !="RDS_POSTGRESQL") {
321
-
returnSqlMetadataValidationResult(false, "Sorry, your .sct metadata file appears to be invalid; the target DB must be Aurora PostgreSQL or Amazon RDS for PostgreSQL.")
322
-
}
323
-
324
-
val relations = projectModel["relations"] asMap<*, *>
325
-
val serverNodeLocations = relations["server-node-location"] asList<Map<*, *>>
326
-
val schemaNames = mutableSetOf<String>()
327
-
for (serverNodeLocation in serverNodeLocations) {
328
-
val fullNameNodeInfoList = serverNodeLocation["FullNameNodeInfoList"] asMap<*, *>
329
-
val nameParts = fullNameNodeInfoList["nameParts"] asMap<*, *>
330
-
var fullNameNodeInfo = nameParts["FullNameNodeInfo"] // as List<Map<*, *>>
it.sessionContext.configurationFile = message.modulePath.toVirtualFile()asVirtualFile// any file in the selected module works fine; will use to createZip
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt
+25-20Lines changed: 25 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,9 @@ const val MANIFEST_PATH = "manifest.json"
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CustomerSelection.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/JobHistoryItem.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ import java.time.Instant
7
7
importkotlin.time.Duration.Companion.seconds
8
8
importkotlin.time.toKotlinDuration
9
9
10
-
data classJobHistoryItem(valmoduleName:String, valstatus:String, valstartTime:Instant, valrunTime: java.time.Duration, valjobId:String) {
10
+
data classJobHistoryItem(valmoduleName:String?, valstatus:String, valstartTime:Instant, valrunTime: java.time.Duration, valjobId:String) {
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/ZipManifest.kt
0 commit comments