[
https://issues.apache.org/jira/browse/NIFI-14442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941719#comment-17941719
]
Michael W Moser commented on NIFI-14442:
----------------------------------------
While experimenting and testing a few code changes I learned that when a
versioned Flow is imported to NiFi, the versioned flow itself has its bundle
versions changed. So, bundle versions do not appear as a local change, because
they aren't different. However, if you restart NiFi, then the versioned flow
is reloaded from the FlowRegistry, and then bundle versions compared to the
local flow can be different.
> Conditionally show version changes in versioned flow differences
> ----------------------------------------------------------------
>
> Key: NIFI-14442
> URL: https://issues.apache.org/jira/browse/NIFI-14442
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Michael W Moser
> Priority: Minor
>
> Currently, if a Flow stored in a FlowRegistry uses version 2.0.0 of
> components, and that Flow is imported into a NiFi version 2.3.0, the
> components are automatically upgraded to 2.3.0 and the Flow is considered
> up-to-date. If I make a change to the Flow and view local changes, I am not
> informed that the commit would includes a version change from 2.0.0 to 2.3.0.
> This issue proposes to show the version number difference as a Local Change.
> We will still consider a Flow that only has "environmental changes", such as
> version number, as unchanged and up-to-date. As soon as a non-environmental
> change is made, then the components version number difference will be shown.
> For example, if I have a Versioned Flow from NiFi 1.28.1 with
> GenerateFlowFile and JSLTTransformJSON, and I make a JSLTTransformJSON
> property change in a NiFi version 2.4.0, then I would see three changes:
> ||Component Name||Change Type||Difference||
> |JSLTTransform|Property Value Changed|From 'true' to 'false'|
> | |Component Bundle Changed|nifi-standard-nar version 1.28.1 to 2.4.0|
> | |Component Bundle Changed|nifi-jslt-nar version 1.28.1 to 2.4.0|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)