mirror of https://github.com/apache/nifi.git
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:
parent
87cfd43f6f
commit
84b2484fd4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue