File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
amazonqGumby/chat/controller/messenger Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -441,8 +441,10 @@ export class Messenger {
441441 break
442442 case 'error-parsing-sct-file' :
443443 message = CodeWhispererConstants . invalidMetadataFileErrorParsing
444+ break
444445 case 'invalid-zip-no-sct-file' :
445446 message = CodeWhispererConstants . invalidMetadataFileNoSctFile
447+ break
446448 }
447449
448450 const buttons : ChatItemButton [ ] = [ ]
Original file line number Diff line number Diff line change @@ -107,16 +107,7 @@ export async function processSQLConversionTransformFormInput(pathToProject: stri
107107
108108export async function validateSQLMetadataFile ( fileContents : string , message : any ) {
109109 try {
110- let sctData : any = undefined
111- xml2js . parseString ( fileContents , ( err , result ) => {
112- if ( err ) {
113- getLogger ( ) . error ( 'CodeTransformation: Error parsing .sct file, not valid XML.' , err )
114- throw new Error ( `Invalid XML encountered` )
115- } else {
116- sctData = result
117- }
118- } )
119-
110+ const sctData = await xml2js . parseStringPromise ( fileContents )
120111 const dbEntities = sctData [ 'tree' ] [ 'instances' ] [ 0 ] [ 'ProjectModel' ] [ 0 ] [ 'entities' ] [ 0 ]
121112 const sourceDB = dbEntities [ 'sources' ] [ 0 ] [ 'DbServer' ] [ 0 ] [ '$' ] [ 'vendor' ] . trim ( ) . toUpperCase ( )
122113 const targetDB = dbEntities [ 'targets' ] [ 0 ] [ 'DbServer' ] [ 0 ] [ '$' ] [ 'vendor' ] . trim ( ) . toUpperCase ( )
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ export const newCustomizationMessage = 'You have access to new Amazon Q customiz
352352// Start of QCT Strings
353353
354354// feature flag for SQL transformations
355- export const isSQLTransformReady = true
355+ export const isSQLTransformReady = false
356356
357357export const uploadZipSizeLimitInBytes = 2000000000 // 2GB
358358
You can’t perform that action at this time.
0 commit comments