This is an automated email from the ASF dual-hosted git repository.
markap14 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 84b2484 NIFI-9684 Fix: When starting/stopping selected process group,
it sends the parent process group id to the REST interface that is responsible
to enable/disable transmission for all remote process groups within a process
group. Need to send the id of the select process group instead. (#5764)
84b2484 is described below
commit 84b2484fd46a0fc883e8b9d380ccef199432db35
Author: tpalfy <[email protected]>
AuthorDate: Tue Feb 15 20:55:17 2022 +0100
NIFI-9684 Fix: When starting/stopping selected process group, it sends the
parent process group id to the REST interface that is responsible to
enable/disable transmission for all remote process groups within a process
group. Need to send the id of the select process group instead. (#5764)
---
.../nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
index a7ee61f..3ac049a 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
@@ -699,7 +699,7 @@
var remoteProcessGroupEntity = {
'state': 'TRANSMITTING'
};
- var startRemoteProcessGroups =
updateResource(config.urls.api + '/remote-process-groups/process-group/' +
encodeURIComponent(nfCanvasUtils.getGroupId()) + '/run-status',
remoteProcessGroupEntity);
+ var startRemoteProcessGroups =
updateResource(config.urls.api + '/remote-process-groups/process-group/' +
encodeURIComponent(d.id) + '/run-status', remoteProcessGroupEntity);
startRequests.push(startRemoteProcessGroups.done(function (response) {}));
startRequests.push(updateResource(uri,
entity).done(function (response) {
@@ -817,7 +817,7 @@
var remoteProcessGroupEntity = {
'state': 'STOPPED'
};
- var stopRemoteProcessGroups =
updateResource(config.urls.api + '/remote-process-groups/process-group/' +
encodeURIComponent(nfCanvasUtils.getGroupId()) + '/run-status',
remoteProcessGroupEntity);
+ var stopRemoteProcessGroups =
updateResource(config.urls.api + '/remote-process-groups/process-group/' +
encodeURIComponent(d.id) + '/run-status', remoteProcessGroupEntity);
stopRequests.push(stopRemoteProcessGroups.done(function (response) {}));
stopRequests.push(updateResource(uri,
entity).done(function (response) {