Revert "feat(editor): Change default node names depending on node ope… (#16169)

This commit is contained in:
Charlie Kolb
2025-06-10 11:34:08 +02:00
committed by GitHub
parent 53b6812592
commit d17a15ef9a
21 changed files with 182 additions and 574 deletions

View File

@@ -562,11 +562,6 @@ describe('ManualExecutionService', () => {
return null;
}),
getTriggerNodes: jest.fn().mockReturnValue([determinedStartNode]),
nodeTypes: {
getByNameAndVersion: jest
.fn()
.mockReturnValue({ description: { name: '', outputs: [] } }),
},
});
jest

View File

@@ -6,9 +6,10 @@ import {
filterDisabledNodes,
recreateNodeExecutionStack,
WorkflowExecute,
isTool,
rewireGraph,
} from 'n8n-core';
import { MANUAL_TRIGGER_NODE_TYPE, NodeHelpers } from 'n8n-workflow';
import { MANUAL_TRIGGER_NODE_TYPE } from 'n8n-workflow';
import type {
IExecuteData,
IPinData,
@@ -135,12 +136,8 @@ export class ManualExecutionService {
`Could not find a node named "${data.destinationNode}" in the workflow.`,
);
const destinationNodeType = workflow.nodeTypes.getByNameAndVersion(
destinationNode.type,
destinationNode.typeVersion,
);
// Rewire graph to be able to execute the destination tool node
if (NodeHelpers.isTool(destinationNodeType.description, destinationNode.parameters)) {
if (isTool(destinationNode, workflow.nodeTypes)) {
const graph = rewireGraph(
destinationNode,
DirectedGraph.fromWorkflow(workflow),