Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ class ChatSessionV1(
UserIntent.EXPLAIN_CODE_SELECTION -> FollowUpType.ExplainInDetail
UserIntent.UNKNOWN_TO_SDK_VERSION -> FollowUpType.Generated
UserIntent.GENERATE_UNIT_TESTS -> FollowUpType.Generated
UserIntent.GENERATE_CLOUDFORMATION_TEMPLATE -> FollowUpType.Generated
UserIntent.CODE_GENERATION -> FollowUpType.Generated
null -> FollowUpType.Generated
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
UserIntent.EXPLAIN_CODE_SELECTION -> CwsprChatUserIntent.ExplainCodeSelection
UserIntent.GENERATE_UNIT_TESTS -> CwsprChatUserIntent.GenerateUnitTests
UserIntent.UNKNOWN_TO_SDK_VERSION -> CwsprChatUserIntent.Unknown
UserIntent.GENERATE_CLOUDFORMATION_TEMPLATE -> CwsprChatUserIntent.Unknown
UserIntent.CODE_GENERATION -> CwsprChatUserIntent.Unknown
}

private fun getTelemetryTriggerType(triggerType: TriggerType): CwsprChatTriggerInteraction = when (triggerType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ class ArtifactHandler(
TransformationDownloadArtifactType.CLIENT_INSTRUCTIONS -> CodeTransformArtifactType.ClientInstructions
TransformationDownloadArtifactType.LOGS -> CodeTransformArtifactType.Logs
TransformationDownloadArtifactType.UNKNOWN_TO_SDK_VERSION -> CodeTransformArtifactType.Unknown
TransformationDownloadArtifactType.GENERATED_CODE -> CodeTransformArtifactType.Unknown
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,4 +778,5 @@ fun getDownloadedArtifactTextFromType(artifactType: TransformationDownloadArtifa
TransformationDownloadArtifactType.CLIENT_INSTRUCTIONS -> "upgraded code"
TransformationDownloadArtifactType.LOGS -> "build log"
TransformationDownloadArtifactType.UNKNOWN_TO_SDK_VERSION -> "code"
TransformationDownloadArtifactType.GENERATED_CODE -> "code"
}
Loading
Loading