Commit Graph
616 Commits
Author SHA1 Message Date
Iván OvejeroandJan Oberhauser 7879239e03 test: Make oclif commands testable (#3571)
* ➕ Add `@oclif/core`

* 📦 Update `package-lock.json`

* 📘 Export `Logger` for use as type

* ✨ Create `BaseCommand`

* 🐛 Prevent DB re-init

* ♻️ Refactor `reset` command

* 🧪 Fix `reset` test

* 👕 Add lint exception

Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com>
2022-06-25 21:03:46 -07:00
Jan Oberhauser e3f10b6101 🔖 Release n8n@0.183.0 2022-06-21 00:01:59 +00:00
Jan Oberhauser 6ac232a639 ⬆️ Set n8n-core@0.123.0, n8n-editor-ui@0.149.0, n8n-nodes-base@0.181.0 and n8n-workflow@0.105.0 on n8n 2022-06-21 00:01:59 +00:00
6f4a5039e0 ⬆️ Upgrade multiple dependencies (#3547)
* ⬆️ upgrade typeorm

* ⬆️ upgrade @types/node

* ⬆️ upgrade mssql

* ⬆️ upgrade monaco-editor to 0.30.1

* ⚡️ update package-lock

Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-06-20 15:17:18 -07:00
Jan Oberhauser a62ceee5fa 🔖 Release n8n@0.182.1 2022-06-16 11:24:18 -07:00
Jan Oberhauser c67d2860c7 ⬆️ Set n8n-core@0.122.1 on n8n 2022-06-16 11:21:54 -07:00
Jan Oberhauser 27da115734 🔖 Release n8n@0.182.0 2022-06-14 17:07:01 +00:00
Jan Oberhauser 63157ce3e0 ⬆️ Set n8n-core@0.122.0, n8n-editor-ui@0.148.0, n8n-nodes-base@0.180.0 and n8n-workflow@0.104.0 on n8n 2022-06-14 17:07:01 +00:00
Iván OvejeroandBen Hesseldieck b8e3bcc052 refactor(core): Post-release refactorings of Public API (#3495)
* ⚡ Post-release refactorings

* 🧪 Add `--forceExit`

* 🛠 typing refactor (#3486)

* 🐛 Fix middleware arguments

* 👕 Fix lint

* ⚡ Restore commented out block

Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com>
2022-06-14 09:32:19 -07:00
Iván Ovejero c121952324 fix(core): Fix Public API failing to build on Windows (#3499)
* ✨ Add build script

* 📦 Add dependencies

* 📦 Update package-lock.json

* 👕 Ignore `build.mjs`
2022-06-13 12:36:43 -07:00
Jan Oberhauser dfdbcc1eb3 🔖 Release n8n@0.181.2 2022-06-09 14:02:55 +02:00
Jan Oberhauser f94edd13a5 ⬆️ Set n8n-core@0.121.3 on n8n 2022-06-09 14:02:19 +02:00
Jan Oberhauser 22281f4ff9 🔖 Release n8n@0.181.1 2022-06-09 09:16:45 +02:00
Jan Oberhauser 64414fb7a6 ⬆️ Set n8n-core@0.121.2 on n8n 2022-06-09 09:15:31 +02:00
Jan Oberhauser 9a933dcebb 🔖 Release n8n@0.181.0 2022-06-08 19:27:00 +00:00
Jan Oberhauser deec0b0dcc ⬆️ Set n8n-core@0.121.0, n8n-editor-ui@0.147.0, n8n-nodes-base@0.179.0 and n8n-workflow@0.103.0 on n8n 2022-06-08 19:27:00 +00:00
a18081d749 feat: Add n8n Public API (#3064)
* ✨ Inicial setup

* ⚡ Add authentication handler

* ⚡ Add GET /users route

* ⚡ Improvements

* 👕 Fix linting issues

* ⚡ Add GET /users/:identifier endpoint

* ⚡ Add POST /users endpoint

* ⚡ Add DELETE /users/:identifier endpoint

* ⚡ Return error using express native functions

* 👕 Fix linting issue

* ⚡ Possibility to add custom middleware

* ⚡ Refactor POST /users

* ⚡ Refactor DELETE /users

* ⚡ Improve cleaning function

* ⚡ Refactor GET /users and /users/:identifier

* ⚡ Add API spec to route

* ⚡ Add raw option to response helper

* 🐛 Fix issue adding custom middleware

* ⚡ Enable includeRole parameter in GET /users/:identifier

* ⚡ Fix linting issues after merge

* ⚡ Add missing config variable

* ⚡ General improvements

⚡ asasas

* ⚡ Add POST /users tests

* Debug public API tests

* Fix both sets of tests

* ⚡ Improvements

* ⚡ Load api versions dynamically

* ⚡ Add endpoints to UM to create/delete an API Key

* ⚡ Add index to apiKey column

* 👕 Fix linting issue

* ⚡ Clean open api spec

* ⚡ Improvements

* ⚡ Skip tests

* 🐛 Fix bug with test

* ⚡ Fix issue with the open api spec

* ⚡ Fix merge issue

* ⚡ Move token enpoints from /users to /me

* ⚡ Apply feedback to openapi.yml

* ⚡ Improvements to api-key endpoints

* 🐛 Fix test to suport API dynamic loading

* ⚡ Expose swagger ui in GET /{version}/docs

* ⚡ Allow to disable public api via env variable

* ⚡ Change handlers structure

* 🚧 WIP create credential, delete credential complete

* 🐛 fix route for creating api key

* ⚡ return api key of authenticated user

* ⚡ Expose public api activation to the settings

* ⬆️ Update package-lock.json file

* ⚡ Add execution resource

* ⚡ Fix linting issues

* 🛠 conditional public api endpoints excluding

* ⚡️ create credential complete

* ✨ Added n8n-card component. Added spacing utility classes.

* ♻️ Made use of n8n-card in existing components.

* ✨ Added api key setup view.

* ✨ Added api keys get/create/delete actions.

* ✨ Added public api permissions handling.

* ♻️ Temporarily disabling card tests.

* ♻️ Changed translations. Storing api key only in component.

* ✨ Added utilities storybook entry

* ♻️ Changed default value for generic copy input.

* 🧹 clean up createCredential

* ⚡ Add workflow resource to openapi spec

* 🐛 Fix naming with env variable

* ⚡ Allow multifile openapi spec

* ⚡ Add POST /workflows/:workflowId/activate

* fix up view, fix issues

* remove delete api key modal

* remove unused prop

* clean up store api

* remove getter

* remove unused dispatch

* fix component size to match

* use existing components

* match figma closely

* fix bug when um is disabled in sidebar

* set copy input color

* remove unused import

* ⚡ Remove css path

* ⚡ Add POST /workflows/:workflowId/desactivate

* ⚡ Add POST /workflows

* Revert "⚡ Remove css path"

a3d0a71719834ef37c88c23c83dfe662e96185aa

* attempt to fix docker image issue

* revert dockerfile test

* disable public api

* disable api differently

* Revert "disable api differently"

b70e29433e45934975e41ffdc32e288988aba9b0

* Revert "disable public api"

886e5164fb4135c164f77561bdb4427e5cd44ac1

* remove unused box

* ⚡ PUT /workflows/:workflowId

* ⚡ Refactor workflow endpoints

* ⚡ Refactor executions endpoints

* ⚡ Fix typo

* ✅ add credentials tests

* ✅ adjust users tests

* update text

* add try it out link

* ⚡ Add delete, getAll and get to the workflow resource

* address spacing comments

* ⚡️ apply correct structure

* ⚡ Add missing test to user resource and fix some issues

* ⚡ Add workflow tests

* ⚡ Add missing workflow tests and fix some issues

* ⚡ Executions tests

* ⚡ finish execution tests

* ⚡ Validate credentials data depending on type

* ⚡️ implement review comments

* 👕 fix lint issues

* ⚡ Add apiKey to sanatizeUser

* ⚡ Fix issues with spec and tests

* ⚡ Add new structure

* ⚡ Validate credentials type and properties

* ⚡ Make all endpoints except /users independent on UM

* ⚡ Add instance base path to swagger UI

* ⚡ Remove testing endpoints

* ⚡ Fix issue with openapi tags

* ⚡ Add endpoint GET /credentialTypes/:id/schema

* 🐛 Fix issue adding json middleware to public api

* ⚡ Add API playground path to FE

* ⚡ Add telemetry and external hooks

* 🐛 Fix issue with user tests

* ⚡ Move /credentialTypes under /credentials

* ⚡ Add test to GET /credentials/schema/:id

* 🛠 refactor schema naming

* ⚡ Add DB migrations
asas

* ✅ add tests for crd apiKey

* ✨ Added API View telemetry events.

* ⚡ Remove rsync from the building process as it is missing on alpine base image

* ⚡ add missing BE telemetry events

* 🐛 Fix credential tests

* ⚡ address outstanding feedback

* 🔨 Remove move:openapi script

* ⬆️ update dependency

* ⬆️ update package-lock.json

* 👕 Fix linting issue

* 🐛 Fix package.json issue

* 🐛 fix migrations and tests

* 🐛 fix typos + naming

* 🚧 WIP fixing tests

* ⚡ Add json schema validation

* ⚡ Add missing fields to node schema

* ⚡ Add limit max upper limit

* ⚡ Rename id paths

* 🐛 Fix tests

* Add package-lock.jsonto custom dockerfile

* ⬆️ Update package-lock.json

* 🐛 Fix issue with build

* ✏️ add beta label to api view

* 🔥 Remove user endpoints

* ⚡ Add schema examples to GET /credentials/schema/:id

* 🔥 Remove user endpoints tests

* 🐛 Fix tests

* 🎨 adapt points from design review

* 🔥 remove unnecessary text-align

* ⚡️ update UI

* 🐛 Fix issue with executions filter

* ⚡ Add tags filter to GET /workflows

* ⚡ Add missing error messages

* ✅ add and update public api tests

* ✅ add tests for owner activiating/deactivating non-owned wfs

* 🧪 add tests for filter for tags

* 🧪 add tests for more filter params

* 🐛 fix inclusion of tags

* 🛠 enhance readability

* ⚡️ small refactorings

* 💄 improving readability/naming

* ⚡ Set API latest version dinamically

* Add comments to toJsonSchema function

* ⚡ Fix issue

* ⚡ Make execution data usable

* ⚡ Fix validation issue

* ⚡ Rename data field and change parameter and options

* 🐛 Fix issue parameter "detailsFieldFormat" not resolving correctly

* Skip executions tests

* skip workflow failing test

* Rename details property to data

* ⚡ Add includeData parameter

* 🐛 Fix issue with openapi spec

* 🐛 Fix linting issue

* ⚡ Fix execution schema

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: Mutasem <mutdmour@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-06-08 20:53:12 +02:00
Jan Oberhauser 759d625e0d 🔖 Release n8n@0.180.0 2022-06-07 19:46:05 +00:00
Jan Oberhauser 938e952a71 ⬆️ Set n8n-core@0.120.0, n8n-editor-ui@0.146.0, n8n-nodes-base@0.178.0 and n8n-workflow@0.102.0 on n8n 2022-06-07 19:46:05 +00:00
Jan Oberhauser d2ef76c494 🔖 Release n8n@0.179.0 2022-05-30 12:10:46 +00:00
Jan Oberhauser 5ceec13f9f ⬆️ Set n8n-core@0.119.0, n8n-editor-ui@0.145.0, n8n-nodes-base@0.177.0 and n8n-workflow@0.101.0 on n8n 2022-05-30 12:10:46 +00:00
Iván Ovejero b49d493653 fix(core): Fix migrations on non-public Postgres schema (#3356)
* 🐛 Fix UM migration

* ⚡ Account for schema in `search_path`

* 🔥 Remove unneeded schema refs

* 🧪 Account for alt schema in DB testing

* ⚡ Add schema to `IncreaseTypeVarcharLimit`

* ⚡ Set `search_path` in every migration

* ⚡ Set `search_path` in down migrations
2022-05-30 11:33:17 +02:00
Jan Oberhauser d24232d0c4 🔖 Release n8n@0.178.2 2022-05-25 10:24:05 +02:00
Jan Oberhauser 582f73afbb ⬆️ Set n8n-editor-ui@0.144.2 on n8n 2022-05-25 10:23:35 +02:00
Jan Oberhauser 1199493826 🔖 Release n8n@0.178.1 2022-05-24 18:30:50 +02:00
Jan Oberhauser 5b6cfce818 ⬆️ Set n8n-editor-ui@0.144.1 on n8n 2022-05-24 18:30:13 +02:00
Jan Oberhauser b6bdfa46da 🔖 Release n8n@0.178.0 2022-05-24 09:49:50 +00:00
Jan Oberhauser b73a2a1cdc ⬆️ Set n8n-core@0.118.0, n8n-editor-ui@0.144.0, n8n-nodes-base@0.176.0 and n8n-workflow@0.100.0 on n8n 2022-05-24 09:49:50 +00:00
Jonathan Bennetts 8cb58bcbdc build(core): Fix cli build issue under windows (#3322) 2022-05-19 16:33:23 +02:00
Jan Oberhauser bed0ff8b01 🔖 Release n8n@0.177.0 2022-05-16 16:32:21 +00:00
Jan Oberhauser 164ba1ac2e ⬆️ Set n8n-core@0.117.0, n8n-editor-ui@0.143.0, n8n-nodes-base@0.175.0 and n8n-workflow@0.99.0 on n8n 2022-05-16 16:32:21 +00:00
Jan Oberhauser 68a252c318 🔖 Release n8n@0.176.0 2022-05-10 08:55:44 +00:00
Jan Oberhauser d54ffa532d ⬆️ Set n8n-nodes-base@0.174.0 on n8n 2022-05-10 08:55:44 +00:00
Jan Oberhauser 6066e79ac1 🔖 Release n8n@0.175.1 2022-05-03 10:24:44 +02:00
Jan Oberhauser 3686ecec28 ⬆️ Set n8n-editor-ui@0.142.1 on n8n 2022-05-03 10:23:31 +02:00
Jan Oberhauser fe5bfbd359 🔖 Release n8n@0.175.0 2022-05-02 10:24:34 +00:00
Jan Oberhauser 8f96dd4c5a ⬆️ Set n8n-core@0.116.0, n8n-editor-ui@0.142.0, n8n-nodes-base@0.173.0 and n8n-workflow@0.98.0 on n8n 2022-05-02 10:24:34 +00:00
Jan Oberhauser a89be650c8 🔖 Release n8n@0.174.0 2022-04-25 10:51:17 +00:00
Jan Oberhauser dcafea239d ⬆️ Set n8n-core@0.115.0, n8n-editor-ui@0.141.0, n8n-nodes-base@0.172.0 and n8n-workflow@0.97.0 on n8n 2022-04-25 10:51:17 +00:00
Jan Oberhauser 43c1df9188 🔖 Release n8n@0.173.1 2022-04-19 13:54:30 +02:00
Jan Oberhauser 52e87d0e02 ⬆️ Set n8n-nodes-base@0.171.1 on n8n 2022-04-19 13:53:44 +02:00
Jan Oberhauser 5bf0b5ccf6 🔖 Release n8n@0.173.0 2022-04-19 10:48:44 +00:00
Jan Oberhauser 5a63af9dbe ⬆️ Set n8n-core@0.114.0, n8n-editor-ui@0.140.0, n8n-nodes-base@0.171.0 and n8n-workflow@0.96.0 on n8n 2022-04-19 10:48:44 +00:00
Jan Oberhauser 6c38b79f25 🔖 Release n8n@0.172.0 2022-04-11 13:27:11 +00:00
Jan Oberhauser ccebf68279 ⬆️ Set n8n-core@0.113.0, n8n-editor-ui@0.139.0, n8n-nodes-base@0.170.0 and n8n-workflow@0.95.0 on n8n 2022-04-11 13:27:10 +00:00
Iván OvejeroandJan Oberhauser 027dfb2f0a ⚡ Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106)
* ⚡ Enable `esModuleInterop` for /core

* ⚡ Adjust imports in /core

* ⚡ Enable `esModuleInterop` for /cli

* ⚡ Adjust imports in /cli

* ⚡ Enable `esModuleInterop` for /nodes-base

* ⚡ Adjust imports in /nodes-base

* ⚡ Make imports consistent

* ⬆️ Upgrade TypeScript to 4.6 (#3109)

* ⬆️ Upgrade TypeScript to 4.6

* 📦 Update package-lock.json

* 🔧 Avoid erroring on untyped errors

* 📘 Fix type error

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-04-08 23:32:08 +02:00
Iván OvejeroandBen Hesseldieck 1e2d6daaa3 🚨 Optimize UM tests (#3066)
* ⚡ Declutter test logs

* 🐛 Fix random passwords length

* 🐛 Fix password hashing in test user creation

* 🐛 Hash leftover password

* ⚡ Improve error message for `compare`

* ⚡ Restore `randomInvalidPassword` contant

* ⚡ Mock Telemetry module to prevent `--forceExit`

* 🔥 Remove unused imports

* 🔥 Remove unused import

* ⚡ Add util for configuring test SMTP

* ⚡ Isolate user creation

* 🔥 De-duplicate `createFullUser`

* ⚡ Centralize hashing

* 🔥 Remove superfluous arg

* 🔥 Remove outdated comment

* ⚡ Prioritize shared tables during trucation

* 🧪 Add login tests

* ⚡ Use token helper

* ✏️ Improve naming

* ⚡ Make `createMemberShell` consistent

* 🔥 Remove unneeded helper

* 🔥 De-duplicate `beforeEach`

* ✏️ Improve naming

* 🚚 Move `categorize` to utils

* ✏️ Update comment

* 🧪 Simplify test

* 📘 Improve `User.password` type

* ⚡ Silence logger

* ⚡ Simplify condition

* ⚡ Unhash password in payload

* 🐛 Fix comparison against unhashed password

* ⚡ Increase timeout for fake SMTP service

* 🔥 Remove unneeded import

* ⚡ Use `isNull()`

* 🧪 Use `Promise.all()` in creds tests

* 🧪 Use `Promise.all()` in me tests

* 🧪 Use `Promise.all()` in owner tests

* 🧪 Use `Promise.all()` in password tests

* 🧪 Use `Promise.all()` in users tests

* ⚡ Re-set cookie if UM disabled

* 🔥 Remove repeated line

* ⚡ Refactor out shared owner data

* 🔥 Remove unneeded import

* 🔥 Remove repeated lines

* ⚡ Organize imports

* ⚡ Reuse helper

* 🚚 Rename tests to match routers

* 🚚 Rename `createFullUser()` to `createUser()`

* ⚡ Consolidate user shell creation

* ⚡ Make hashing async

* ⚡ Add email to user shell

* ⚡ Optimize array building

* 🛠 refactor user shell factory

* 🐛 Fix MySQL tests

* ⚡ Silence logger in other DBs

Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
2022-04-08 18:37:07 +02:00
Jan Oberhauser e964c83f46 🔖 Release n8n@0.171.1 2022-04-06 14:24:02 +02:00
Jan Oberhauser 9cd90cf914 ⬆️ Set n8n-nodes-base@0.169.1 on n8n 2022-04-06 14:21:45 +02:00
Jan Oberhauser f412b7babb 🔖 Release n8n@0.171.0 2022-04-03 08:00:42 +00:00