n8n/packages/cli/commands
Mutasem Aldmour 15a20d257d
feat(core): Add support to import/export tags (#3130)
* Export and Import Workflow Tags

Support exporting and importing tags of workflows via frontend and cli.

On export, all tag data is included in the json.
- id
- name
- updatedAt
- createdAt

When importing a workflow json to n8n we:
- first check if a tag with the same id and createdAt date exists in the
  database, then we can assume the tag is identical. Changes on the name
  of the tag are now preserved.
- check if a tag with the same name exists on the database.
- create a new tag with the given name.

* clean up fe export

* remove usage count

* return updatedat, createdat

* fix tags import

* move logic from workflow package

* refactor import

* check for tags before import

* update checks on type

* fix on import

* fix build issues

* fix type issue

* remove unnessary ?

* update tag helpers so only name is required

* fix tag import

* add don't replace existing tags

* fix build issue

* address comments

* fix with promise.all

* update setting tags

* update check

* fix existing check

* add helper

* fix duplication

* fix multiple same tags bug

* fix db bugs

* add more validation on workflow type

* fix validation

* disable importing tags on copy paste

Co-authored-by: Luca Berneking <l.berneking@mittwald.de>
2022-06-02 12:39:42 +02:00
..
db refactor: Remove reintroduced non-null assertions in Db calls (#3162) 2022-04-28 18:39:57 +02:00
export feat(core): Add support to import/export tags (#3130) 2022-06-02 12:39:42 +02:00
import feat(core): Add support to import/export tags (#3130) 2022-06-02 12:39:42 +02:00
list Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
update Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
user-management Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
execute.ts Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
executeBatch.ts Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
Interfaces.d.ts feat: Add User Management (#2636) 2022-03-14 14:46:32 +01:00
start.ts 🎨 Centralize error throwing for encryption keys and credentials (#3105) 2022-04-15 08:00:47 +02:00
webhook.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
worker.ts fix(core): Fix crashes in queue mode (#3397) 2022-06-02 12:17:24 +02:00