Project Refactoring
About 230 wordsLess than 1 minute
Image/Model
When modifying, ensure that no nodes using the Image/Model are overlooked.
Tips
Make good use of global search.
Pipeline
Other Nodes
Next, refactor other nodes based on their specific purposes.
Standardizing Node Names
If the goal is merely to standardize node names, use VSCode's global search and replace functionality.
However, ensure that replacements include double quotes to avoid modifying other nodes containing the node name.
Simplifying Task Flows and Reducing Coupling
First, read Node Connections and refactor towards adhering to connection principles.
Some nodes can be moved to the interrupt of the ancestor node of the current node.
After moving, remove unnecessary next nodes to avoid continuing the main task chain in the interrupt, which could cause errors in subsequent tasks and return to the ancestor node.
Merging Nodes with Similar Functions
If multiple nodes perform the same function, consider merging them into a single node.
Steps:
- Before merging, check whether there are unrelated nodes in the
nextof the node. If so, separate them first. - During merging, all nodes should adopt the same standardized name.
- After merging, check whether the node's position in all tasks is correct. For example, ensure nodes that should be in the
interruptare not in the main task chain'snextsection.
