Skip to content

Commit 3c0bb6f

Browse files
author
David Hasani
committed
add feature flag
1 parent 82eacd8 commit 3c0bb6f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ class CodeModernizerSession(
268268
} finally {
269269
telemetry.uploadProject(payloadSize, startTime, true, telemetryErrorMessage)
270270
if (payload != null) {
271-
// TODO: revert this
272-
notifyStickyInfo("zip path", payload.path)
273-
// deleteUploadArtifact(payload)
271+
deleteUploadArtifact(payload)
274272
}
275273
}
276274

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ class CodeTransformChatController(
163163
// Publish a metric when transform is first initiated from chat prompt.
164164
telemetry.initiateTransform()
165165

166-
this.getUserObjective(message.tabId)
166+
val isSqlTransformReady = false // feature flag for SQL conversions
167+
168+
if (isSqlTransformReady) {
169+
this.getUserObjective(message.tabId)
170+
} else {
171+
this.handleLanguageUpgrade()
172+
}
167173
}
168174

169175
private suspend fun getUserObjective(tabId: String) {
@@ -324,8 +330,6 @@ class CodeTransformChatController(
324330
val extractedZip = createTempDirectory("codeTransformSQLMetadata", null) // .path.toVirtualFile()
325331
unzipFile(selectedZipFile.toNioPath(), extractedZip.toPath())
326332

327-
notifyStickyInfo("tempDir", extractedZip.path)
328-
329333
val sctFile = extractedZip.listFiles { file -> file.name.endsWith(".sct") }.firstOrNull()
330334

331335
val metadataValidationResult = validateSctMetadata(sctFile)

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ data class CodeModernizerSessionContext(
226226

227227
// 2) Dependencies / SQL conversion metadata
228228
if (depDirectory != null) {
229-
notifyStickyInfo("depDirectory", "depDirectory is NOT null")
230229
dependencyFiles.forEach { depFile ->
231230
val relativePath = File(depFile.path).relativeTo(depDirectory)
232231
val paddedPath = depSources.resolve(relativePath)

plugins/amazonq/mynah-ui/src/mynah-ui/ui/tabs/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TabDataGenerator {
3131
])
3232

3333
// feature flag for SQL transformations
34-
private isSQLTransformReady: boolean = true
34+
private isSQLTransformReady: boolean = false
3535

3636
private tabWelcomeMessage: Map<TabType, string> = new Map([
3737
[

0 commit comments

Comments
 (0)