[
https://issues.apache.org/jira/browse/NIFI-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne updated NIFI-12237:
------------------------------
Fix Version/s: 2.0.0
1.24.0
(was: 1.latest)
(was: 2.latest)
> Label size does not update when changing version
> ------------------------------------------------
>
> Key: NIFI-12237
> URL: https://issues.apache.org/jira/browse/NIFI-12237
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.22.0, 1.23.2
> Reporter: Michael W Moser
> Assignee: Michael W Moser
> Priority: Minor
> Fix For: 2.0.0, 1.24.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> * in a versioned PG containing a label, resize a label width and height.
> diff shows two "Position was changed" difference (one is width, the second is
> height)
> * move the label. diff shows a third "Position was changed" (the actual
> position)
> * commit local changes
> * change version back one version. label moves but does not resize.
> * PG still indicates local changes made. revert local changes does not work
> * delete label. revert local changes now works. label now shows correct
> position and size
> * if you change version forward one version, same thing happens
> I think this behavior is because label height and width is considered a
> position, and NIFI-11473 changed that position differences are not included
> in "updatedVersionedComponentIds".
> [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java#L216]
> [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java#L908]
> I propose to make label width and height a SIZE rather than a POSITION change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)