Skip to content

Commit a12b9ab

Browse files
author
David Hasani
committed
update Strings
1 parent 7510932 commit a12b9ab

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

packages/core/src/amazonq/webview/ui/tabs/constants.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ What would you like to work on?`,
3535
title: 'Q - Code Transformation',
3636
placeholder: 'Open a new tab to chat with Q',
3737
welcome: isSQLTransformReady
38-
? `Welcome to Code Transformation!
38+
? `Welcome to code transformation!
3939
40-
I can help you upgrade your Java 8 and 11 codebases to Java 17 ("language upgrade") &
41-
I can also convert embedded SQL from Oracle to PostgreSQL ("SQL conversion"). What would you like to do?`
42-
: `Welcome to Code Transformation!
40+
I can help you upgrade your Java 8 and Java 11 codebases ("language upgrade") and convert embedded SQL from Oracle databases to PostgreSQL ("SQL conversion"). What would you like to do?`
41+
: `Welcome to code transformation!
4342
4443
I can help you upgrade your Java 8 and 11 codebases to Java 17.`,
4544
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class GumbyController {
220220
// Start /transform chat flow
221221
CodeTransformTelemetryState.instance.setSessionId()
222222

223-
this.sessionStorage.getSession().conversationState = ConversationState.WAITING_FOR_OBJECTIVE
223+
this.sessionStorage.getSession().conversationState = ConversationState.WAITING_FOR_TRANSFORMATION_OBJECTIVE
224224
this.messenger.sendStaticTextResponse('choose-transformation-objective', message.tabID)
225225
this.messenger.sendChatInputEnabled(message.tabID, true)
226226
this.messenger.sendUpdatePlaceholder(message.tabID, "Enter 'language upgrade' or 'SQL conversion'")
@@ -621,7 +621,7 @@ export class GumbyController {
621621
break
622622
}
623623

624-
case ConversationState.WAITING_FOR_OBJECTIVE: {
624+
case ConversationState.WAITING_FOR_TRANSFORMATION_OBJECTIVE: {
625625
const objective = data.message.trim().toLowerCase()
626626
if (objective === 'language upgrade') {
627627
await this.handleLanguageUpgrade(data)

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,6 @@ export class Messenger {
519519
message: CodeWhispererConstants.checkingForProjectsChatMessage,
520520
})
521521
)
522-
523-
// TO-DO: add a delay for 2s here to match IntelliJ
524522
}
525523

526524
public sendLanguageUpgradeProjectChoiceMessage(

packages/core/src/amazonqGumby/chat/session/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum ConversationState {
1111
COMPILING,
1212
JOB_SUBMITTED,
1313
WAITING_FOR_HIL_INPUT,
14-
WAITING_FOR_OBJECTIVE,
14+
WAITING_FOR_TRANSFORMATION_OBJECTIVE,
1515
}
1616

1717
export interface ProjectDetails {

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

Lines changed: 11 additions & 7 deletions
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

@@ -503,18 +503,22 @@ export const absolutePathDetectedMessage = (numPaths: number, buildFile: string,
503503
export const unsupportedJavaVersionChatMessage = `Sorry, currently I can only upgrade Java 8 or Java 11 projects. For more information, see the [Amazon Q documentation](${codeTransformPrereqDoc}).`
504504

505505
export const selectSQLMetadataFileHelpMessage =
506-
'Next, I need the metadata ZIP file of your project. You can download the metadata ZIP file by going to AWS Console -> AWS DMS -> Migration Projects. Open the schema conversion project and navigate to the S3 bucket linked to it. You will find the ZIP file under the {schema-conversion-project}/ directory.'
506+
'Next, I need the zipped metadata file from your schema conversion. You can download the metadata by going to your migration project in the the AWS DMS console. Open the schema conversion and choose **Convert the embedded SQL in your application**. You can downloaded the metadata from Amazon S3 in the {schema-conversion-project}/ directory.'
507507

508-
export const invalidMetadataFileUnsupportedSourceDB = `Sorry, the .sct file in the provided ZIP appears to be invalid; the source DB must be Oracle.`
508+
export const invalidMetadataFileUnsupportedSourceDB =
509+
'I can only convert SQL for migrations from an Oracle source database. The provided .sct file indicates another source database for this migration.'
509510

510-
export const invalidMetadataFileUnsupportedTargetDB = `Sorry, the .sct file in the provided ZIP appears to be invalid; the target DB must be Aurora PostgreSQL or Amazon RDS for PostgreSQL.`
511+
export const invalidMetadataFileUnsupportedTargetDB =
512+
'I can only convert SQL for migrations to Aurora PostgreSQL or Amazon RDS for PostgreSQL target databases. The provided .sct file indicates another target database for this migration.'
511513

512-
export const invalidMetadataFileErrorParsing = 'Sorry, the .sct file in the provided ZIP appears to be invalid.'
514+
export const invalidMetadataFileErrorParsing =
515+
"It looks like the .sct file you provided isn't valid. Make sure that you've uploaded the .zip file you retrieved from your schema conversion in AWS DMS."
513516

514517
export const invalidMetadataFileNoSctFile =
515-
'Sorry, the provided ZIP does not contain a .sct file, which is needed to do the transformation.'
518+
"An .sct file is required for transformation. Make sure that you've uploaded the .zip file you retrieved from your schema conversion in AWS DMS."
516519

517-
export const sqlMetadataFileReceived = 'I detected the following in the .sct file from the provided ZIP.'
520+
export const sqlMetadataFileReceived =
521+
'I found the following source database, target database, and host based on the schema conversion metadata you provided:'
518522

519523
export const failedToStartJobChatMessage =
520524
"Sorry, I couldn't begin the transformation. Please try starting the transformation again."

0 commit comments

Comments
 (0)