Skip to content

Conversation

@dhasani23
Copy link
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Just use submitSelection; viewArtifact is redundant.

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dhasani23 dhasani23 requested a review from a team as a code owner January 3, 2025 00:09
@dhasani23 dhasani23 requested a review from a team as a code owner January 3, 2025 00:28
private var totalPatchFiles: Int = 0
private var sharedPatchIndex: Int = 0

internal suspend fun displayDiff(job: JobId, source: CodeTransformVCSViewerSrcComponents) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed source because it's not useful to us

codeTransformMetadata = metaData.toString(),
codeTransformSessionId = sessionId,
reason = reason,
result = if (success) MetricResult.Succeeded else MetricResult.Failed,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would recommend using Result.Succeeded and Result.Failed here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that Result is deprecated in favor of MetricResult

@dhasani23 dhasani23 requested a review from manodnyab January 6, 2025 22:02
@dhasani23 dhasani23 enabled auto-merge (squash) January 6, 2025 23:36
@dhasani23 dhasani23 merged commit 370ed03 into aws:main Jan 7, 2025
10 checks passed
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 17, 2025
* telemetry(amazonq): combine metrics

* remove unneeded field

* re-run CI

* remove unused property

* fix detekt

---------

Co-authored-by: David Hasani <[email protected]>
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 22, 2025
* telemetry(amazonq): combine metrics

* remove unneeded field

* re-run CI

* remove unused property

* fix detekt

---------

Co-authored-by: David Hasani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants