-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(tool): fixed jira tool output #2392
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile OverviewGreptile SummaryThis PR updates the Jira tool output schemas to better reflect the actual data structure by removing the redundant wrapper fields ( Key Changes:
Issues Found:
Confidence Score: 2/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant JiraTool
participant Schema
participant TypeScript
participant JiraAPI
Client->>JiraTool: Execute Jira operation
JiraTool->>Schema: Validate params against schema
Schema-->>JiraTool: Params valid
JiraTool->>JiraAPI: Make API request
JiraAPI-->>JiraTool: API response
JiraTool->>JiraTool: transformResponse()
Note over JiraTool: Returns {success: true, output: {...}}
Note over JiraTool: output contains: ts, issueKey, etc.
Note over JiraTool: ALSO contains: success field (not in schema)
JiraTool->>TypeScript: Type check response
Note over TypeScript: Type includes success in output ✓
JiraTool->>Schema: Validate output against outputs schema
Note over Schema: Schema does NOT include success field ✗
Note over Schema,TypeScript: MISMATCH: Implementation and types<br/>include success, but schema doesn't
JiraTool-->>Client: Return response
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (17)
-
apps/sim/tools/jira/add_comment.ts, line 136 (link)logic:
successfield is returned in output but not declared in the outputs schema (line 166-170). TypeScript typeJiraAddCommentResponseincludes it, creating a mismatch between schema, types, and implementation. -
apps/sim/tools/jira/add_comment.ts, line 160 (link)logic:
successfield is returned in output but not declared in outputs schema (line 166-170). -
apps/sim/tools/jira/write.ts, line 106 (link)logic:
successfield in output object is not declared in outputs schema (lines 133-137). The TypeScript type includes it but the schema doesn't. -
apps/sim/tools/jira/update.ts, line 113 (link)logic:
successfield returned but not in outputs schema (lines 132-136). Mismatch between implementation and schema. -
apps/sim/tools/jira/transition_issue.ts, line 176 (link)logic:
successfield returned but not in outputs schema. Also occurs at line 197. -
apps/sim/tools/jira/update_comment.ts, line 143 (link)logic:
successnot in outputs schema. Also at line 167. -
apps/sim/tools/jira/update_worklog.ts, line 162 (link)logic:
successfield not in outputs schema. Also at line 185. -
apps/sim/tools/jira/delete_comment.ts, line 111 (link)logic:
successnot declared in outputs schema. Also at line 132. -
apps/sim/tools/jira/delete_attachment.ts, line 104 (link)logic:
successnot in outputs schema. Also at line 124. -
apps/sim/tools/jira/delete_worklog.ts, line 111 (link)logic:
successfield not in outputs schema. -
apps/sim/tools/jira/remove_watcher.ts, line 111 (link)logic:
successnot declared in outputs schema. Also at line 132. -
apps/sim/tools/jira/create_issue_link.ts, line 197-198 (link)logic:
linkIdandsuccessreturned but not in outputs schema (lines 175-181). TypeScript type includes both. -
apps/sim/tools/jira/delete_issue_link.ts, line 102 (link)logic:
successfield not in outputs schema. -
apps/sim/tools/jira/add_watcher.ts, line 111 (link)logic:
successnot in outputs schema. -
apps/sim/tools/jira/assign_issue.ts, line 102 (link)logic:
successfield returned but not declared in outputs schema. -
apps/sim/tools/jira/add_worklog.ts, line 142 (link)logic:
successfield not declared in outputs schema. -
apps/sim/tools/jira/delete_issue.ts, line 102 (link)logic:
successfield returned in output but not declared in outputs schema. Remove this field from the output object to match the schema.
23 files reviewed, 17 comments
Summary
Fixed jira tool output
Type of Change
Testing
Tested manually
Checklist