[
https://issues.apache.org/jira/browse/NIFI-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575984#comment-14575984
]
Mark Payne commented on NIFI-427:
---------------------------------
[~rdblue] Agreed, the whitespace changing can be annoying and confusing. But in
order to comply with the new checkstyle rules, I have my IDE setup to format
things appropriately, so each time that I save a file it'll potentially change
whitespace.
The implementation, though, will allow you to now delete a Process Group
provided that all of the following conditions are met:
1) The Process Group (including child Process Groups) have no running components
2) There are no FlowFiles queued in the Process Group
3) There are no connections coming into or out of the Process Group. This rule
is relaxed if you select the incoming and outgoing connections in addition to
the Process Group (by clicking on one, then holding shift and clicking on the
others) when you press delete. In this case, it will delete those connections
in addition to the Process Group.
We've not allowed this before because it allows someone to accidentally delete
a massive part of their flow by clicking on it and clicking delete. But the
risk is mitigated, since all of the conditions above are required, and this is
something that has annoyed many people in the past. Hopefully this gives us all
of the flexibility we need with very little risk!
> Too many steps to delete flows
> ------------------------------
>
> Key: NIFI-427
> URL: https://issues.apache.org/jira/browse/NIFI-427
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework, Core UI
> Reporter: Ryan Blue
> Assignee: Mark Payne
> Fix For: 0.2.0
>
> Attachments:
> 0001-NIFI-427-Allow-Process-Groups-to-be-deleted-as-long-.patch
>
>
> I've been building some templates lately, but I'm running into some annoying
> policy problems. I would like to build templates that include a processor
> group and sample processors hooked up to its input and output ports. So the
> template begins with getting data from a directory, but the user can easily
> replace the GetFile processor with something else.
> The problem is when I try to delete processors brought in by the template. I
> think this is a fairly common case: templates can be added easily and should
> be deleted easily (e.g., oops, wrong template!). However, when I try to
> highlight the template processors and delete, I get an error that says the
> group is not empty. I go inside the group, select all. and delete, but that
> fails because there are incoming connections. So I finally have to leave the
> group and delete the non-group processors and connections, then enter the
> group, delete everything, leave the group, and delete the empty group.
> This doesn't fit with my idea of easily bringing in tasks and easily removing
> them. Am I doing something wrong?
> Can the processor group be deleted as a single operation? I think that would
> fix everything.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)