-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
fix(core): Fix supportedNodes for non-lazy loaded community packages (no-changelog) #11329
Conversation
abd08ab
to
14cc34f
Compare
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.
Can't say that I 100% understood everything that changed here. The code and tests look solid and if you tested that it works I'm happy. Couple questions / comments but no blockers 🚀
for (const credentialTypeName in loader.credentialTypes) { | ||
this.loaded.credentials[credentialTypeName] = loader.credentialTypes[credentialTypeName]; | ||
for (const type in loader.credentialTypes) { | ||
this.loaded.credentials[type] = loader.credentialTypes[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.
Credentials don't need to be prefixed with the packageName
?
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.
unfortunately not. I've wanted to prefix credentials since 2022, but doing so will be a breaking change.
n8n Run #8273
Run Properties:
|
Project |
n8n
|
Branch Review |
refactor-generate-ui-types
|
Run status |
Passed #8273
|
Run duration | 04m 30s |
Commit |
5900e1d0be: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
|
Committer | कारतोफ्फेलस्क्रिप्ट™ |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
1
|
Pending |
0
|
Skipped |
0
|
Passing |
480
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
fe0aef9
to
83ae133
Compare
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.
🚀
✅ All Cypress E2E specs passed |
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.
|
f4919f7
to
e50f6c4
Compare
e50f6c4
to
5900e1d
Compare
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Nice! so many added tests and simpler code + 1 less script 😄
|
✅ All Cypress E2E specs passed |
Got released with |
Summary
We had an inconsistency in how and when we prefixed
packageName
on nodes. This was causingsupportedNodes
referring to invalid node names.This PR moves all
packageName
prefixing code toLoadNodesAndCredentials
, which ensures that lazy-loading has no effect on node-names anywhere.Extracted out of #9874.
E2E Tests
Workflow Tests
Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)