Skip to content

Commit ae785ba

Browse files
authored
Amazon Q Test Generation: Adding telemetry metric for /test for files outside of workspace. (#951)
## Problem /test does not run workflow for external files in a workspace instead runs conversation APIs to produce tests for user in chat. ## Solution Adding metric to check whether target file in editor is a file in active workspace. <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent df56506 commit ae785ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

telemetry/definitions/commonDefinitions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,11 @@
14331433
"type": "boolean",
14341434
"description": "True if user selected code snippet as input else false"
14351435
},
1436+
{
1437+
"name": "isFileInWorkspace",
1438+
"type": "boolean",
1439+
"description": "Indicate if the file is in the current workspace."
1440+
},
14361441
{
14371442
"name": "isReAuth",
14381443
"type": "boolean",
@@ -2353,6 +2358,9 @@
23532358
"type": "isCodeBlockSelected",
23542359
"required": false
23552360
},
2361+
{
2362+
"type": "isFileInWorkspace"
2363+
},
23562364
{
23572365
"type": "isSupportedLanguage"
23582366
},

0 commit comments

Comments
 (0)