mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor: Add native Python runner runtime env var (#19109)
This commit is contained in:
@@ -102,6 +102,7 @@ export const defaultSettings: FrontendSettings = {
|
||||
versionCli: '',
|
||||
nodeJsVersion: '',
|
||||
concurrency: -1,
|
||||
isNativePythonRunnerEnabled: false,
|
||||
versionNotifications: {
|
||||
enabled: true,
|
||||
endpoint: '',
|
||||
|
||||
@@ -241,6 +241,11 @@ const parameterOptions = computed(() => {
|
||||
const options = hasRemoteMethod.value ? remoteParameterOptions.value : props.parameter.options;
|
||||
const safeOptions = (options ?? []).filter(isValidParameterOption);
|
||||
|
||||
// temporary filter until native Python runner is GA
|
||||
if (props.parameter.name === 'language' && !settingsStore.isNativePythonRunnerEnabled) {
|
||||
return safeOptions.filter((o) => o.value !== 'pythonNative');
|
||||
}
|
||||
|
||||
return safeOptions;
|
||||
});
|
||||
|
||||
|
||||
@@ -70,6 +70,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
||||
|
||||
const concurrency = computed(() => settings.value.concurrency);
|
||||
|
||||
const isNativePythonRunnerEnabled = computed(() => settings.value.isNativePythonRunnerEnabled);
|
||||
|
||||
const isConcurrencyEnabled = computed(() => concurrency.value !== -1);
|
||||
|
||||
const isPublicApiEnabled = computed(() => api.value.enabled);
|
||||
@@ -329,6 +331,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
||||
security,
|
||||
nodeJsVersion,
|
||||
concurrency,
|
||||
isNativePythonRunnerEnabled,
|
||||
isConcurrencyEnabled,
|
||||
isPublicApiEnabled,
|
||||
isSwaggerUIEnabled,
|
||||
|
||||
Reference in New Issue
Block a user