From 6b3f2d40d262f8e38e1cf22f474731899c94d922 Mon Sep 17 00:00:00 2001 From: Eugene Molodkin Date: Wed, 6 Nov 2024 14:58:02 +0100 Subject: [PATCH] wip: fix name update issue --- packages/cli/src/evaluation/test-definitions.service.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/evaluation/test-definitions.service.ts b/packages/cli/src/evaluation/test-definitions.service.ts index 25eacf0a1c..7f9014bf51 100644 --- a/packages/cli/src/evaluation/test-definitions.service.ts +++ b/packages/cli/src/evaluation/test-definitions.service.ts @@ -25,14 +25,16 @@ export class TestDefinitionsService { annotationTagId?: string; id?: number; }) { - const entity: TestDefinitionLike = { - name: attrs.name?.trim(), - }; + const entity: TestDefinitionLike = {}; if (attrs.id) { entity.id = attrs.id; } + if (attrs.name) { + entity.name = attrs.name?.trim(); + } + if (attrs.workflowId) { entity.workflow = { id: attrs.workflowId,