n8n/packages/cli/src
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
..
api feat(editor): Improve n8n welcome experience (#3289) 2022-05-16 18:19:33 +02:00
databases fix(core): Fix migrations on non-public Postgres schema (#3356) 2022-05-30 11:33:17 +02:00
telemetry Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
UserManagement Sort out typo in error message (#3307) 2022-05-17 12:00:26 +02:00
ActiveExecutions.ts refactor: Remove reintroduced non-null assertions in Db calls (#3162) 2022-04-28 18:39:57 +02:00
ActiveWorkflowRunner.ts feat(RabbitMQ Trigger Node): Make message acknowledgement and parallel processing configurable (#3385) 2022-05-30 12:16:44 +02:00
constants.ts 🎨 Centralize error throwing for encryption keys and credentials (#3105) 2022-04-15 08:00:47 +02:00
CredentialsHelper.ts feat(core): Introduce simplified node versioning (#3205) 2022-04-28 19:04:09 +02:00
CredentialsOverwrites.ts Fix credential overwrite via environment variables 2021-10-20 20:49:07 -05:00
CredentialTypes.ts feat(core): Allow credential reuse on HTTP Request node (#3228) 2022-05-24 11:36:19 +02:00
Db.ts Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
ExternalHooks.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
GenericHelpers.ts feat(editor): Improve n8n welcome experience (#3289) 2022-05-16 18:19:33 +02:00
index.ts Introduce telemetry (#2099) 2021-10-19 05:57:49 +02:00
Interfaces.ts feat(core): Add support to import/export tags (#3130) 2022-06-02 12:39:42 +02:00
InternalHooks.ts feat(editor): Add Workflow Stickies (Notes) (#3154) 2022-04-25 12:38:37 +02:00
InternalHooksManager.ts Improve telemetry (#2604) 2022-01-07 17:14:59 +01:00
LoadNodesAndCredentials.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
Logger.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
NodeTypes.ts 🐛 Swallow telemetry error and only log in warn and debug mode (#2858) 2022-02-24 17:15:30 +01:00
Push.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
Queue.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
requests.d.ts feat(core): Allow credential reuse on HTTP Request node (#3228) 2022-05-24 11:36:19 +02:00
ResponseHelper.ts test: Fix randomly failing UM tests (#3061) 2022-04-01 17:48:02 +02:00
Server.ts feat(core): Add support to import/export tags (#3130) 2022-06-02 12:39:42 +02:00
TagHelpers.ts feat(core): Add support to import/export tags (#3130) 2022-06-02 12:39:42 +02:00
TestWebhooks.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00
TranslationHelpers.ts i18n feedback refactorings (#2597) 2022-01-07 22:02:21 +01:00
WaitingWebhooks.ts refactor: Remove reintroduced non-null assertions in Db calls (#3162) 2022-04-28 18:39:57 +02:00
WaitTracker.ts Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
WebhookHelpers.ts fix(core): Improve webhook error messages 2022-05-05 16:53:35 +02:00
WebhookServer.ts 🐛 Update initialization checks (#3147) 2022-04-19 12:22:05 +02:00
WorkflowCredentials.ts Remove non-null assertions for Db collections (#3111) 2022-04-14 09:02:12 +02:00
WorkflowExecuteAdditionalData.ts refactor: Remove reintroduced non-null assertions in Db calls (#3162) 2022-04-28 18:39:57 +02:00
WorkflowHelpers.ts feat(editor): Improve n8n welcome experience (#3289) 2022-05-16 18:19:33 +02:00
WorkflowRunner.ts fix(core): Fix crashes in queue mode (#3397) 2022-06-02 12:17:24 +02:00
WorkflowRunnerProcess.ts Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106) 2022-04-08 23:32:08 +02:00