refactor: Replace Pyodide with native Python with env flag is enabled (#19403)

This commit is contained in:
Iván Ovejero
2025-09-11 11:28:12 +02:00
committed by GitHub
parent 18cccb29ea
commit 052e24ef0e
7 changed files with 42 additions and 14 deletions

View File

@@ -111,9 +111,9 @@ function operationsCategory(nodeTypeDescription: INodeTypeDescription): ActionTy
nodeTypeDescription,
);
if (customParsedItems) {
// temporary filter until native Python runner is GA
// temporary until native Python runner is GA
return useSettingsStore().isNativePythonRunnerEnabled
? customParsedItems
? customParsedItems.filter((item) => item.actionKey !== 'language_python')
: customParsedItems.filter((item) => item.actionKey !== 'language_pythonNative');
}
}

View File

@@ -241,9 +241,13 @@ 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');
// temporary until native Python runner is GA
if (props.parameter.name === 'language') {
if (settingsStore.isNativePythonRunnerEnabled) {
return safeOptions.filter((o) => o.value !== 'python');
} else {
return safeOptions.filter((o) => o.value !== 'pythonNative');
}
}
return safeOptions;