mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Replace Pyodide with native Python with env flag is enabled (#19403)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user