forked from apache/nifi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixing issue with potentially uninitialized RemoteGroupPorts in copySnippet.
- Loading branch information
Showing
1 changed file
with
60 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6daea58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I like that you've consolidated the snippet processing across copySnippet/importTemplate/createTemplateInstance.
IMO, it might be a good idea to pull the saving of the flow out of that method though, and call save from the three methods you refactored, just to decouple the functionality of processing the snippet from having the controller save the flow.
6daea58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. I'll move the save out.