🎨 Rename setting "saveManualRuns" to "saveManualExecutions"
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = {
|
||||
// are normally only for testing and debugging. This setting can
|
||||
// also be overwritten on a per workflow basis in the workflow settings
|
||||
// in the editor.
|
||||
saveManualRuns: false,
|
||||
saveManualExecutions: false,
|
||||
},
|
||||
|
||||
nodes: {
|
||||
|
||||
@@ -189,7 +189,7 @@ export interface IN8nConfigNodes {
|
||||
export interface IN8nUISettings {
|
||||
endpointWebhook: string;
|
||||
endpointWebhookTest: string;
|
||||
saveManualRuns: boolean;
|
||||
saveManualExecutions: boolean;
|
||||
timezone: string;
|
||||
urlBaseWebhook: string;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ class App {
|
||||
testWebhooks: TestWebhooks.TestWebhooks;
|
||||
endpointWebhook: string;
|
||||
endpointWebhookTest: string;
|
||||
saveManualRuns: boolean;
|
||||
saveManualExecutions: boolean;
|
||||
timezone: string;
|
||||
activeExecutionsInstance: ActiveExecutions.ActiveExecutions;
|
||||
push: Push.Push;
|
||||
@@ -83,7 +83,7 @@ class App {
|
||||
|
||||
this.endpointWebhook = config.get('urls.endpointWebhook') as string;
|
||||
this.endpointWebhookTest = config.get('urls.endpointWebhookTest') as string;
|
||||
this.saveManualRuns = config.get('executions.saveManualRuns') as boolean;
|
||||
this.saveManualExecutions = config.get('executions.saveManualExecutions') as boolean;
|
||||
this.timezone = config.get('timezone') as string;
|
||||
|
||||
this.config();
|
||||
@@ -271,9 +271,9 @@ class App {
|
||||
// Do not save the default timezone
|
||||
delete newWorkflowData.settings.timezone;
|
||||
}
|
||||
if (newWorkflowData.settings.saveManualRuns === 'DEFAULT') {
|
||||
if (newWorkflowData.settings.saveManualExecutions === 'DEFAULT') {
|
||||
// Do not save when default got set
|
||||
delete newWorkflowData.settings.saveManualRuns;
|
||||
delete newWorkflowData.settings.saveManualExecutions;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -900,7 +900,7 @@ class App {
|
||||
return {
|
||||
endpointWebhook: this.endpointWebhook,
|
||||
endpointWebhookTest: this.endpointWebhookTest,
|
||||
saveManualRuns: this.saveManualRuns,
|
||||
saveManualExecutions: this.saveManualExecutions,
|
||||
timezone: this.timezone,
|
||||
urlBaseWebhook: WebhookHelpers.getWebhookBaseUrl(),
|
||||
};
|
||||
|
||||
@@ -120,13 +120,13 @@ const hooks = (mode: WorkflowExecuteMode, workflowData: IWorkflowBase, workflowI
|
||||
|
||||
const workflowSavePromise = WorkflowHelpers.saveStaticData(workflowInstance);
|
||||
|
||||
let saveManualRuns = config.get('executions.saveManualRuns') as boolean;
|
||||
if (workflowInstance.settings !== undefined && workflowInstance.settings.saveManualRuns !== undefined) {
|
||||
let saveManualExecutions = config.get('executions.saveManualExecutions') as boolean;
|
||||
if (workflowInstance.settings !== undefined && workflowInstance.settings.saveManualExecutions !== undefined) {
|
||||
// Apply to workflow override
|
||||
saveManualRuns = workflowInstance.settings.saveManualRuns as boolean;
|
||||
saveManualExecutions = workflowInstance.settings.saveManualExecutions as boolean;
|
||||
}
|
||||
|
||||
if (mode === 'manual' && saveManualRuns === false) {
|
||||
if (mode === 'manual' && saveManualExecutions === false) {
|
||||
if (workflowSavePromise !== undefined) {
|
||||
// If workflow had to be saved wait till it is done
|
||||
await workflowSavePromise;
|
||||
|
||||
Reference in New Issue
Block a user