Skip to content

Commit 73c23aa

Browse files
author
David Hasani
committed
disable sql conversions feature flag
1 parent 9fd0bb5 commit 73c23aa

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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[] = []

packages/core/src/codewhisperer/commands/startTransformByQ.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,7 @@ export async function processSQLConversionTransformFormInput(pathToProject: stri
107107

108108
export 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()

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

357357
export const uploadZipSizeLimitInBytes = 2000000000 // 2GB
358358

0 commit comments

Comments
 (0)