Matt Gilman created NIFI-16651:
----------------------------------

             Summary: Connector canvas: add missing context menu actions and 
keyboard shortcuts available in the Flow Designer
                 Key: NIFI-16651
                 URL: https://issues.apache.org/jira/browse/NIFI-16651
             Project: Apache NiFi
          Issue Type: Task
          Components: Core UI
            Reporter: Matt Gilman


The Connector canvas context menu offers a subset of the actions available in 
the Flow Designer. Recent work aligned the transmission labels and menu 
ordering, and added Align, Remote Process Group refresh, View Status History, 
Clear Bulletins, and Go To for Remote Process Groups. This ticket covers the 
Flow Designer actions that are still missing on the Connector canvas for every 
component type.

Actions to add (all are present in the Flow Designer):

Selection and editing
- Copy (Ctrl+C) and Paste (Ctrl+V). Copying is allowed only when every selected 
component is readable and of a copyable type, and every selected connection has 
both of its endpoints in the selection. A lone connection is not copyable. 
Repeated pastes into the same group should be offset so the pasted components 
do not stack. Open question: confirm the server accepts the copy and paste 
requests for components in a Connector-managed Process Group while the 
Connector is in troubleshooting mode, and rejects them otherwise.
- Group. Opens the Group dialog, creates a child Process Group, and moves the 
selection into it. Offered only in troubleshooting mode, when the selection 
contains at least one non-connection component, every non-connection component 
is writable, and no connection crosses the selection boundary.
- Move To Parent Group. Moves the selection into the parent Process Group, with 
the same selection checks as Group. Hidden at the Connector root group. Moving 
a selection down into a child Process Group already works by dragging it onto 
the group, using the snippet endpoints; reuse that path with the parent group 
as the target.
- Bring To Front, for a single writable label or connection.
- Change Color, for a single processor or label.
- Change Version, for a processor with other available bundle versions.

Navigation and information
- Go To Source and Go To Destination, for a single connection.
- View Documentation, for components that have documentation.

Run status
- Stop Sources, for a Process Group or the current group when the execution 
engine is standard.
- Enable All Controller Services and Disable All Controller Services, on the 
canvas background menu for the current group.

Keyboard shortcuts
- Ctrl+C and Ctrl+V for copy and paste, Ctrl+A to select all components in the 
current group, and the arrow keys (with Shift for a larger step) to nudge the 
selection.

Flow Designer actions to evaluate:
The following Flow Designer entries may not apply to Connector-managed 
components. For each, decide whether to offer it, hide it, or defer it.
- Manage Remote Ports (tracked separately in NIFI-16642)
- View Backlog
- View Connections (Upstream and Downstream)
- Replay Last Event
- Manage Access Policies
- Parameters
- Version control entries (Start Version Control, Commit, Show or Revert Local 
Changes, Stop Version Control)

Acceptance criteria:
- Each action appears only for the component types and states where it is 
valid, and is hidden otherwise.
- Actions that modify the flow are available only while the Connector is in 
troubleshooting mode.
- Server failures are shown to the user on the canvas.
- Menu ordering stays consistent with the Flow Designer.
- Unit tests cover the menu conditions, commands, and effects for each new 
action and shortcut.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to