Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telemetry: Code Scan Issue Fix diff usage #907

Merged
merged 7 commits into from
Nov 11, 2024
Merged
Changes from 6 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
14 changes: 14 additions & 0 deletions telemetry/definitions/commonDefinitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,17 @@
"local"
]
},
{
"name": "codeFixAction",
"type": "string",
"description": "Captures the type of fix that was accepted",
"allowedValues": [
"openDiff",
"insertAtCursor",
"copyDiff",
"quickFix"
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, we will use codewhisperer_codeScanIssueApplyFix for both applying the fix and actions before applying the fix, is that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

ashishrp-aws marked this conversation as resolved.
Show resolved Hide resolved
]
},
{
"name": "codeScanServiceInvocationsDuration",
"type": "int",
Expand Down Expand Up @@ -4352,6 +4363,9 @@
"name": "codewhisperer_codeScanIssueApplyFix",
"description": "Called when a code scan issue suggested fix is applied",
"metadata": [
{
"type": "codeFixAction"
},
{
"type": "component"
},
Expand Down