Skip to content

Commit 5abfb19

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): use correct doc link (#5223)
* fix(amazonq): use correct doc link * fix detekt --------- Co-authored-by: David Hasani <[email protected]>
1 parent 3e44279 commit 5abfb19

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "/transform: use correct doc link in SQL conversion help message"
4+
}

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/controller/CodeTransformChatController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import software.aws.toolkits.jetbrains.services.amazonq.auth.AuthController
2525
import software.aws.toolkits.jetbrains.services.amazonq.auth.AuthFollowUpType
2626
import software.aws.toolkits.jetbrains.services.codemodernizer.ArtifactHandler
2727
import software.aws.toolkits.jetbrains.services.codemodernizer.CodeModernizerManager
28+
import software.aws.toolkits.jetbrains.services.codemodernizer.CodeModernizerManager.Companion.LOG
2829
import software.aws.toolkits.jetbrains.services.codemodernizer.CodeTransformTelemetryManager
2930
import software.aws.toolkits.jetbrains.services.codemodernizer.EXPLAINABILITY_V1
3031
import software.aws.toolkits.jetbrains.services.codemodernizer.HilTelemetryMetaData
@@ -680,6 +681,7 @@ class CodeTransformChatController(
680681
)
681682

682683
private suspend fun handleCodeTransformResult(result: CodeModernizerJobCompletedResult) {
684+
LOG.info { "CodeModernizerJobCompletedResult: $result" }
683685
when (result) {
684686
is CodeModernizerJobCompletedResult.Stopped, CodeModernizerJobCompletedResult.JobAbortedBeforeStarting -> handleCodeTransformStoppedByUser()
685687
is CodeModernizerJobCompletedResult.JobFailed -> handleCodeTransformJobFailed(result.failureReason)
@@ -692,6 +694,7 @@ class CodeTransformChatController(
692694
CodeModernizerSessionState.getInstance(context.project).currentJobId as JobId,
693695
TransformationDownloadArtifactType.CLIENT_INSTRUCTIONS
694696
)
697+
LOG.info { "Download result: $downloadResult" }
695698
when (downloadResult) {
696699
is DownloadArtifactResult.Success -> {
697700
if (downloadResult.artifact !is CodeModernizerArtifact) return artifactHandler.notifyUnableToApplyPatch("")

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ codemodernizer.builderrordialog.description.title=Error occurred when building y
602602
codemodernizer.chat.form.user_selection.item.choose_module=Choose a module to transform
603603
codemodernizer.chat.form.user_selection.item.choose_one_or_multiple_diffs_option=Choose how to receive proposed changes
604604
codemodernizer.chat.form.user_selection.item.choose_skip_tests_option=Choose to skip unit tests
605-
codemodernizer.chat.form.user_selection.item.choose_sql_metadata_file=Okay, I can convert the embedded SQL code for your Oracle to PostgreSQL transformation. To get started, upload the zipped metadata file from your schema conversion in AWS Data Migration Service (DMS). To retrieve the metadata file:\n1. Open your database migration project in the AWS DMS console.\n2. Open the schema conversion and choose **Convert the embedded SQL in your application**.\n3. Once you complete the conversion, close the project and go to the S3 bucket where your project is stored.\n4. Open the folder and find the project folder ("sct-project").\n5. Download the object inside the project folder. This will be a zip file.\n\nFor more info, refer to the [documentation](https://docs.aws.amazon.com/dms/latest/userguide/schema-conversion-save-apply.html#schema-conversion-save).
605+
codemodernizer.chat.form.user_selection.item.choose_sql_metadata_file=Okay, I can convert the embedded SQL code for your Oracle to PostgreSQL transformation. To get started, upload the zipped metadata file from your schema conversion in AWS Data Migration Service (DMS). To retrieve the metadata file:\n1. Open your database migration project in the AWS DMS console.\n2. Open the schema conversion and choose **Convert the embedded SQL in your application**.\n3. Once you complete the conversion, close the project and go to the S3 bucket where your project is stored.\n4. Open the folder and find the project folder ("sct-project").\n5. Download the object inside the project folder. This will be a zip file.\n\nFor more info, refer to the [documentation](https://docs.aws.amazon.com/dms/latest/userguide/schema-conversion-embedded-sql.html).
606606
codemodernizer.chat.form.user_selection.item.choose_target_version=Choose the target code version
607607
codemodernizer.chat.form.user_selection.title=Q - Code transformation
608608
codemodernizer.chat.message.absolute_path_detected=I detected {0} potential absolute file path(s) in your {1} file: **{2}**. Absolute file paths might cause issues when I build your code. Any errors will show up in the build log.

0 commit comments

Comments
 (0)