@@ -609,78 +609,6 @@ export async function getTransformationPlan(jobId: string, profile: RegionProfil
609609 profileArn : profile ?. arn ,
610610 } )
611611
612- // TO-DO: remove this mocked API response
613- response = {
614- transformationPlan : {
615- transformationSteps : [
616- {
617- id : '0' ,
618- name : 'Supplement Info' ,
619- status : 'COMPLETED' ,
620- progressUpdates : [
621- {
622- name : '0' ,
623- status : 'COMPLETED' ,
624- description :
625- '{"type":"STATISTICS","name":"Plan Statistics","description":null,"columnNames":["name","value"],"rows":[{"name":"linesOfCode","value":"2532"},{"name":"plannedDependencyChanges","value":"4"},{"name":"plannedDeprecatedApiChanges","value":"0"},{"name":"plannedFileChanges","value":"7"}]}' ,
626- } ,
627- {
628- name : '1' ,
629- status : 'COMPLETED' ,
630- description :
631- '{"type":"DEPENDENCIES","name":"Dependency Changes","description":null,"columnNames":["dependencyName","action","currentVersion","targetVersion"],"rows":[]}' ,
632- } ,
633- {
634- name : '1' ,
635- status : 'COMPLETED' ,
636- description :
637- '{"type":"DEPENDENCIES","name":"Dependency Changes","description":null,"columnNames":["dependencyName","action","currentVersion","targetVersion"],"rows":[{"dependencyName":"junit:junit","action":"REMOVE","currentVersion":"4.12","targetVersion":"-"},{"dependencyName":"org.apache.logging.log4j:log4j-slf4j-impl","action":"ADD","currentVersion":"-","targetVersion":"2.x"},{"dependencyName":"org.apache.maven.plugins:maven-surefire-plugin","action":"UPDATE","currentVersion":"2.18.1","targetVersion":"3.1.x"},{"dependencyName":"org.slf4j:slf4j-log4j12","action":"REMOVE","currentVersion":"1.8.0-beta0","targetVersion":"-"}]}' ,
638- } ,
639- {
640- name : '1' ,
641- status : 'FAILED' ,
642- description :
643- '{"type":"DEPENDENCIES","name":"Dependency Changes","description":null,"columnNames":["dependencyName","action","currentVersion","targetVersion"],"rows":[{"dependencyName":"com.squareup.okio:okio","action":"UPDATE","currentVersion":"4.12","targetVersion":"-"},{"dependencyName":"org.apache.logging.log4j:log4j-slf4j-impl","action":"ADD","currentVersion":"-","targetVersion":"2.x"},{"dependencyName":"org.apache.maven.plugins:maven-surefire-plugin","action":"UPDATE","currentVersion":"2.18.1","targetVersion":"3.1.x"},{"dependencyName":"org.slf4j:slf4j-log4j12","action":"REMOVE","currentVersion":"1.8.0-beta0","targetVersion":"-"}]}' ,
644- } ,
645- {
646- name : '1' ,
647- status : 'FAILED' ,
648- description :
649- '{"type":"DEPENDENCIES","name":"Dependency Changes","description":null,"columnNames":["dependencyName","action","currentVersion","targetVersion"],"rows":[{"dependencyName":"com.squareup.okio:okio","action":"UPDATE","currentVersion":"4.12","targetVersion":"-"},{"dependencyName":"org.apache.logging.log4j:log4j-slf4j-impl","action":"ADD","currentVersion":"-","targetVersion":"2.x"},{"dependencyName":"org.apache.maven.plugins:maven-surefire-plugin","action":"UPDATE","currentVersion":"2.18.1","targetVersion":"3.1.x"},{"dependencyName":"org.slf4j:slf4j-log4j12","action":"REMOVE","currentVersion":"1.8.0-beta0","targetVersion":"-"}]}' ,
650- } ,
651- {
652- name : '1' ,
653- status : 'COMPLETED' ,
654- description :
655- '{"type":"DEPENDENCIES","name":"Dependency Changes","description":null,"columnNames":["dependencyName","action","currentVersion","targetVersion"],"rows":[{"dependencyName":"com.squareup.okio:okio","action":"UPDATE","currentVersion":"4.12","targetVersion":"-"},{"dependencyName":"org.apache.logging.log4j:log4j-slf4j-impl","action":"ADD","currentVersion":"-","targetVersion":"2.x"},{"dependencyName":"org.apache.maven.plugins:maven-surefire-plugin","action":"UPDATE","currentVersion":"2.18.1","targetVersion":"3.1.x"},{"dependencyName":"org.slf4j:slf4j-log4j12","action":"REMOVE","currentVersion":"1.8.0-beta0","targetVersion":"-"}]}' ,
656- } ,
657- {
658- name : '-1' ,
659- status : 'COMPLETED' ,
660- description :
661- '{"type":"FILES","name":"File Changes","description":null,"columnNames":["relativePath","action"],"rows":[{"relativePath":"src/main/test/com/nxllxn/plantuml/java/TopLevelInterfaceTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/TopLevelEnumerationTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/TopLevelClassTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/TopLevelAnnotationTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/ParameterTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/MethodTest.java","action":"UPDATE"},{"relativePath":"src/main/test/com/nxllxn/plantuml/java/FieldTest.java","action":"UPDATE"}]}' ,
662- } ,
663- ] ,
664- } ,
665- {
666- id : '1' ,
667- name : 'Step 1 - Update JDK version, dependencies and related code (David)' ,
668- description :
669- 'Amazon Q will attempt to update the JDK version and change the following dependencies and related code.' ,
670- status : 'CREATED' ,
671- progressUpdates : [ ] ,
672- } ,
673- {
674- id : '2' ,
675- name : 'Step 2 - Finalize code changes' ,
676- description : 'Amazon Q will attempt to replace the following instances of deprecated code.' ,
677- status : 'CREATED' ,
678- progressUpdates : [ ] ,
679- } ,
680- ] ,
681- } ,
682- }
683-
684612 const stepZeroProgressUpdates = response . transformationPlan . transformationSteps [ 0 ] . progressUpdates
685613
686614 if ( ! stepZeroProgressUpdates || stepZeroProgressUpdates . length === 0 ) {
0 commit comments