-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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): Add support for ready hooks, and credentials overwrite endpoint in workers #6954
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
Make sure to check off this list before asking for review. |
d6b2d8e
to
9b51e08
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.
LGTM, my only concern is that this code is located under the if (config.getEnv('queue.health.active'))
block, and I think this should be separate, wdyt?
Also is config.getEnv('credentials.overwrite.endpoint')
set by env variable or by the hooks file? If the latter, can we assure it has been executed at this point?
}); | ||
let presetCredentialsLoaded = false; | ||
const endpointPresetCredentials = config.getEnv('credentials.overwrite.endpoint'); | ||
if (endpointPresetCredentials !== '') { |
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.
its basically a copy of code here right? lgmt 👍
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.
yeah. I'd like to refactor worker to also use AbstractServer
, but that's a much larger change that I'd like to avoid in this PR.
Without the
It's set by env variables. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #6954 +/- ##
==========================================
- Coverage 25.05% 25.05% -0.01%
==========================================
Files 3149 3149
Lines 191918 191933 +15
Branches 21111 21112 +1
==========================================
- Hits 48090 48088 -2
- Misses 142847 142864 +17
Partials 981 981
☔ View full report in Codecov by Sentry. |
|
Passing run #1910 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
fa8c59f
to
a6501e7
Compare
✅ All Cypress E2E specs passed |
# [0.237.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.237.0) (2023-08-17) ### Bug Fixes * **API:** Fix issue with workflow setting not supporting newer nanoids ([#6699](#6699)) ([2e64c9d](2e64c9d)) * **AwsS3 Node:** Fix issue if bucket name contains a '.' ([#6542](#6542)) ([219f897](219f897)) * **core:** Add missing primary key on the `execution_data` table on postgres ([#6797](#6797)) ([1c5f98d](1c5f98d)) * **core:** Fix `continueOnFail` for expression error in Set ([#6939](#6939)) ([2a3937f](2a3937f)) * **core:** Fix property existence checks on AugmentObject ([#6842](#6842)) ([3e4483a](3e4483a)) * **core:** Log crash causes to console when sentry is disabled ([#6890](#6890)) ([f19c9c1](f19c9c1)) * **core:** Restrict read/write file paths access ([#6582](#6582)) ([6e6b90e](6e6b90e)) * **core:** Serialize BigInts ([#6805](#6805)) ([17ce49b](17ce49b)) * **core:** Update frontend urls when using the `--tunnel` option ([#6898](#6898)) ([ec3c066](ec3c066)) * **core:** Update packages to address CVE-2023-2142 and CVE-2020-28469 ([#6844](#6844)) ([6dd0850](6dd0850)) * Correct typos in Taiga and ServiceNow nodes ([#6814](#6814)) ([b9f52ec](b9f52ec)) * **editor:** Fix code node’s content property to be reactive ([#6931](#6931)) ([f3b380d](f3b380d)) * **editor:** Prevent Code node linter from erroring on `null` parse ([#6934](#6934)) ([baada92](baada92)) * **Email Trigger (IMAP) Node:** UTF-8 attachments are not correctly named ([#6856](#6856)) ([f3f1c14](f3f1c14)) * **Email Trigger (IMAP) Node:** Fix connection issue with unexpected spaces in host ([#6886](#6886)) ([35c29ac](35c29ac)) * Fix issue with key based credentials not being read correctly ([#6824](#6824)) ([2459b0a](2459b0a)) * Fix issue with key formatting if null or undefined ([#6924](#6924)) ([59d33db](59d33db)) * Fix issue with key formatting introduced in 1.2.0 ([#6896](#6896)) ([8423153](8423153)) * **FTP Node:** List recursive ignore . and .. to prevent infinite loops ([#6707](#6707)) ([6a787dd](6a787dd)) * **GitLab Trigger Node:** Fix trigger activation 404 error ([#6711](#6711)) ([8c5145b](8c5145b)) * **Gmail Trigger Node:** Early returns in case of no data ([#6727](#6727)) ([df2f1d6](df2f1d6)) * **Google BigQuery Node:** Error description improvement ([#6715](#6715)) ([261d73e](261d73e)) * **GoToWebinar Node:** Fix issue with timezone incorrectly being required ([#6865](#6865)) ([2f61e34](2f61e34)) * **HTTP Request Node:** Improve error handling for TCP socket errors when `Continue On Fail` is enabled ([#6925](#6925)) ([e8e4c9e](e8e4c9e)) * **Lemlist Node:** Fix pagination issues with campaigns and activities ([#6734](#6734)) ([73eddc6](73eddc6)) * **Salesforce Node:** Fix Account update owner operation ([#6958](#6958)) ([e71ff76](e71ff76)) * **Telegram Trigger Node:** Add guard to 'include' call on null or undefined ([#6730](#6730)) ([c3c845c](c3c845c)) * **Todoist Node:** Fix issue with section id being ignored ([#6799](#6799)) ([e53f4a0](e53f4a0)) ### Features * Add support for not requiring SMTP auth with user management ([#3742](#3742)) ([fc97d18](fc97d18)) * **core:** Add support for ready hooks, and credentials overwrite endpoint in workers ([#6954](#6954)) ([e5986c5](e5986c5)) * **editor:** Add "Download" button if JSON data is to large ([#6850](#6850)) ([3d815cf](3d815cf)) * Enable parallel processing on multiple queue nodes ([#6295](#6295)) ([e45461a](e45461a)) Co-authored-by: netroy <[email protected]>
# [1.4.0](https://github.com/n8n-io/n8n/compare/[email protected]@1.4.0) (2023-08-23) ### Bug Fixes * **core:** Add recoveryInProgress flag file ([#6962](#6962)) ([7b96820](7b96820)) * **core:** Fix `continueOnFail` for expression error in Set ([#6939](#6939)) ([d4fac05](d4fac05)) * **core:** Fix `import:workflow` command ([#6996](#6996)) ([8c38d85](8c38d85)) * **core:** Replace throw with warning when deactivating a non-active workflow ([#6969](#6969)) ([b6a00fe](b6a00fe)) * **core:** Set up OAuth2 cred test ([#6960](#6960)) ([4fc69b7](4fc69b7)) * **editor:** Do not flag dynamic load options issue on expression ([#6932](#6932)) ([60a1ef0](60a1ef0)) * **editor:** Ensure community node install button tracks user agreement ([#6976](#6976)) ([0ddfc73](0ddfc73)) * **editor:** Fix parsing for single quoted resolvables ([#6982](#6982)) ([f32e993](f32e993)) * **editor:** Fix Remove all fields not removing values in resource mapper ([#6940](#6940)) ([e6cff3f](e6cff3f)) * **editor:** Prevent Code node linter from erroring on `null` parse ([#6934](#6934)) ([40d3a29](40d3a29)) * **Google Sheets Node:** Fix short sheet name interpreted as range ([#6989](#6989)) ([00268a0](00268a0)) * **Google Sheets Trigger Node:** Support sheet names with non-latin characters ([#6970](#6970)) ([052dd7c](052dd7c)) * **GraphQL Node:** Improve error handling ([#6955](#6955)) ([41db637](41db637)) * **Mautic Node:** Fix issue with owner not being set correctly ([#6991](#6991)) ([64b950f](64b950f)) * **Salesforce Node:** Fix Account update owner operation ([#6958](#6958)) ([9b27878](9b27878)) * **Shopify Node:** Fix pagination when using options ([#6972](#6972)) ([475d9c9](475d9c9)) * **Webhook Node:** Backward compatible form-data parsing for non-array fields ([#6967](#6967)) ([9455bcf](9455bcf)) ### Features * **core:** Add a warning to error workflows that cannot be started due to permission or settings ([#6961](#6961)) ([67b88f7](67b88f7)) * **core:** Add support for ready hooks, and credentials overwrite endpoint in workers ([#6954](#6954)) ([8f8a1de](8f8a1de)) * **editor:** Show banner for non-production licenses ([#6943](#6943)) ([413570c](413570c)) * Remove PostHog event calls ([#6915](#6915)) ([270946a](270946a)) * **Send Email Node:** Add support for sending text and html email simultaneously ([#6978](#6978)) ([3860d41](3860d41)) Co-authored-by: krynble <[email protected]>
Got released with |
No description provided.