From 29ed5be13e55991543d44068348f8cecda934f33 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Wed, 21 Aug 2024 12:14:31 +0300 Subject: [PATCH 1/4] fix: stop telemetry from triggering when initializing workflow --- .../src/composables/useCanvasOperations.ts | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index 11e40f39b356e..d537b7c21085d 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -105,6 +105,7 @@ type AddNodeOptions = { openNDV?: boolean; trackHistory?: boolean; isAutoAdd?: boolean; + telemetry?: boolean; }; export function useCanvasOperations({ router }: { router: ReturnType }) { @@ -434,6 +435,7 @@ export function useCanvasOperations({ router }: { router: ReturnType Date: Wed, 21 Aug 2024 12:19:27 +0300 Subject: [PATCH 2/4] fix: only enable telemetry for node creator --- packages/editor-ui/src/composables/useCanvasOperations.ts | 2 +- packages/editor-ui/src/views/NodeView.v2.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index d537b7c21085d..7bba82d3a9c9c 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -556,7 +556,7 @@ export function useCanvasOperations({ router }: { router: ReturnType Date: Wed, 21 Aug 2024 12:26:22 +0300 Subject: [PATCH 3/4] fix: remove default value --- packages/editor-ui/src/composables/useCanvasOperations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index 7bba82d3a9c9c..54434ed3dc568 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -1250,7 +1250,7 @@ export function useCanvasOperations({ router }: { router: ReturnType Date: Wed, 21 Aug 2024 12:27:05 +0300 Subject: [PATCH 4/4] fix: remove additional default value --- packages/editor-ui/src/composables/useCanvasOperations.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index 54434ed3dc568..650fccbe9ac88 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -1418,9 +1418,7 @@ export function useCanvasOperations({ router }: { router: ReturnType