-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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(core): Fix populating of node custom api call options #5303
Conversation
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.
It'd be nice to add an e2e test to verify that the injected option is there, if not too time-consuming.
@ivov Thanks for reviewing and for all the helpful suggestions. I've addressed them and added the e2e test to check for the Custom API option and hint. Can you have another look, please? |
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.
Thanks for addressing everything!
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.
🚀
if (!description.credentials) return false; | ||
|
||
return description.credentials.some(({ name }) => { | ||
const credType = this.credentialTypes[name].type; |
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.
This check here assumes that all credentials are loaded before the nodes. This is breaking custom nodes. Here is the fix.
There is also the issue of nodes only being aware of credentials that the loader they are a part of, which means that custom nodes can't use one of the officially shipped credentials.
Got released with |
Github issue / Community forum post (link here to close automatically): https://community.n8n.io/t/shopify-generic-api-call/22375