You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/12/18 21:40:00 UTC

[jira] [Commented] (NIFI-6872) Add support to download versioned flow

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

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

Commit 058883091cf2cae0ff344136d6d58dd8efe0fd6c in nifi's branch refs/heads/master from Joe Ferner
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0588830 ]

NIFI-6872:
- Added UI versioned flow supportsDownload functionality with download flow menu item
- Added VersionsResource endpoint for downloading versioned flow with registry-related info removed
- Added ProcessGroupResource endpoint for downloading current flow with registry-related info removed
- Added StandardNifiServiceFacade functionality for downloading both current and versioned flow
- Added XmlTransient markers on variables introduced by Instantiated model classes so they do not appear in serialized download
- Updated NiFiRegistryFlowMapper.mapParameterContexts to handle mapping nested parameter contexts for use in producing a complete VersionedFlowSnapshot
- Added ability for NiFiRegistryFlowMapper to map nested process groups ignoring versioning for use in producing a complete VersionedFlowSnapshot
- Added unit tests where helpful

NIFI-6872: PR response...
- Updated mapParameterContext to return a Map to handle uniqueness of contexts by name since ultimately everything converted it to a map anyway. The VersionedParameterContext class from the registry model doesn't support hashcode/equals currently so returning a Set wouldn't work.
- Updated assert calls to put expected value as first parameter and actual as second parameter
- Added one time password (OTP) support for flow download endpoint to support non cert based authentication

This closes #3931


> Add support to download versioned flow
> --------------------------------------
>
>                 Key: NIFI-6872
>                 URL: https://issues.apache.org/jira/browse/NIFI-6872
>             Project: Apache NiFi
>          Issue Type: Task
>          Components: Core Framework, Core UI
>            Reporter: Matt Gilman
>            Assignee: Joe Ferner
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> When integrating with a NiFi Registry, NiFi can generate versioned flows to store in the registry. We should also allow these versioned flows to be downloaded so that they could be used elsewhere (like importing to another NiFi Registry or NiFi instance in another environment). 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)