-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
feat: move to object params for methods + processor support #966
Conversation
…e-other-400-errors
…io into ft-handle-other-400-errors
…mposio into ft-handle-other-400-errors
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.
👍 Looks good to me! Incremental review on 2629a82 in 22 seconds
More details
- Looked at
249
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. js/src/sdk/base.toolset.ts:41
- Draft comment:
Avoid using@ts-expect-error
to bypass TypeScript checks. EnsuretoolResponse.data.response_data
is properly typed to avoid errors. - Reason this comment was not posted:
Comment did not seem useful.
2. js/src/sdk/base.toolset.ts:55
- Draft comment:
Avoid using@ts-ignore
to bypass TypeScript checks. EnsuretoolResponse.data.response_data
is properly typed to avoid errors. - Reason this comment was not posted:
Marked as duplicate.
3. js/src/sdk/base.toolset.ts:312
- Draft comment:
Avoid using@ts-ignore
to bypass TypeScript checks. Ensuredata.response_data
is properly typed to avoid errors. - Reason this comment was not posted:
Marked as duplicate.
4. js/src/sdk/base.toolset.ts:337
- Draft comment:
Consider making the error message more descriptive to indicate which processor type is invalid. - Reason this comment was not posted:
Confidence changes required:50%
TheaddPreProcessor
andaddPostProcessor
methods throw an error if the processor is not a function. This is a good practice for type safety. However, the error message could be more descriptive to indicate which processor type is invalid.
Workflow ID: wflow_AsLBiLcF9rGpPfd0
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on f19cac4 in 16 seconds
More details
- Looked at
77
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/src/sdk/base.toolset.ts:73
- Draft comment:
Consider renaming the parameterprocessor
topostProcessor
in theaddPostProcessor
method for consistency withaddPreProcessor
. - Reason this comment was not posted:
Confidence changes required:50%
The type aliasTProcessor
was renamed toTPreProcessor
in the code, but the type aliasTPostProcessor
was not updated in theaddPostProcessor
method. This inconsistency should be addressed for clarity and consistency.
Workflow ID: wflow_3tAy8DclxTCFdqCj
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
…mposio into ft-handle-other-400-errors
@@ -60,12 +108,6 @@ export class ComposioToolSet { | |||
|
|||
} | |||
|
|||
async getExpectedParamsForUser( |
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.
Keep it here, if anything let's deprecate it and remove it sometime in the future to avoid breaking running code
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.
Done
…mposio into ft-add-zod-checks
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.
👍 Looks good to me! Incremental review on 1f85150 in 11 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_97G4xtDl00TenWRE
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Refactor code to use destructured parameters and Zod validation, update tests, and improve logging and error handling.
executeAction
inbase.toolset.ts
andexecute
inEntity.ts
.Entity.ts
forexecute
andinitiateConnection
.getConnection
andsetupTrigger
inEntity.ts
.index.spec.ts
,Entity.spec.ts
,apps.spec.ts
, andtriggers.spec.ts
to match new method signatures.base.toolset.ts
.This description was created by
for 1f85150. It will automatically update as commits are pushed.