-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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(HTTP Request Node): Port optimizeResponse
from httpRequest tool to standalone node (no-changelog)
#14307
base: master
Are you sure you want to change the base?
Conversation
optimizeResponse
from httpRequest tool to standalone nodeoptimizeResponse
from httpRequest tool to standalone node
optimizeResponse
from httpRequest tool to standalone nodeoptimizeResponse
from httpRequest tool to standalone node (no-changelog)
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@@ -870,6 +870,7 @@ | |||
"@n8n/di": "workspace:*", | |||
"@n8n/imap": "workspace:*", | |||
"@n8n/vm2": "3.9.25", | |||
"@mozilla/readability": "0.5.0", |
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.
we are already using 0.6.0
in the langchain packahe
}; | ||
}; | ||
|
||
export const configureResponseOptimizer = (ctx: IExecuteFunctions, itemIndex: number) => { |
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.
should we add some unit tests for this?
@@ -1167,6 +1169,10 @@ export const mainProperties: INodeProperties[] = [ | |||
}, | |||
], | |||
}, | |||
...optimizeResponseProperties.map((x) => ({ |
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.
instead of adding these here, we could define a new flag in node descriptions, and when that flag is set, we could add these properties in applySpecialNodeParameters
.
That way we can add this as an option on more nodes.
Summary
Introduce new tool-only property
optimizeResponse
which is equivalent to the toolHttpRequest option. Chose to duplicate the code rather than introducing all the dependencies into theworkflow
package.Note that we'll enable this node as a tool (and hide the old version) in a separate PR after this.
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/ADO-3304/feature-port-optimizeresponse-to-all-nodesastools
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)