From d15bd0c00c665f2d692efc96b7c251f962619aff Mon Sep 17 00:00:00 2001 From: Koji Kawamura Date: Thu, 8 Dec 2016 18:00:17 +0900 Subject: [PATCH] NIFI-3165: Update RPG revision when RPGPort is updated. This closes #1308 --- .../js/nf/canvas/nf-remote-process-group-ports.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js index 529cda7017..d5c9ae7c59 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-remote-process-group-ports.js @@ -68,8 +68,9 @@ nf.RemoteProcessGroupPorts = (function () { dataType: 'json', contentType: 'application/json' }).done(function (response) { - // TODO - update the revision - // nf.Client.setRevision(response.revision); + // Update the RemoteProcessGroup revision. + // RemotePorts share revision with parent RemoteProcessGroup. + remoteProcessGroupData.revision = response.revision; // get the response var remotePort = response.remoteProcessGroupPort; @@ -298,8 +299,9 @@ nf.RemoteProcessGroupPorts = (function () { dataType: 'json', contentType: 'application/json' }).done(function (response) { - // TODO - update the revision - // nf.Client.setRevision(response.revision); + // Update the RemoteProcessGroup revision. + // RemotePorts share revision with parent RemoteProcessGroup. + remoteProcessGroupData.revision = response.revision; // get the response var remotePort = response.remoteProcessGroupPort;