Skip to content

Commit

Permalink
fix: Disable workflow locking due to issues (#4708)
Browse files Browse the repository at this point in the history
* fix: Disable workflow locking due to issues
  • Loading branch information
krynble authored Nov 24, 2022
1 parent b6c57e1 commit ee6ac5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/workflows/workflows.controller.ee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ EEWorkflowController.patch(
'/:id(\\d+)',
ResponseHelper.send(async (req: WorkflowRequest.Update) => {
const { id: workflowId } = req.params;
const forceSave = req.query.forceSave === 'true';
// const forceSave = req.query.forceSave === 'true'; // disabled temporarily - tests were also disabled

const updateData = new WorkflowEntity();
const { tags, ...rest } = req.body;
Expand All @@ -224,7 +224,7 @@ EEWorkflowController.patch(
safeWorkflow,
workflowId,
tags,
forceSave,
true,
);

const { id, ...remainder } = updatedWorkflow;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/workflows/workflows.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ workflowsController.patch(
updateData,
workflowId,
tags,
false,
true,
['owner'],
);

Expand Down
12 changes: 6 additions & 6 deletions packages/cli/test/integration/workflows.controller.ee.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ describe('PATCH /workflows/:id - validate credential permissions to user', () =>
});

describe('PATCH /workflows/:id - validate interim updates', () => {
it('should block owner updating workflow nodes on interim update by member', async () => {
xit('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 });

Expand Down Expand Up @@ -764,7 +764,7 @@ describe('PATCH /workflows/:id - validate interim updates', () => {
);
});

it('should block member updating workflow nodes on interim update by owner', async () => {
xit('should block member updating workflow nodes on interim update by owner', async () => {
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
const member = await testDb.createUser({ globalRole: globalMemberRole });

Expand Down Expand Up @@ -806,7 +806,7 @@ describe('PATCH /workflows/:id - validate interim updates', () => {
);
});

it('should block owner activation on interim activation by member', async () => {
xit('should block owner activation on interim activation by member', async () => {
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
const member = await testDb.createUser({ globalRole: globalMemberRole });

Expand Down Expand Up @@ -836,7 +836,7 @@ describe('PATCH /workflows/:id - validate interim updates', () => {
);
});

it('should block member activation on interim activation by owner', async () => {
xit('should block member activation on interim activation by owner', async () => {
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
const member = await testDb.createUser({ globalRole: globalMemberRole });

Expand Down Expand Up @@ -875,7 +875,7 @@ describe('PATCH /workflows/:id - validate interim updates', () => {
);
});

it('should block member updating workflow settings on interim update by owner', async () => {
xit('should block member updating workflow settings on interim update by owner', async () => {
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
const member = await testDb.createUser({ globalRole: globalMemberRole });

Expand Down Expand Up @@ -910,7 +910,7 @@ describe('PATCH /workflows/:id - validate interim updates', () => {
);
});

it('should block member updating workflow name on interim update by owner', async () => {
xit('should block member updating workflow name on interim update by owner', async () => {
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
const member = await testDb.createUser({ globalRole: globalMemberRole });

Expand Down

0 comments on commit ee6ac5d

Please sign in to comment.