From 157e8e0cc8ea2a218e6a7ab8397f6c435fa74b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 7 Nov 2022 17:33:35 +0100 Subject: [PATCH] refactor(core): Skip interim updates check (no-changelog) (#4536) :zap: Skip interim updates check --- packages/cli/src/workflows/workflows.services.ts | 14 +++++++------- .../integration/workflows.controller.ee.test.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cli/src/workflows/workflows.services.ts b/packages/cli/src/workflows/workflows.services.ts index e904299e4..70dad8ba3 100644 --- a/packages/cli/src/workflows/workflows.services.ts +++ b/packages/cli/src/workflows/workflows.services.ts @@ -75,13 +75,13 @@ export class WorkflowsService { ); } - if (!forceSave && workflow.hash !== shared.workflow.hash) { - throw new ResponseHelper.ResponseError( - `Workflow ID ${workflowId} cannot be saved because it was changed by another user.`, - undefined, - 400, - ); - } + // if (!forceSave && workflow.hash !== shared.workflow.hash) { + // throw new ResponseHelper.ResponseError( + // `Workflow ID ${workflowId} cannot be saved because it was changed by another user.`, + // undefined, + // 400, + // ); + // } // check credentials for old format await WorkflowHelpers.replaceInvalidCredentials(workflow); diff --git a/packages/cli/test/integration/workflows.controller.ee.test.ts b/packages/cli/test/integration/workflows.controller.ee.test.ts index e6ada3aca..15c36b9f0 100644 --- a/packages/cli/test/integration/workflows.controller.ee.test.ts +++ b/packages/cli/test/integration/workflows.controller.ee.test.ts @@ -635,7 +635,7 @@ describe('PATCH /workflows/:id - validate credential permissions to user', () => }); }); -describe('PATCH /workflows/:id - validate interim updates', () => { +describe.skip('PATCH /workflows/:id - validate interim updates', () => { it('should block owner updating workflow nodes on interim update by member', async () => { const owner = await testDb.createUser({ globalRole: globalOwnerRole }); const member = await testDb.createUser({ globalRole: globalMemberRole });