mcgilman commented on pull request #5862: URL: https://github.com/apache/nifi/pull/5862#issuecomment-1080652395
The snippet can contain components of any type on the canvas. There are different objects responsible for managing each type of component. Once the server confirms that the snippet was removed, the UI needs to remove each one from the canvas. In this case, it's actually invoking each `remove` call with an array of ids of all components of each type that should be removed. Another thing to note, there is a behavior that if you delete a component on the server, it also deletes all outgoing connections. There's another loop above the code you referenced that identifies outgoing connections of all components deleted to ensure they are also removed from the canvas. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
