Commit graph

6401 commits

Author SHA1 Message Date
Milorad FIlipović edebad1a89
fix(editor): Hide pin data in production executions (#4595)
*  Passing an execution mode to the preview iframe so UI can be adjusted based on it
*  Handling production execution mode to hide the pin data in node details view
2022-11-14 13:28:26 +01:00
Iván Ovejero 69b332b0e3
fix(editor): Fix expression editor variable selector filter (#4590)
* 🐛 Fix expression editor variable selector filter

*  Use optional chaining
2022-11-14 11:23:05 +01:00
Iván Ovejero 271cd06a6a
fix(editor): Curb direct item access linting (#4591)
🐛 Curb direct item access linting
2022-11-14 11:22:55 +01:00
Iván Ovejero ccacd42b37
fix(editor): Skip optional chaining operators in Code Node editor linting (#4592)
* 🐛 Skip optional chaining operators

*  Wrap in try-catch
2022-11-14 11:22:35 +01:00
Milorad FIlipović e0ec5a6aa9
fix(editor): Fix for execution retry dropdown not closing (#4575)
* 🐛 Fixing execution retry popup closing behavior
* 👌 Updating child component ref type casting
* 👌 Handling `undefined` possibility in action dropdown blur event
2022-11-14 09:35:16 +01:00
Alex Grozav c1bcc47cb5
fix: Fix inferred type of X cannot be named error after pnpm update (no-changelog) (#4585)
* fix: Fix inferred type of X cannot be named error after pnpm update

* preserve symlinks for `cli`

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2022-11-11 17:05:21 +01:00
Iván Ovejero 52f38df867
refactor: Remove unused vars to fix build (no-changelog) (#4584)
* 🔥 Remove unused vars to fix build

* 👕 Make unused vars severity conditional
2022-11-11 16:07:50 +01:00
Marcus 277b6b73c3
feat(Notion (Beta) Node): Use resource locator component for database and page parameters (#4340)
* use resource locator component for database -> get (Notion V1/V2)

* getDatabases search function for V1/V2 with url

* updated database get list placeholder

* get database RLC by url - regex support optional workspace domain names

* fixed linting error

* listSearch getDatabases support filter query

* support extractValue in getCurrentNodeParameter for RLC

* RLC for database page create/getAll operation

* RLC for database get operation support "By ID" with optional v param.

* use RLC in append blocks operation

* use RLC in NotionTrigger.nodes.ts

* removed unused loadOptions getDatabases

* support database RLC in createPage/createDbPage operation

* page create operation use RLC for parent page param

* page archive operation use RLC for page param

* removed unused imports

* fixed missing extractPageId in NotionV1.node.ts

* database page get operation use RLC for page param

* database page update operation use RLC for page param

* block getAll children operation use RLC for page param

* block append operation use RLC for block param

* support databaseId with optional '-' characters

* support blockId with optional '-' characters

* support pageId with optional '-' characters

* improved RLC descriptions and hints

* NotionTrigger node support databseId with optional '-' characters

* stricter RLC by ID regex rules for uuids

* stricter RLC by URL regex rules for uuids

* stricter RLC by ID regex rules for uuids (support max length)

* RLC regex from URL allow both http and https

* RLC by ID only allow uuid v4 with optional dash

* removed RLC from URL hint "Use Notion's copy link..."

* RLC from URL only allow uuid v4

* DB Status Column: Support Simplify Properties

* Notion Credentials: Support custom Notion-Version header

Use latest Notion-Version 2022-02-22 if not set

* DB Status Column: Support DB Page Create/Update

* DB Status Column: Support DB Page GetMany Filters

* removed unused paginationToken args

* Database Get: RLC by URL improve validation error message
2022-11-11 13:37:52 +01:00
agobrech c7133ecd3f
fix(core): Deduplicate error handling in nodes (#4319)
* Fix issue with isAxios property

* 🥅 Deduplicate errors handeling improve errors for credentials

* 🎨 correctly throws error
2022-11-11 11:32:43 +01:00
Iván Ovejero d35d63a855
feat(core): Add credential runtime checks and prevent tampering in manual run (#4481)
*  Create `PermissionChecker`

*  Adjust helper

* 🔥 Remove superseded helpers

*  Use `PermissionChecker`

* 🧪 Add test for dynamic router switching

*  Simplify checks

*  Export utils

*  Add missing `init` method

* 🧪 Write tests for `PermissionChecker`

* 📘 Update types

* 🧪 Fix tests

*  Set up `runManually()`

*  Refactor to reuse methods

* 🧪 Clear shared tables first

* 🔀 Adjust merge

*  Adjust imports
2022-11-11 11:14:45 +01:00
OlegIvaniv 50f7538779
refactor(editor): Add Workflows view e2e tests (#4573) 2022-11-11 09:07:14 +01:00
Jan Oberhauser faff1faaa8 🔖 Release n8n@0.202.1 2022-11-10 20:56:51 +00:00
Jan Oberhauser 5eec6f7f45 ⬆️ Set n8n-core@0.142.1, n8n-editor-ui@0.168.1, n8n-nodes-base@0.200.1 and n8n-workflow@0.124.1 on n8n 2022-11-10 20:56:49 +00:00
Jan Oberhauser efde8ce45a 🔖 Release n8n-editor-ui@0.168.1 2022-11-10 20:55:01 +00:00
Jan Oberhauser 03032ea4ef ⬆️ Set n8n-workflow@0.124.1 on n8n-editor-ui 2022-11-10 20:55:00 +00:00
Jan Oberhauser 4a484af986 🔖 Release n8n-nodes-base@0.200.1 2022-11-10 20:54:06 +00:00
Jan Oberhauser 2723e3ea15 ⬆️ Set n8n-core@0.142.1 and n8n-workflow@0.124.1 on n8n-nodes-base 2022-11-10 20:54:05 +00:00
Jan Oberhauser f5aa63de8e 🔖 Release n8n-node-dev@0.81.1 2022-11-10 20:53:52 +00:00
Jan Oberhauser 165b789260 ⬆️ Set n8n-core@0.142.1 and n8n-workflow@0.124.1 on n8n-node-dev 2022-11-10 20:53:50 +00:00
Jan Oberhauser f0eeaa62bc 🔖 Release n8n-core@0.142.1 2022-11-10 20:53:42 +00:00
Jan Oberhauser 4c57ee33ce ⬆️ Set n8n-workflow@0.124.1 on n8n-core 2022-11-10 20:53:41 +00:00
Jan Oberhauser 083316b4db 🔖 Release n8n-workflow@0.124.1 2022-11-10 20:53:32 +00:00
कारतोफ्फेलस्क्रिप्ट™ b2201d0c77
fix: Disable some error tracking (#4579)
* fix: remove error tracking for Circular reference in deepCopy

* fix: remove error tracking on crash detection
2022-11-10 21:44:31 +01:00
agobrech 9e457d614c
refactor(Schedule Trigger Node): Deduplicate the cron interface (#4525)
🎨 deduplicate Cron Interface
2022-11-10 17:19:13 +01:00
Jan Oberhauser e2b3ceadc8 🔖 Release n8n@0.202.0 2022-11-10 15:48:19 +00:00
Jan Oberhauser 9d5a779d6e ⬆️ Set n8n-core@0.142.0, n8n-editor-ui@0.168.0, n8n-nodes-base@0.200.0 and n8n-workflow@0.124.0 on n8n 2022-11-10 15:48:17 +00:00
Jan Oberhauser be5b89ef3e 🔖 Release n8n-editor-ui@0.168.0 2022-11-10 15:45:53 +00:00
Jan Oberhauser bd22135b06 ⬆️ Set n8n-design-system@0.42.0 and n8n-workflow@0.124.0 on n8n-editor-ui 2022-11-10 15:45:51 +00:00
Jan Oberhauser f0b4d91794 🔖 Release n8n-design-system@0.42.0 2022-11-10 15:45:30 +00:00
Jan Oberhauser 05c479968c 🔖 Release n8n-nodes-base@0.200.0 2022-11-10 15:44:15 +00:00
Jan Oberhauser 005d1dd46e ⬆️ Set n8n-core@0.142.0 and n8n-workflow@0.124.0 on n8n-nodes-base 2022-11-10 15:44:12 +00:00
Jan Oberhauser d40cb2f962 🔖 Release n8n-node-dev@0.81.0 2022-11-10 15:43:58 +00:00
Jan Oberhauser e5033659ef ⬆️ Set n8n-core@0.142.0 and n8n-workflow@0.124.0 on n8n-node-dev 2022-11-10 15:43:56 +00:00
Jan Oberhauser 5cb65871d4 🔖 Release n8n-core@0.142.0 2022-11-10 15:43:44 +00:00
Jan Oberhauser 59fc813cca ⬆️ Set n8n-workflow@0.124.0 on n8n-core 2022-11-10 15:43:43 +00:00
Jan Oberhauser d95382e330 🔖 Release n8n-workflow@0.124.0 2022-11-10 15:43:33 +00:00
Iván Ovejero 9582a0f1c0
refactor(editor): Reintroduce item and items to CodeNodeEditor (#4553)
*  Alias legacy refs to new syntax

* 📘 Adjust types

* 👕 Switch `item` lint error to warning

*  Add completions for legacy vars

* ✏️ Add descriptions to completions

*  Add lintings

* 📘 Skip `any` for now

*  Expand regex
2022-11-10 16:29:41 +01:00
Iván Ovejero 953457ad86
fix(core): Streamline multiple pinned triggers behavior (#4569)
🐛 Fix multiple pinned triggers behavior
2022-11-10 14:03:14 +01:00
Milorad FIlipović d06197d879
fix(editor): Fix for oauth authorization (#4572)
🐛 Fixing credentials response type check that prevented oauth authorization
2022-11-10 12:51:50 +01:00
agobrech 9b5db8d7be
fix(HubSpot Node): Add notice to HubSpot credentials about API Key Sunset (#4570)
 Add notice about depreciation of Hubspot API token
2022-11-10 11:39:22 +01:00
OlegIvaniv 49748f27a2
fix(editor): Prevent adding of the start node when importing workflow in the demo mode (#4564) 2022-11-09 18:36:06 +01:00
कारतोफ्फेलस्क्रिप्ट™ 736777385c
feat: Switch from npm to pnpm (#4429) 2022-11-09 17:32:05 +01:00
Milorad FIlipović db163b71b9
fix(editor): Use base path in workflow preview component URL (#4560)
🐛 Fix for workflow preview component URL
2022-11-09 16:46:13 +01:00
Mutasem Aldmour 536c834313
fix(editor): Fix duplicate bug when new workflow is open (#4559)
fix(editor): fix duplicate bug when new worklfow
2022-11-09 16:09:58 +01:00
Csaba Tuncsik b3cd62d866
fix(editor): Tweak dragged mapping state (#4550)
* fix(editor): show input value when dragging

* fix(editor): show input value when dragging

* fix(editor): add back some input value hiding logic
2022-11-09 16:05:42 +01:00
कारतोफ्फेलस्क्रिप्ट™ 698d96a617
refactor: Setup typescript project references across workflow, core, and cli (#4519)
* refactor: use consistent folder structure across workflow, core, and cli

* setup typescript project references across workflow, core, and cli
2022-11-09 15:25:00 +01:00
Milorad FIlipović de96def372
feat(editor): Add support for notice credentials properties (#4557)
 Added notice parameter support for credentials.
2022-11-09 14:50:01 +01:00
Michael Kret d7459a7145
fix(Notion (Beta) Node): Fix import in credentials (no-changelog) (#4554)
 fix
2022-11-09 12:19:15 +01:00
Ugo Bataillard 3b3405089d
fix(Notion Trigger (Beta) Node): Fix Notion trigger polling strategy 2022-11-09 12:26:13 +02:00
Milorad FIlipović bae3098e4e
refactor(editor): Finish pinia migration, remove all vuex dependancies (#4533)
*  Added pinia support. Migrated community nodes module.
*  Added ui pinia store, moved some data from root store to it, updated modals to work with pinia stores
*  Added ui pinia store and migrated a part of the root store
*  Migrated `settings` store to pinia
*  Removing vuex store refs from router
*  Migrated `users` module to pinia store
*  Fixing errors after sync with master
*  One more error after merge
*  Created `workflows` pinia store. Moved large part of root store to it. Started updating references.
*  Finished migrating workflows store to pinia
*  Renaming some getters and actions to make more sense
*  Finished migrating the root store to pinia
*  Migrated ndv store to pinia
*  Renaming main panel dimensions getter so it doesn't clash with data prop name
* ✔️ Fixing lint errors
*  Migrated `templates` store to pinia
*  Migrated the `nodeTypes`store
*  Removed unused pieces of code and oold vuex modules
*  Adding vuex calls to pinia store, fixing wrong references
* 💄 Removing leftover $store refs
*  Added legacy getters and mutations to store to support webhooks
*  Added missing front-end hooks, updated vuex state subscriptions to pinia
* ✔️ Fixing linting errors
*  Removing vue composition api plugin
*  Fixing main sidebar state when loading node view
* 🐛 Fixing an error when activating workflows
* 🐛 Fixing isses with workflow settings and executions auto-refresh
* 🐛 Removing duplicate listeners which cause import error
* 🐛 Fixing route authentication
*  Updating freshly pulled $store refs
*  Adding deleted const
*  Updating store references in ee features. Reseting NodeView credentials update flag when resetting workspace
*  Adding return type to email submission modal
*  Making NodeView only react to paste event when active
* 🐛 Fixing signup view errors
*  Started migrating the `credentials` module to pinia
* 👌 Addressing PR review comments
*  Migrated permissions module to pinia
*  Migrated `nodeCreator`, `tags` and `versions` modules to pinia
*  Implemented webhooks pinia store
*  Removing all leftover vuex files and references
*  Removing final vuex refs
*  Updating expected credentialId type
*  Removing node credentials subscription code, reducing node click debounce timeout
* 🐛 Fixing pushing nodes downstream when inserting new node
* ✔️ Fixing a lint error in new type guard
*  Updating helper reference
* ✔️ Removing unnecessary awaits
*  fix(editor): remove unnecessary imports from NDV
*  Merging mapStores blocks in NodeView
*  fix(editor): make sure JS Plumb not loaded earlier than needed
*  Updating type guard nad credentials subscriptions
*  Updating type guard so it doesn't use `any` type

Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
2022-11-09 10:01:50 +01:00
OlegIvaniv 825637f02a
fix(editor): Fix workflow back button navigation (#4546)
* 🐛 Fix back button navigation from recetly saved workflow

* 🐛 Fix coming-soon routes
2022-11-09 09:31:23 +01:00
Ricardo Espinoza 740df0c1e5
fix(Raindrop Node): Update access token URL (#4542)
 Change token exchange URL
2022-11-08 15:02:49 -05:00
Milorad FIlipović d2bec63cec
fix(editor): Fix workflow activation from the Workflows view (#4549)
🐛 Fixing a bug when activating workflow from workflows view
2022-11-08 18:05:50 +01:00
Iván Ovejero 026fb50512
feat(core): Add ownership, sharing and credential details to GET /workflows (#4510)
*  Abstract into `getMany()`

*  Use `getMany()` from free controller

*  Use `getMany()` from paid controller

* 🧪 Add tests

* 🧪 Fix tests

*  Add credential usage info

* 🧪 Update tests

*  Add type and adjust test
2022-11-08 17:52:42 +01:00
Milorad FIlipović 01171912e7
fix(editor): Fix for incorrect execution saving indicator in executions view (#4547)
🐛 Fix workflow settings icon in executions view
2022-11-08 17:16:36 +01:00
कारतोफ्फेलस्क्रिप्ट™ 2425c10b2b
feat(API): Report unhandled app crashes to Sentry (#4548)
* SIGTERM/SIGINT should only be handled once

* move error-handling initialization to commands

* create a new `sleep` function in workflow utils

* detect crashes and report them to Sentry
2022-11-08 17:06:00 +01:00
feelgood-interface 5d852f9230
fix(SendInBlue Trigger Node): fix typo in credential name (#4357) 2022-11-08 15:42:04 +00:00
Michael Kret 479644a499
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)
*  rule and fixes

*  clean up
2022-11-08 15:28:21 +01:00
Valya ebf17e1827
refactor: make IPollFunctions emit consistent with trigger emit (#4201)
* refactor: make IPollFunctions emit consistent with trigger emit

* refactor: re-add underscores to poll emits

* chore: update emit override message
2022-11-08 13:29:20 +00:00
Alex Grozav 77644860c0
feat: Add cypress e2e tests for signup and signin (#3490)
* feat: Added cypress setup files.

* feat: Added server bootup and initial test run.

* feat: Added e2e tests for signin, signup, and personalization form.

* feat: Added e2e tests for adding a function node.

* feat: Added set node and workflow execution steps.

* feat: Added test id to main sidebar.

* feat: Added test for creating a new workflow.

* feat: Finished test for creating a blank workflow

* chore: Removed screenshots from e2e tests.

* refactor: change e2e tests to per page structure

* feat: add cypress type enchancements

* feat: add typescript for cypress tests

* fix: remove component after merge

* feat: update cypress definitions

* feat: add cypress cleanup task

* refactor: update cypress script names

* ci: add smoke tests to workflow

* chore: remove cypress example files

* feat: update signup flow to be reusable

* fix: fix signup route for cypress page object

* fix: remove cypress reset command

* fix: remove unused imports

* fix: Add unhandled error catcher
2022-11-08 14:21:10 +02:00
Iván Ovejero 5d73b6e48a
fix(core): Fix manual execution of pinned trigger on main mode (#4535)
🐛 Fix manual execution of pinned trigger on main mode
2022-11-08 09:40:05 +01:00
कारतोफ्फेलस्क्रिप्ट™ c239eea1b9
fix(HTTP Request Node): Show error cause in the output (#4538)
fix (HTTP Request node): show error cause in the output

This broke in these two PRs

https://github.com/n8n-io/n8n/pull/4505/
https://github.com/n8n-io/n8n/pull/4431/
2022-11-07 12:40:54 -05:00
Iván Ovejero 157e8e0cc8
refactor(core): Skip interim updates check (no-changelog) (#4536)
 Skip interim updates check
2022-11-07 17:33:35 +01:00
कारतोफ्फेलस्क्रिप्ट™ 1c98f97e9e
ci: Revert support for node.js 18 (#4518) (#4537)
Revert "ci: Start supporting node.js 18 (#4518)"

This reverts commit 9ee292cd17.
2022-11-07 17:23:08 +01:00
कारतोफ्फेलस्क्रिप्ट™ 9ee292cd17
ci: Start supporting node.js 18 (#4518)
* ci: start supporting node.js 18

Node.js 18 becomes the active LTS on 2022-10-25, as Node.js 16 goes into maintenance mode.
https://github.com/nodejs/Release#release-schedule

* continue using node 16 for production images

* node 16 for debian and base images as well for now
2022-11-07 15:51:57 +01:00
Csaba Tuncsik 88baaa0eb1
fix(editor): Update workflow buttons spacings (#4534) 2022-11-07 12:56:19 +01:00
Csaba Tuncsik f6b85f4a69
fix(editor): Showing string numbers and null properly in JSON view (#4513)
* fix(editor): update `vue-json-pretty` package

* fix(editor): JSON view show string numbers and null properly

* fix(editor): testing if RunDataJson.vue display the values according to its type

* chore(editor): resolve package-lock.json conflict

* fix(editor): using @pinia/testing library to mock pinia store

* chore: fix package-lock.json after merge conflicts
2022-11-07 12:27:02 +01:00
Iván Ovejero 5e0ded4a84
fix(editor): Switch CodeNodeEditor linter parser to esprima-next (#4524)
* ⬆️ Switch to `esprima-next`

* 📦 Update `package-lock.json`

*  Use `esprima-next`

* 📘 Ignore type issue

* 📦 Update `package-lock.json`
2022-11-07 10:34:44 +01:00
कारतोफ्फेलस्क्रिप्ट™ f5c20803d7
fix(API): Do not use names for typeorm connections (#4532)
fix(API): do not use names for typeorm connections
2022-11-07 10:07:50 +01:00
Csaba Tuncsik 350b356271
refactor(editor): Encapsulate canvas actions (#4416)
* feat(editor): encapsulating canvas actions

* fiz(editor): zoomToFit

* fiz(editor): zoomToFit

* fiz(editor): fix imoprts in canvas controls

* fiz(editor): fix imports in node view

* fiz(editor): remove unused props from canvas controls

* fiz(editor): fix zoomToFit functionality

* fiz(editor): move more functions from NodeView to canvas store

* chore(editor): code formatting fixes

* fix(editor): adding back some lost refactoring after merge

* fix(editor): remove console.log

* fix(editor): add missing canvasAddButtonPosition

* fix(editor): modify root store env query

* fix(editor): modify canvas control position styling

* fix(editor): modify canvas control position styling

* fix(editor): roll back process.env

* fix(editor): fix canvas controls positioning

* fix(editor): fix canvas controls positioning

* fix(editor): adopting new styles after merge

* fix(editor): not storing html element in the store

* fix(editor): remove unused variables

* fix(editor): update canvas controls after conflict resolution

* fix(editor): revert main.ts to reduce change noise

* fix(editor): remove old store commit

* fix(editor): simplify canvas store

* fix(editor): reposition execute workflow button in mobile view

* fix(editor): fox mouse scroll zoom in canvas

* fix(editor): move canvas scroll handling into canvas controls
2022-11-07 09:53:27 +01:00
कारतोफ्फेलस्क्रिप्ट™ 4517c4a90a
fix: Database config should resolve entities and migrations folder relative to it's path (no-changelog) (#4527)
dbconfig should resolve entities and migrations folder relative to itself
2022-11-04 18:45:37 +01:00
कारतोफ्फेलस्क्रिप्ट™ 41cb0eec6e
feat(API): Set up error tracking using Sentry (#4394)
* feat(cli): Setup error tracking using Sentry

* make error reporting available in the workflows package

* address some of the PR comments

* create a ErrorReporterProxy like LoggerProxy

* remove the `captureError` helper. use ErrorReporterProxy directly

* fix linting issues

* remove ErrorReporterProxy warnings in tests

* check for NODE_ENV === 'production' instead

* IErrorReporter -> ErrorReporter

* ErrorReporterProxy.getInstance() -> ErrorReporter

* allow capturing stacks in warnings as well

* make n8n debugging consistent with `npm start`

* IReportingOptions -> ReportingOptions

* use consistent signature for `error` and `warn`

* use Logger instead of console.log
2022-11-04 17:34:47 +01:00
Iván Ovejero 0edd4bcc87
fix(editor): Curb arg linting for $input.first() and $input.last() (#4526)
🐛 Curb arg linting
2022-11-04 17:24:29 +01:00
Ricardo Espinoza 39d4bb2639
fix(HTTP Request Node): use the data in "Put Output in Field" field (#4487)
🐛 Use the data in "Put Output in Field" field
;
2022-11-04 10:50:38 -04:00
कारतोफ्फेलस्क्रिप्ट™ eb3fffd203
refactor: consolidate database configs (#4522)
* consolidate db configs

* allow using custom file-name for the sqlite db

* remove the unused `logging` config. it's overwritten in Db.ts
2022-11-04 14:23:58 +01:00
Milorad FIlipović 40e413d958
refactor(editor): Migrate part of the vuex store to pinia (#4484)
*  Added pinia support. Migrated community nodes module.
*  Added ui pinia store, moved some data from root store to it, updated modals to work with pinia stores
*  Added ui pinia store and migrated a part of the root store
*  Migrated `settings` store to pinia
*  Removing vuex store refs from router
*  Migrated `users` module to pinia store
*  Fixing errors after sync with master
*  One more error after merge
*  Created `workflows` pinia store. Moved large part of root store to it. Started updating references.
*  Finished migrating workflows store to pinia
*  Renaming some getters and actions to make more sense
*  Finished migrating the root store to pinia
*  Migrated ndv store to pinia
*  Renaming main panel dimensions getter so it doesn't clash with data prop name
* ✔️ Fixing lint errors
*  Migrated `templates` store to pinia
*  Migrated the `nodeTypes`store
*  Removed unused pieces of code and oold vuex modules
*  Adding vuex calls to pinia store, fi	xing wrong references
* 💄 Removing leftover $store refs
*  Added legacy getters and mutations to store to support webhooks
*  Added missing front-end hooks, updated vuex state subscriptions to pinia
* ✔️ Fixing linting errors
*  Removing vue composition api plugin
*  Fixing main sidebar state when loading node view
* 🐛 Fixing an error when activating workflows
* 🐛 Fixing isses with workflow settings and executions auto-refresh
* 🐛 Removing duplicate listeners which cause import error
* 🐛 Fixing route authentication
*  Updating freshly pulled $store refs
* Adding deleted const
*  Updating store references in ee features. Reseting NodeView credentials update flag when resetting workspace
*  Adding return type to email submission modal
*  Making NodeView only react to paste event when active
* 🐛 Fixing signup view errors
* 👌 Addressing PR review comments
* 👌 Addressing new PR comments
* 👌 Updating invite id logic in signup view
2022-11-04 14:04:31 +01:00
Mutasem Aldmour c2c7927414
fix(editor): fix themes the monaco editor (no-changelog) (#4521)
fix(editor): fix dark mode for the monaco editor (no-changelog)

just the default light and dark themes that are shipped with the editor

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2022-11-04 13:16:44 +01:00
Csaba Tuncsik 78c024b247
refactor(editor): restrict mapping discoverability tooltip showing only on string input (#4496)
* refactor(editor): restrict mapping discoverability tooltip showing only on string input

* refactor(editor): renaming computed prop because not only string inputs can be mapped, but we want to show tooltips only on string inputs

* fix(editor): removing unused prop from ParameterInputWrapper.vue

* fix(editor): reorganizing and updating props in ParameterInputFull.vue

* fix(editor): proper typings for node related translations

* fix(editor): fix typings for input localisation functions

* fix(editor): simplifying localisation functions

* Revert "fix(editor): simplifying localisation functions"

This reverts commit 3d93ccf0cf.

* fix(editor): move nullish coalescing into called function
2022-11-03 13:04:53 +01:00
Jan Oberhauser 0b75253f50 🔖 Release n8n@0.201.0 2022-11-02 17:28:15 +00:00
Jan Oberhauser 913296fe20 ⬆️ Set n8n-core@0.141.0, n8n-editor-ui@0.167.0, n8n-nodes-base@0.199.0 and n8n-workflow@0.123.0 on n8n 2022-11-02 17:28:14 +00:00
Jan Oberhauser b47e1ffa28 🔖 Release n8n-editor-ui@0.167.0 2022-11-02 17:26:50 +00:00
Jan Oberhauser 21576eb164 ⬆️ Set n8n-design-system@0.41.0 and n8n-workflow@0.123.0 on n8n-editor-ui 2022-11-02 17:26:50 +00:00
Jan Oberhauser a6d0358c8f 🔖 Release n8n-design-system@0.41.0 2022-11-02 17:26:32 +00:00
Jan Oberhauser 747b496ce1 🔖 Release n8n-nodes-base@0.199.0 2022-11-02 17:25:43 +00:00
Jan Oberhauser cd445ce689 ⬆️ Set n8n-core@0.141.0 and n8n-workflow@0.123.0 on n8n-nodes-base 2022-11-02 17:25:42 +00:00
Jan Oberhauser 604f75796a 🔖 Release n8n-node-dev@0.80.0 2022-11-02 17:25:36 +00:00
Jan Oberhauser 629e5b56f7 ⬆️ Set n8n-core@0.141.0 and n8n-workflow@0.123.0 on n8n-node-dev 2022-11-02 17:25:35 +00:00
Jan Oberhauser 5d0707fcbb 🔖 Release n8n-core@0.141.0 2022-11-02 17:25:29 +00:00
Jan Oberhauser 8eea8929ae ⬆️ Set n8n-workflow@0.123.0 on n8n-core 2022-11-02 17:25:28 +00:00
Jan Oberhauser e4e4823d08 🔖 Release n8n-workflow@0.123.0 2022-11-02 17:25:17 +00:00
कारतोफ्फेलस्क्रिप्ट™ b282c7e5d9
fix(core): make deepCopy backward compatible (#4505)
* fix(core): make `deepCopy` backward compatible

`JSON.parse(JSON.stringify())`  uses `.toJSON` when available. so should `deepCopy`

* fix(core): prevent double quotes on luxon datetimes (#4508)

* 🐛 Prevent double quotes on luxon datetimes

*  Generalize solution

* update the types in packages/workflow/src/utils.ts

* add `toJSON` check to NodeErrors.isTraversableObject as well

* move the toJSON check before the cyclic dependency check

* fix(core): keep backward compatibility in deepCopy by calling `toJSON` on objects that have it

* fix(core): updating deepCopy typings

* Revert "fix(core): updating deepCopy typings"

This reverts commit 100a0f1f3d.

* fix(core): temporarily removing Date cloning from deepCopy

* fix(core): updating deepCopy types

* fix(core): updating deepCopy

* fix(core): updating deepCopy get prototype of object

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
2022-11-02 17:44:12 +01:00
Milorad FIlipović 721ef26d5f
fix(editor): workflow settings link font size change (no-changelog) (#4511)
💄 Updating `Workflow settings` link font size in executions view
2022-11-02 15:37:34 +01:00
Csaba Tuncsik b0df810745
perf(editor): improve array intersection utility function (#4503) 2022-11-02 15:03:55 +01:00
Mutasem Aldmour 3c9ad02ce3
refactor(editor): put editor theme behind local storage flag (#4498)
set theme
2022-11-02 11:37:09 +01:00
Valya 3a1fa09108
fix: displayOptions not getting value of RLC (#4460)
* fix: use `value` of RLC in `displayOptions`

* fix: add `__rl` to RLC default value if it doesn't have it
2022-11-02 09:37:49 +00:00
Csaba Tuncsik 41e6489b75
fix(editor): limiting columns in table view to prevent unresponsive UI when opening NDV (#4480)
* fix(editor): limiting columns in table view

* fix(editor): adding ghost table column with tooltip to table view

* fix(editor): limit columns to 40

* fix(editor): show table columns if it doesn't exceed the limit

* fix(editor): rolling back globalLinkActions changes

* fix(editor): using i18n tag for having cleaner event handling

* fix(editor): emphasizing magic variable

* fix(editor): removing unused prop
2022-11-02 09:23:09 +01:00
Milorad FIlipović dcec5e9e82
fix(editor): disable settings link in executions view for unsaved workflows (#4493)
 Disabling settings link in executions view for unsaved workflows
2022-11-01 22:23:05 +01:00
OlegIvaniv 1e445fc1a3
fix(editor): fix an issue with not being able to save some of the forms (#4499) 2022-11-01 20:24:05 +01:00
Iván Ovejero 1c229a7b52
refactor(core): apply lint rule cred-class-field-unobscured-sensitive-input (#4495)
* ⬆️ Upgrade linter

* 📦 Update `package-lock.json`

* 👕 Enable rule

* 👕 Apply rule

* 📦 Re-update `package-lock.json`
2022-11-01 17:41:45 +01:00
Iván Ovejero cf034c015f
fix(editor): fix interim updates on executions view (#4497)
🐛 Set hash on executions view
2022-11-01 17:40:45 +01:00
OlegIvaniv f24497589f
fix(editor): fix node creator search when there's active subcategory (#4494)
* fix(editor): fix node creator search when there's active subcategory

* 🎨 Add intersection util and replace lodash one with it

* 🎨 Remove unused imports
2022-11-01 17:11:31 +01:00
Ricardo Espinoza d1d1288ba9
feat(Venafi TLS Protect Cloud Node): make issuing template depend on application (#4476)
*  Make issuing template depending on application

*  Make validity period type string

*  Reorder certificateRequest:create fields semantically
2022-11-01 09:56:00 -04:00
Iván Ovejero 2b5613ed68
fix(core): fix workflow hasing for MySQL (#4491)
* 🐛 Alphabetize node keys

* 🔥 Remove excess braces
2022-11-01 13:51:13 +01:00
Csaba Tuncsik 6c2c621f1d
feat(editor): block UI in NDV when workflow is listening to events (#4390)
* feature: block UI in NDV when workflow is listening to events

* feature: hide stop listening button in parameters pane and show stop listening button in input pane for webhook

* feature: create block UI design system component

* fix: add back accidentally removed prop

* fix(editor): extend node settings event listener button functionality

* refactor(editor): using composition API in BlockUi component
2022-10-31 18:59:53 +01:00
Omar Ajoue 7563d450f9
feat: also send credentials when returning workflow via API (#4458) (no-changelog) 2022-10-31 11:08:25 -03:00
Iván Ovejero ec5ef0c50d
refactor(core): clear @ts-ignore from workflow and core packages (#4467)
* 📘 Clear all `@ts-ignore` comments from workflow package

* 👕 Default to error with package-level overrides

* refactor(core): clear all `@ts-ignore` comments from core package (#4473)

👕 Clear all `@ts-ignore` comments from core package

* ✏️ Update comment
2022-10-31 12:45:34 +01:00
Iván Ovejero 46905fd2cb
feat(core): reimplement blocking workflow updates on interim changes (#4446)
* 📘 Update request type

* 📘 Update FE types

*  Adjust store

*  Set received hash

*  Send and load hash

*  Make helper more flexible

* 🗃️ Add new field to entity

* 🚨 Add check to endpoint

* 🧪 Add tests

*  Add `forceSave` flag

* 🐛 Fix workflow update failing on new workflow

* 🧪 Add more tests

*  Move check to `updateWorkflow()`

*  Refactor to accommodate latest changes

* 🧪 Refactor tests to keep them passing

*  Improve syntax
2022-10-31 10:35:24 +01:00
Jan Oberhauser cf915fb7bd 🔖 Release n8n@0.200.1 2022-10-28 14:25:11 +00:00
Jan Oberhauser 091e009363 ⬆️ Set n8n-core@0.140.1, n8n-editor-ui@0.166.1, n8n-nodes-base@0.198.1 and n8n-workflow@0.122.1 on n8n 2022-10-28 14:25:11 +00:00
Jan Oberhauser 704f1cb4ed 🔖 Release n8n-editor-ui@0.166.1 2022-10-28 14:22:42 +00:00
Jan Oberhauser be4490e4dd ⬆️ Set n8n-workflow@0.122.1 on n8n-editor-ui 2022-10-28 14:22:42 +00:00
Jan Oberhauser 3f9089a1da 🔖 Release n8n-nodes-base@0.198.1 2022-10-28 14:21:49 +00:00
Jan Oberhauser 9800123634 ⬆️ Set n8n-core@0.140.1 and n8n-workflow@0.122.1 on n8n-nodes-base 2022-10-28 14:21:49 +00:00
Jan Oberhauser 53e36a8c54 🔖 Release n8n-node-dev@0.79.1 2022-10-28 14:21:40 +00:00
Jan Oberhauser 4951c98066 ⬆️ Set n8n-core@0.140.1 and n8n-workflow@0.122.1 on n8n-node-dev 2022-10-28 14:21:40 +00:00
Jan Oberhauser 088adb56b7 🔖 Release n8n-core@0.140.1 2022-10-28 14:21:30 +00:00
Jan Oberhauser e799fadb91 ⬆️ Set n8n-workflow@0.122.1 on n8n-core 2022-10-28 14:21:30 +00:00
Jan Oberhauser 198ae0869c 🔖 Release n8n-workflow@0.122.1 2022-10-28 14:21:23 +00:00
कारतोफ्फेलस्क्रिप्ट™ 818f57dd63
refactor: remove console.warn from deepCopy (#4471)
Jan realized that this was logging way too much (as in, we have way too many circular references).

I've changed this to be reported to Sentry, which should hopefully get merged next week.
2022-10-28 16:10:56 +02:00
Milorad FIlipović 658e886861
fix(editor): Remove filter that prevented showing running executions (#4470)
 Removed filter that stopped showing running executions if workflow is not saving manual executions
2022-10-28 16:04:31 +02:00
Csaba Tuncsik ca60b0e203
fix(core): updating deepCopy to avoid max callstack with circular deps (#4468)
* fix(core): updating deepCopy to avoid max callstack in case of circular dep

* fix(core): show warning with path added to circular reference
2022-10-28 15:25:44 +02:00
Mutasem Aldmour 7620d93eda
fix(editor): redirect old path /workflow (#4469) 2022-10-28 12:16:43 +02:00
कारतोफ्फेलस्क्रिप्ट™ e6ec134cf3
fix(AWS SNS Trigger Node): add missing jsonParse import (#4463)
* fix(AwsSnsTrigger): add missing jsonParse import

* add clear typings for req.rawBody and getHeaderData()
2022-10-28 11:24:11 +02:00
Iván Ovejero 641d904ee4
refactor: set ESLint to warn on ts-ignore comment (#4465)
👕 Set `ban-ts-comment` to warn on @ts-ignore
2022-10-28 10:35:31 +02:00
Milorad FIlipović dbac7955f9
fix(editor): fix for executions view auto-refresh and new workflow saving (#4462)
* 🐛 Fixing auto-refresh and save workflow bugs. Added executions filtering based on current workflow settings

* ✔️ Fixing a lint error
2022-10-28 09:54:01 +02:00
कारतोफ्फेलस्क्रिप्ट™ c66929f53d
fix(API): do not reset the auth cookie on every request to GET /login (#4459)
The cookie and the JWT refresh is already handled in `refreshExpiringCookie` middleware, which only updates the cookie 3 days before the expiration.

The middleware also uses `issueCookie`, which ensures that attributes like `sameSite` and `httpOnly` are correctly set on the cookie.
2022-10-27 17:39:59 +02:00
Jan Oberhauser 7c4aa1f7b2 🔖 Release n8n@0.200.0 2022-10-27 14:35:50 +00:00
Jan Oberhauser c138772326 ⬆️ Set n8n-core@0.140.0, n8n-editor-ui@0.166.0, n8n-nodes-base@0.198.0 and n8n-workflow@0.122.0 on n8n 2022-10-27 14:35:49 +00:00
Jan Oberhauser 00cbf3af7f 🔖 Release n8n-editor-ui@0.166.0 2022-10-27 14:32:01 +00:00
Jan Oberhauser 93cf3a2277 ⬆️ Set n8n-design-system@0.40.0 and n8n-workflow@0.122.0 on n8n-editor-ui 2022-10-27 14:32:01 +00:00
Jan Oberhauser 9e214dd8a0 🔖 Release n8n-design-system@0.40.0 2022-10-27 14:31:47 +00:00
Jan Oberhauser 4b0ba8fe29 🔖 Release n8n-nodes-base@0.198.0 2022-10-27 14:31:01 +00:00
Jan Oberhauser f8826226a3 ⬆️ Set n8n-core@0.140.0 and n8n-workflow@0.122.0 on n8n-nodes-base 2022-10-27 14:31:01 +00:00
Jan Oberhauser c108b8156e 🔖 Release n8n-node-dev@0.79.0 2022-10-27 14:30:54 +00:00
Jan Oberhauser 4561cfefbc ⬆️ Set n8n-core@0.140.0 and n8n-workflow@0.122.0 on n8n-node-dev 2022-10-27 14:30:54 +00:00
Jan Oberhauser 2e167da51f 🔖 Release n8n-core@0.140.0 2022-10-27 14:30:43 +00:00
Jan Oberhauser 6bd4854b3d ⬆️ Set n8n-workflow@0.122.0 on n8n-core 2022-10-27 14:30:42 +00:00
Jan Oberhauser 520914f525 🔖 Release n8n-workflow@0.122.0 2022-10-27 14:30:24 +00:00
Jan Oberhauser 14d887cf86 docs: Update logo and README files with new design 2022-10-27 14:57:49 +02:00
Jan Oberhauser 02fe545967 fix(HTTP Request Node): Fix sending previously selected credentials also on V2 (#4457) 2022-10-27 14:40:14 +02:00
Jan Oberhauser 44ad249827
fix(HTTP Request Node): Fix sending previously selected credentials (#4457) 2022-10-27 13:55:04 +02:00
Iván Ovejero b226aed9bb
fix(editor): curb item method linting in single-item mode in CodeNodeEditor linter (#4455)
🐛 Curb item method linting
2022-10-27 12:18:02 +02:00
कारतोफ्फेलस्क्रिप्ट™ f29f812b28
feat(editor): setup dark-mode for the code-editor, with automatic switching (#4453)
* feat(editor): Setup dark-mode for the code-editor, with automatic switching

By default this feature is disabled. The feature can be toggled with `document.body.classList.toggle('dark-mode-beta')`

* change the beta class name

* switch codemirror theme over to css variables
2022-10-27 12:17:45 +02:00
Marcus 227212c928
feat(Airtable Trigger Node): use resource locator component for base and table parameters (#4391)
add base and table RLC to AirtableTrigger.node.ts
2022-10-27 10:51:32 +02:00
Mutasem Aldmour 839f6ac777
refactor(editor): highlight error when jstoolkit objects are not deleted (#4451)
* remove try/catch

* update try catch
2022-10-27 09:39:39 +02:00
Cornelius Suermann d1b4d428cb
docs: scope Sustainable Use License to contents of the main branch (#4450)
docs: scope Sustainable Use License to contents of the main branch (e.g. 'master')
2022-10-26 16:50:33 +02:00
Omar Ajoue c65deb2949
feat: check for cred when updating workflow and remove credential_usage table (#4350) (no-changelog)
* feat: check for cred when updating workflow and remove credential_usage table
2022-10-26 10:49:43 -03:00
Iván Ovejero e8935de3b2
feat(core, editor): introduce workflow caller policy (#4368)
*  Create env `N8N_WORKFLOW_CALLER_POLICY_DEFAULT_OPTION`

* 👕 Adjust BE settings interface

* 👕 Adjust FE settings interface

*  Send policy along with settings

*  Enforce policy

*  Create `SubworkflowOperationError`

*  Add policy to Vuex store

*  Add setting to FE

*  Trim caller IDs on BE

*  Hide new UI behind `isWorkflowSharingEnabled`

* ✏️ Copy updates

* 👕 Fix lint
2022-10-26 14:59:54 +02:00
Michael Auerswald dd3c59677b
fix(API): validate excecutions and workflow filter parameters (#4424)
* typeorm queries with AND for filter, schema validation
* validate filters
* replace json.parse with jsonParse()
* limited fields further
* limited workflow fields further
* removes date filter fields and fix waitTill filter
* simplified filter name arrays
2022-10-26 13:30:35 +02:00
कारतोफ्फेलस्क्रिप्ट™ 1f610b90f6
feat: use ES2022 native error chaining to improve error reporting (#4431)
feat: use ES2022 native error chaining
2022-10-26 11:55:39 +02:00