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)

This commit is contained in:
tpalfy 2022-02-15 20:55:17 +01:00 committed by GitHub
parent 87cfd43f6f
commit 84b2484fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@
var remoteProcessGroupEntity = { var remoteProcessGroupEntity = {
'state': 'TRANSMITTING' '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(startRemoteProcessGroups.done(function (response) {}));
startRequests.push(updateResource(uri, entity).done(function (response) { startRequests.push(updateResource(uri, entity).done(function (response) {
@ -817,7 +817,7 @@
var remoteProcessGroupEntity = { var remoteProcessGroupEntity = {
'state': 'STOPPED' '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(stopRemoteProcessGroups.done(function (response) {}));
stopRequests.push(updateResource(uri, entity).done(function (response) { stopRequests.push(updateResource(uri, entity).done(function (response) {