[ 
https://issues.apache.org/jira/browse/NIFI-13976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900490#comment-17900490
 ] 

ASF subversion and git services commented on NIFI-13976:
--------------------------------------------------------

Commit f744deebf9a9effdbbff79ce6073ec329b5f45da in nifi's branch 
refs/heads/main from Matt Gilman
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=f744deebf9 ]

NIFI-13976 Added REST Endpoints for Copying and Pasting Flows (#9535)

- Including the revision for the current Process Group in the flow response.
- Introduce a method propose built for adding new versioned components to an 
existing Process Group.
- Updating the paste response payload to only include the entities for the 
components that were just added.
- Always generating new IDs when copying components.
- Creating an ID for the copy action.
- Code clean up.
- Mapping IDs on paste to ensure connections are created correctly.
- Authorizing any components whose instance IDs are specified.
- Copying any sensitive properties from copied instances when pasting.
- Fixing mapping of copy response to ensure that nested Controller Services can 
be referenced.
- Including external Controller Services in copy response to they can be 
resolved on paste.
- Excluding unreferenced services from copy response.
- Including property descriptors to allow external services to resolve when 
pasting.
- Including Parameters and Parameter Providers in copy response.
- Fixing issue returning unreferenced services in the current process group.
- Reverting changes building up external service references.
- Only including external services that are references by the copy selection.
- Adding some additional test coverage.
- Adding consideration for the current ids in the paste id mapping.
- Adding an endpoint response merger for the paste endpoint.
- Including version control information in copy response.
- Being more lenient when pasting unknown registry clients.
- Ensuring groups IDs are mapped correctly when and when not versioned.
- Including registry client id in vci of versioned process groups.
- Updating copy/paste logic in existing system tests to leverage new endpoints.
- Restoring originally proposed port name if possible.
- Allow ports to be pasted into the root group.
- Fixing authorization issue when pasting a flow containing Parameter Providers.
- Fixing issue when authorizing exporting a Flow that contains a Process Group 
bound to a Parameter Context.
- Introducing some Copy/Paste system tests.
- Adding system tests for verify various copy paste functionality.
- Ensuring appropriate access around Parameter Providers following resolution 
based on locally available Parameter Providers.
- Ensuring user has access to controller services directly referenced.
- Fixing NPE in log message of Parameter Context.
- Adding more copy/paste system tests.
- Moving copy/paste version tests into the CopyPasteIT.
- Fixing unit test mocking.
- Include service authorization based on versioned component id since it may 
resolve during synchronization.
- Skipping properties with no values when resolving service identifiers.

Signed-off-by: David Handermann <[email protected]>

> Introduce new endpoints to support Copy/Paste
> ---------------------------------------------
>
>                 Key: NIFI-13976
>                 URL: https://issues.apache.org/jira/browse/NIFI-13976
>             Project: Apache NiFi
>          Issue Type: Sub-task
>          Components: Core Framework
>            Reporter: Matt Gilman
>            Assignee: Matt Gilman
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Introduce new endpoints to support copying components from the canvas and 
> pasting that same payload at a specific place on the canvas. These new 
> endpoints should leverage the existing VersionedComponent model that is used 
> for Registry interaction and downloading/uploading Flows from a NiFi instance.
> This JIRA will also be used to address some issues with handling of external 
> resources in the VersionedComponent model. Specifically, handling of external 
> Parameter Contexts, Parameter Providers, and Controller Services.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to