Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Nov 8, 2024
1 parent 001f488 commit d18794e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ export class ProposedTransformationExplorer {
const metricsPath = path.join(pathContainingArchive, ExportResultArchiveStructure.PathToMetrics)
const metricsData = JSON.parse(fs.readFileSync(metricsPath, 'utf8'))

// TO-DO: add support for SQL conversions; right now these metrics are only available for Java upgrades
await codeWhisperer.codeWhispererClient.sendTelemetryEvent({
telemetryEvent: {
transformEvent: {
Expand All @@ -423,7 +422,7 @@ export class ProposedTransformationExplorer {
},
linesOfCodeChanged: metricsData.linesOfCodeChanged,
charsOfCodeChanged: metricsData.charactersOfCodeChanged,
linesOfCodeSubmitted: transformByQState.getLinesOfCodeSubmitted(),
linesOfCodeSubmitted: transformByQState.getLinesOfCodeSubmitted(), // currently unavailable for SQL conversions
},
},
})
Expand Down
7 changes: 3 additions & 4 deletions packages/core/src/shared/utilities/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import path from 'path'
import { CodeWhispererStreaming, ExportResultArchiveCommandInput } from '@amzn/codewhisperer-streaming'
import { ToolkitError } from '../errors'
import fs from '../fs/fs'
Expand All @@ -12,9 +11,9 @@ import fs from '../fs/fs'
* This class represents the structure of the archive returned by the ExportResultArchive endpoint
*/
export class ExportResultArchiveStructure {
static readonly PathToSummary = path.join('summary', 'summary.md')
static readonly PathToDiffPatch = path.join('patch', 'diff.patch')
static readonly PathToMetrics = path.join('metrics', 'metrics.json')
static readonly PathToSummary = 'summary/summary.md'
static readonly PathToDiffPatch = 'patch/diff.patch'
static readonly PathToMetrics = 'metrics/metrics.json'
static readonly PathToManifest = 'manifest.json'
}

Expand Down

0 comments on commit d18794e

Please sign in to comment.