mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(core): Skip interim updates check (no-changelog) (#4536)
⚡ Skip interim updates check
This commit is contained in:
parent
1c98f97e9e
commit
157e8e0cc8
|
@ -75,13 +75,13 @@ export class WorkflowsService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!forceSave && workflow.hash !== shared.workflow.hash) {
|
// if (!forceSave && workflow.hash !== shared.workflow.hash) {
|
||||||
throw new ResponseHelper.ResponseError(
|
// throw new ResponseHelper.ResponseError(
|
||||||
`Workflow ID ${workflowId} cannot be saved because it was changed by another user.`,
|
// `Workflow ID ${workflowId} cannot be saved because it was changed by another user.`,
|
||||||
undefined,
|
// undefined,
|
||||||
400,
|
// 400,
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
// check credentials for old format
|
// check credentials for old format
|
||||||
await WorkflowHelpers.replaceInvalidCredentials(workflow);
|
await WorkflowHelpers.replaceInvalidCredentials(workflow);
|
||||||
|
|
|
@ -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 () => {
|
it('should block owner updating workflow nodes on interim update by member', async () => {
|
||||||
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
|
const owner = await testDb.createUser({ globalRole: globalOwnerRole });
|
||||||
const member = await testDb.createUser({ globalRole: globalMemberRole });
|
const member = await testDb.createUser({ globalRole: globalMemberRole });
|
||||||
|
|
Loading…
Reference in a new issue