fix: Disable workflow locking due to issues (#4708)

* fix: Disable workflow locking due to issues
This commit is contained in:
Omar Ajoue 2022-11-24 09:52:24 +01:00 committed by GitHub
parent b6c57e19fc
commit ee6ac5d341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -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;
@ -224,7 +224,7 @@ EEWorkflowController.patch(
safeWorkflow,
workflowId,
tags,
forceSave,
true,
);
const { id, ...remainder } = updatedWorkflow;

View file

@ -248,7 +248,7 @@ workflowsController.patch(
updateData,
workflowId,
tags,
false,
true,
['owner'],
);

View file

@ -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 });
@ -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 });
@ -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 });
@ -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 });
@ -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 });
@ -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 });