Commit graph

7548 commits

Author SHA1 Message Date
Csaba Tuncsik ee7d5a841e
test(editor): Set 'data-test-id' in unit tests, so they match with Cypress (#5976) 2023-04-14 13:17:20 +02:00
Csaba Tuncsik dc0055fc5c
test(editor): Move test utils to the proper place (#5975) 2023-04-14 13:17:03 +02:00
Michael Kret 0b48088296
feat(core): Support for google service account in HTTP node 2023-04-14 13:39:52 +03:00
Omar Ajoue 49d838f628
fix(core): Fix broken API permissions in public API (#5978) 2023-04-14 11:05:42 +02:00
OlegIvaniv 536d8109b0
fix(editor): Only treat as CTRL pressed by default on touch devices for MouseEvent (#5968) 2023-04-13 18:46:44 +02:00
Csaba Tuncsik bc1db5e16a
test(editor): SSO tests (#5946)
* test(editor): SSO tests

* test(editor): move store tests to __tests__ folder

* test(editor): move tests in a different PR

* test(editor): add SSO tests

* test(editor): add SSO settings page tests

* test(editor): add SSO onboarding page base test

* test(editor): add SSO onboarding page test

* test(editor): fix router spy
2023-04-13 16:17:47 +02:00
Iván Ovejero 1a8a9f8ddb
fix(core): Fix lint on SAML controller (no-changelog) (#5967)
* 👕 Fix lint on SAML controller

* 📘 Type request properly

* Update requests.ts

* 🚚 Move type to module

Assuming ACS falls under configuration.

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
2023-04-13 14:14:55 +02:00
Iván Ovejero f8f8374506
feat(editor): Add Ask AI preview (#5916)
*  Add Ask AI preview

* 🐛 Fire event on mousedown

*  Update to use Alex's event bus

* ✏️ Use i18n

*  Add telemetry

* ♻️ Change trigger from focus to hover

*  Ensure focus + hover trigger event
2023-04-13 14:14:27 +02:00
Michael Auerswald 8474cd386d
fix(core): Skip SAML onboarding for users with first- and lastname (#5966)
skip onboarding for users with first- and lastname
2023-04-13 10:09:50 +02:00
Csaba Tuncsik 02ab1e7eef
fix(editor): Redirect to home page after saving data on SAML onboarding page (no-changelog) (#5961)
fix(editor): redirect to home page after saving data on SAML onboarding page
2023-04-13 09:32:06 +02:00
Jan Oberhauser 303521a0e2 Merge tag 'n8n@0.224.0' 2023-04-12 17:16:26 +02:00
Alex Grozav 430a8781e8
feat: Replace Vue.extend with defineComponent in design system (no-changelog) (#5918)
* refactor: replace new Vue() with custom event bus (no-changelog)

* fix: export types from design system main

* fix: update component types

* fix: update form inputs event bus

* refactor: replace global Vue references in design-system

* refactor: update prop types

* feat: improve types

* fix: further type improvements

* fix: further types improvements

* fix: further type improvements

* test: fix test snapshots

* test: fix snapshot

* chore: fix linting issues

* test: fix personalization modal snapshot
2023-04-12 17:39:45 +03:00
Michael Kret 0a53c957c4
feat(MySQL Node): Overhaul 2023-04-12 17:24:17 +03:00
Jon 29959be688
fix(OpenAI Node): Update models to only show those supported (#5805) 2023-04-12 16:07:35 +02:00
Jon e6ad17ec64
ci: Add test for wait node (no-changelog) (#5414) 2023-04-12 16:07:18 +02:00
Marcus d288a918f1
fix(Github Trigger Node): Remove content_reference event (#5830)
removed content_reference event (doesn't exist anymore)
2023-04-12 16:06:49 +02:00
Iván Ovejero 5227ccd75a
ci: Validate load options methods in nodes-base (no-changelog) (#5862) 2023-04-12 15:46:11 +02:00
github-actions[bot] 492496fca4
🚀 Release 0.224.0 (#5957) 2023-04-12 15:44:10 +02:00
Michael Kret ee7f86394e
fix(NocoDB Node): Fix for updating or deleting rows with not default primary keys 2023-04-12 16:27:19 +03:00
कारतोफ्फेलस्क्रिप्ट™ e79679c023
fix(HTTP Request Node): Show detailed error message in the UI again (#5959) 2023-04-12 14:58:05 +02:00
कारतोफ्फेलस्क्रिप्ट™ 10f8c35dbb
refactor(core): Use injectable classes for db repositories (part-1) (no-changelog) (#5953)
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
2023-04-12 10:59:14 +02:00
Val 323e26acfd
fix(core): Validate customData keys and values (#5920) (no-changelog)
* fix(core): Validate customData keys and values

Throws errors in manual mode and ignores and logs values in production

* fix: validate customData key characters

* refactor: review changes

* fix: logger not initialised for metadata tests

* fix: allow numbers for values
2023-04-12 09:18:26 +01:00
Ricardo Espinoza 725393dae6
feat(editor): Add user activation survey (#5677)
*  Add user activation survey

* Fix typo

* Avoid showing the modal when there is a modal view

* Allow to redirect to specific execution

* Improve structure

* Handle errors when sharing feedback

* update withFeatureFlag function

* Fix linting issue

* Set user activation flag on workflowExecutionCompleted event

* Revert update user settings functionality

* Remove unnecessary changes

* fix linting issue

* account for new functionality in tests

* Small improvements

* keep once instace of the model open between tabs

* Add sorting to GET /executions

* type parameters for GET /executions


a

* Add constant for local store key

* Add execution mode filtering

* fix linting issue

* Do not override settings when setting isOnboarded true

* Add update user settings endpoint

* improvements

* revert changes to /GET executions

* Fix typo

* Add userActivated flag to user store

* Add E2E test

* Fix linting issue

* Update pnpm-lock

* Revert unnecessary change

* Centralize user's settings update

* Remove unused ref in userActivationSurvey modal

* Use aliased imports

* Use createEventBus function in component

* Fix tests
2023-04-11 12:43:47 -04:00
कारतोफ्फेलस्क्रिप्ट™ 7119bde029
fix(editor): Update vite legacy-plugin browser target (no-changelog) (#5952)
fix(editor-ui): Update vite legacy-plugin browser target (no-changelog)

Currently the generated `polyfills-legacy-*.js` has a md5sum that conflicts with some known malware, which is making n8n instances being incorrectly marked as malware.

Changing the browserlist target changes the browser coverage from [88.3%](https://browsersl.ist/#q=defaults) to [88.2%](https://browsersl.ist/#q=%3E1%25%2Clast+3+versions%2Cnot+dead), and changes the md5sum from `
7bbe04e33326032f3bf00ac7685bfccb` to `457638e9318cc92d88d45730c81724e4`.
2023-04-11 17:55:36 +02:00
Jon c236d5d049
docs: Fix typo in AWS S3 and S3 nodes for parent folder key (#5933)
Fix typo in S3 nodes
2023-04-11 15:17:12 +02:00
कारतोफ्फेलस्क्रिप्ट™ 3085ed9bee
fix(core): Update xml2js to address CVE-2023-0842 (#5948)
GH advisory: https://github.com/advisories/GHSA-776f-qx25-q3cc
2023-04-11 15:05:56 +02:00
कारतोफ्फेलस्क्रिप्ट™ f0eba0a2f3
fix(Code Node): Update vm2 to address CVE-2023-29017 (#5947)
Update vm2 to fix CVE-2023-29017

GH advisory: https://github.com/advisories/GHSA-7jxr-cg7f-gpgv

Co-authored-by: Loganaden Velvindron <logan@cyberstorm.mu>
2023-04-11 15:05:38 +02:00
Csaba Tuncsik 0570514b78
fix(editor): Drop mergeDeep in favor of lodash merge (#5943) 2023-04-11 13:05:43 +02:00
Iván Ovejero 6cf74e412a
feat: Create TOTP node (#5901)
*  Create TOTP node

* ♻️ Apply feedback

* ♻️ Recreate `pnpm-lock.yaml`

* ♻️ Apply Giulio's feedback

* 🚧 WIP node tests

*  Finish node test setup

*  Restore test command

*  linter fixes, tweaks

* ♻️ Address Michael's feedback

---------

Co-authored-by: Michael Kret <michael.k@radency.com>
2023-04-11 11:58:47 +02:00
Csaba Tuncsik 3fdc4413c2
feat(editor): SAML login disables Invite button (#5922) 2023-04-07 13:29:48 +02:00
Csaba Tuncsik d40e86aabc
feat(editor): SAML paywall state (#5906)
* feat(editor): SAML paywall state

* fix(editor): fix translation

* fix(editor): SSO update links
2023-04-07 13:29:22 +02:00
OlegIvaniv 07c360c30d
refactor(editor): Replace this.$props (no-changelog) (#5928)
* refactor(editor): Replace this. (no-changelog)

* Lintfix
2023-04-07 12:21:17 +02:00
Alex Grozav 5651a52364
feat: Replace new Vue() with custom event bus (no-changelog) (#5780)
* refactor: replace new Vue() with custom event bus (no-changelog)

* fix: export types from design system main

* fix: update component types

* fix: update form inputs event bus
2023-04-06 16:32:45 +03:00
Omar Ajoue 89c12fc1a7
fix: Make sure retryOf does not take null value (no-changelog) (#5915) 2023-04-06 13:02:46 +02:00
Michael Auerswald 3e382ef85e
fix(core): Fix issue where sub workflows would display as running forever after failure to start (#5905)
* fixed recovery / status for early return in main mode

* mark non-data returning executions in own mode as failed

* improve error handling
2023-04-06 11:36:11 +02:00
कारतोफ्फेलस्क्रिप्ट™ 2881ee9ecc
fix(core): App should not crash with a custom rest endpoint (#5911)
fixes #5880
2023-04-06 11:35:05 +02:00
कारतोफ्फेलस्क्रिप्ट™ 6689451e8c
fix(core): Do not execute workflowExecuteBefore hook when resuming executions from a waiting state (#5727) 2023-04-06 10:18:19 +02:00
Alex Grozav dba5be37ae
feat: Add Sentry sourcemap uploading for editor-ui (no-changelog) (#5870)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-04-05 17:14:41 +02:00
github-actions[bot] 9e600d0f90
🚀 Release 0.223.0 (#5886) 2023-04-05 16:18:00 +02:00
agobrech f7e610b15c
feat(HTTP Request Node): Follow redirects by default (#5895)
* Redirect as default behaviour

* Remove console.logs

* Move logic to one single variable

* Revert "Redirect as default behaviour"

This reverts commit 5b2221b800297865224384eb7f417d72b0d2bbc1.

* Redirect as default behaviour inside node structure

* Add default behaviour
2023-04-05 15:37:14 +02:00
agobrech 33c67f45ba
fix(HTTP Request Node): Refresh token properly on never fail option (#5861)
* Add handle for simple request options and refresh token

* Remove console.logs

* Add safe check for full response
2023-04-05 15:27:04 +02:00
कारतोफ्फेलस्क्रिप्ट™ e7aaa9425a
fix(core): Make WorkflowStatistics tests pass on all databases (no-changelog) (#5909) 2023-04-05 14:51:43 +02:00
कारतोफ्फेलस्क्रिप्ट™ d08c885734
ci(editor): Apply monaco-editor alias override only during tests (no-changelog) (#5908) 2023-04-05 12:39:22 +02:00
Michael Kret 77106520c8
fix(Date & Time Node): Convert luxon DateTime object to ISO 2023-04-05 13:05:51 +03:00
Csaba Tuncsik 04f8600bbd
feat(editor): SSO onboarding (#5756)
* feat(editor): SSO onboarding

* fix(editor): add SAML onboarding page

* fix(editor): submit user name on SAML onboarding
2023-04-04 18:18:16 +02:00
Omar Ajoue 2b06673b2e
refactor: Upsert workflow statistics to suppress unnecessary error messages (#5863) 2023-04-04 18:11:21 +02:00
Jan Oberhauser bdcfcb2ef7 Merge tag 'n8n@0.222.1' 2023-04-04 17:31:48 +02:00
github-actions[bot] 64fa80fe8a
🚀 Release 0.222.1 (#5897) 2023-04-04 15:36:08 +02:00
कारतोफ्फेलस्क्रिप्ट™ a72173414d
fix(core): augmentObject should clone Buffer/Uint8Array instead of wrapping them in a proxy (#5902) 2023-04-04 14:34:24 +02:00
Csaba Tuncsik f4e59499fc
feat(editor): SSO setup (#5736)
* feat(editor): SSO settings page

* feat(editor): SSO settings page

* feat(editor): SSO settings page

* feat(editor): SSO settings page

* feat(editor): SSO settings page

* feat(editor): SSO settings page

* Merge remote-tracking branch 'origin/master' into pay-170-sso-set-up-page

# Conflicts:
#	packages/cli/src/sso/saml/routes/saml.controller.ee.ts

* feat(editor): Prevent SSO settings page route

* feat(editor): some UI improvements

* fix(editor): SSO settings saml config optional chaining

* fix return values saml controller

* fix(editor): drop dompurify

* fix(editor): save xml as is

* return authenticationMethod with settings

* fix(editor): add missing prop to server

* chore(editor): code formatting

* fix ldap/saml enable toggle endpoint

* fix missing import

* prevent faulty ldap setting from breaking startup

* remove sso fake-door from users page

* fix(editor): update SSO settings route permissions + unit testing

* fix(editor): update vite config for test

* fix(editor): add paddings to SSO settings page buttons, add translation

* fix(editor): fix saml unit test

* fix(core): Improve saml test connection function (#5899)

improve-saml-test-connection return

---------

Co-authored-by: Michael Auerswald <michael.auerswald@gmail.com>
Co-authored-by: Romain Minaud <romain.minaud@gmail.com>
2023-04-04 14:28:29 +02:00
Michael Kret 83e25c066a
fix(Compare Datasets Node): Support for dot notation in skip fields 2023-04-04 14:52:53 +03:00
कारतोफ्फेलस्क्रिप्ट™ 0be129254e fix(HTTP Request Node): Detect mime-type from streaming responses (#5896) 2023-04-04 10:17:15 +02:00
कारतोफ्फेलस्क्रिप्ट™ b1ee8f4d99 fix(core): augmentObject should use existing property descriptors whenever possible (#5872)
* fix(core): Augmented objects should use existing property descriptors whenever possible

* add a test for non-enumerable keys
2023-04-04 10:17:15 +02:00
कारतोफ्फेलस्क्रिप्ट™ 6906b00b0e fix(core): Prevent augmentObject from creating infinitely deep proxies (#5893)
fixes #5848
2023-04-04 10:17:15 +02:00
Alex Grozav 35cf783e83 fix: Add optional chaining for 'isArtificalRecoveredEventItem' (no-changelog) (#5860)
* fix: add optional chaining for isArtificalRecoveredEventItem

* fix: fix isArtificalRecoveredEventItem typo
2023-04-04 10:17:15 +02:00
कारतोफ्फेलस्क्रिप्ट™ de58fb9860 fix(core): Use table-prefixes in queries in import commands (#5887) 2023-04-04 10:17:15 +02:00
Jon f0954b94e1 fix(AWS SNS Node): Fix an issue with messages failing to send if they contain certain characters (#5807) 2023-04-04 10:17:15 +02:00
कारतोफ्फेलस्क्रिप्ट™ 163446c674 fix(core): Fix the issue of nodes not loading when run via npx (#5888) 2023-04-04 10:17:15 +02:00
Michael Kret 695fabb284 fix(Gmail Node): Gmail luxon object support, fix for timestamp 2023-04-04 10:17:15 +02:00
Jan Oberhauser f0a51a0b76 fix(core): Improve axios error handling in nodes (#5891) 2023-04-04 10:17:11 +02:00
Milorad FIlipović 6d5c35d17f fix(editor): Update execution loading parameters after pushing test values (no-changelog) (#5876) 2023-04-03 19:57:53 +02:00
Milorad FIlipović d5d9f58f17 fix(editor): Fix loading executions in long execution list (#5843)
* fix(editor): Fix loading executions in long execution list
*  Added max number of attempts before displaying temporary execution card
*  Simplifying temp execution preview logic, handling current execution delete, updating style
* 💄 Renaming `executionWIthGap` -> `temporaryExecution`
2023-04-03 19:57:53 +02:00
Iván Ovejero 3be37e25a5 fix(editor): Fix focused state in Code node editor (#5869)
🎨 Fix focused state in Code node
2023-04-03 19:54:40 +02:00
Alex Grozav 86e20173da fix: Fix parameter inputField ref not yet mounted (no-changelog) (#5864)
* fix: fix parameter inputField ref not yet mounted

* fix: move optional chaining

* fix: fix focus condition
2023-04-03 19:54:40 +02:00
Michael Kret 918c79c137 fix(HubSpot Trigger Node): Developer API key is required for webhooks 2023-04-03 19:54:40 +02:00
कारतोफ्फेलस्क्रिप्ट™ 3bf267c147 fix(core): Password reset should pass in the correct values to external hooks (#5842) 2023-04-03 19:54:38 +02:00
कारतोफ्फेलस्क्रिप्ट™ 00181cd803 fix(editor): Show correct status on canceled executions (#5813)
Co-authored-by: Milorad Filipovic <milorad@n8n.io>
2023-04-03 19:53:56 +02:00
Michael Kret 72eea0dfb9 fix(Set Node): Convert string to number 2023-04-03 19:48:34 +02:00
कारतोफ्फेलस्क्रिप्ट™ a260c05fa8
fix(core): Improve axios error handling in nodes (#5891) 2023-04-03 18:37:22 +02:00
कारतोफ्फेलस्क्रिप्ट™ 69efde7a09
fix(HTTP Request Node): Detect mime-type from streaming responses (#5896) 2023-04-03 18:37:07 +02:00
Michael Kret d1945d9b72
fix(Compare Datasets Node): Fuzzy compare not comparing keys missing in one of inputs 2023-04-03 18:31:03 +03:00
कारतोफ्फेलस्क्रिप्ट™ 6a1b7c306b
fix(core): augmentObject should use existing property descriptors whenever possible (#5872)
* fix(core): Augmented objects should use existing property descriptors whenever possible

* add a test for non-enumerable keys
2023-04-03 17:19:12 +02:00
कारतोफ्फेलस्क्रिप्ट™ 31cd04c476
fix(core): Prevent augmentObject from creating infinitely deep proxies (#5893)
fixes #5848
2023-04-03 17:18:52 +02:00
Michael Kret 07dc0e4b40
feat(Postgres Node): Overhaul node 2023-04-03 18:18:01 +03:00
Alex Grozav df2ea0f5ec
fix: Add optional chaining for 'isArtificalRecoveredEventItem' (no-changelog) (#5860)
* fix: add optional chaining for isArtificalRecoveredEventItem

* fix: fix isArtificalRecoveredEventItem typo
2023-04-03 16:04:59 +03:00
कारतोफ्फेलस्क्रिप्ट™ ddbfcc7d93
fix(core): Use table-prefixes in queries in import commands (#5887) 2023-04-03 14:32:49 +02:00
Jon 32c4eef574
fix(AWS SNS Node): Fix an issue with messages failing to send if they contain certain characters (#5807) 2023-04-03 11:30:22 +01:00
कारतोफ्फेलस्क्रिप्ट™ e47190b560
fix(core): Fix the issue of nodes not loading when run via npx (#5888) 2023-04-03 12:14:41 +02:00
Michael Kret 2b9ca0d240
fix(Gmail Node): Gmail luxon object support, fix for timestamp 2023-04-03 12:48:11 +03:00
OlegIvaniv d9f1e1e1ed
test(editor): Fix failing licensing related e2e specs (no-changelog) (#5884)
test(editor): Fix failing licensing related specs
2023-04-03 09:49:55 +02:00
Jan Oberhauser aed5674530 Revert "fix(core): Improve axios error handling in nodes (#5699)"
This reverts commit 33d9784319.
2023-04-01 19:03:12 +02:00
Milorad FIlipović 9ada331212
fix(editor): Update execution loading parameters after pushing test values (no-changelog) (#5876) 2023-04-01 07:45:11 +02:00
Iván Ovejero 946f7f38ba
ci: Fix catch clause lint rule (#5875)
🐛 Fix catch clause lint rule
2023-03-31 19:16:51 +02:00
Milorad FIlipović 5c9343c7c0
fix(editor): Fix loading executions in long execution list (#5843)
* fix(editor): Fix loading executions in long execution list
*  Added max number of attempts before displaying temporary execution card
*  Simplifying temp execution preview logic, handling current execution delete, updating style
* 💄 Renaming `executionWIthGap` -> `temporaryExecution`
2023-03-31 18:48:30 +02:00
Michael Kret b29cf9a249
fix(HTTP Request Node): Support for dot notation in JSON body 2023-03-31 19:31:03 +03:00
agobrech d87736103d
feat(SSH Node): Hide the private key within the ssh credential (#5871) 2023-03-31 18:14:43 +02:00
Iván Ovejero 48446f5d67
fix(editor): Fix focused state in Code node editor (#5869)
🎨 Fix focused state in Code node
2023-03-31 16:44:26 +02:00
Iván Ovejero 62751b5a0b
refactor: Add lint rule no-unused-param-in-catch-clause (#5868)
👕 Add lint rule `no-unused-param-in-catch-clause`
2023-03-31 16:44:08 +02:00
agobrech 18d2e7cd57
fix(LinkedIn Node): Update the version of the API (#5720)
* 🐛 Change request to follow new API version

* Extract urn from response header

* Change body params for image and media request

* Fix body for Image and Article posts

* remove console log

---------

Co-authored-by: Marcus <marcus@n8n.io>
2023-03-31 15:04:43 +02:00
Alex Grozav 97b35daf0a
fix: Fix parameter inputField ref not yet mounted (no-changelog) (#5864)
* fix: fix parameter inputField ref not yet mounted

* fix: move optional chaining

* fix: fix focus condition
2023-03-31 15:59:54 +03:00
Milorad FIlipović 0a59002ef8
feat(editor): Enable saving workflow when node details view is open (#5856)
* feat(editor): Enable saving workflow when node details view is open
*  Preventing event propagation
*  Move save event handler to `NodeDetailsView`
*  Added e2e tests
* 👕 Fixing linting and removing unnecessary event logic

---------

Co-authored-by: Oleg Ivaniv <oleg@n8n.io>
2023-03-31 13:59:09 +02:00
Michael Auerswald 83aef17120
feat(core): Read ephemeral license from environment and clean up ee flags (#5808)
Co-authored-by: Cornelius Suermann <cornelius@n8n.io>
2023-03-31 13:51:38 +02:00
Iván Ovejero 3ae69337ee
fix(editor): Curb overeager item access linting (#5865)
 Curb overeager item access linting
2023-03-31 13:33:57 +02:00
Michael Kret e11a30a640
fix(HubSpot Trigger Node): Developer API key is required for webhooks 2023-03-31 14:02:32 +03:00
Michael Kret 085660d7d7
fix(core): Fix curl import error when no data 2023-03-31 14:01:21 +03:00
Michael Kret 0da3b96cfc
fix(HTML Extract Node): Support for dot notation in JSON property 2023-03-31 14:00:45 +03:00
Mutasem Aldmour e3884ce378
fix: Add droppable state for booleans when mapping (#5838) 2023-03-31 12:35:02 +02:00
Csaba Tuncsik 96533a995c
fix(editor): Disable password reset on desktop with no user management (#5853)
* fix(editor): disable password reset on desktop if there is no user management

* fix(editor): disable password reset on desktop if there is no user management
2023-03-31 11:42:11 +02:00
OlegIvaniv a13866e233
fix(editor): Add $if, $min, $max to root expression autocomplete (#5858) 2023-03-31 11:37:25 +02:00
Iván Ovejero 4b11642a8c
refactor(editor): Remove CTA for errored node (#5857)
🔥 Remove CTA for errored node
2023-03-31 11:27:27 +02:00