mirror of https://github.com/apache/nifi.git
NIFI-11389 Fixed controller services's link to referencing controller (#8099)
services of lesser scope This closes #8099
This commit is contained in:
parent
9a91933909
commit
3b5d729a3a
|
@ -30,9 +30,11 @@
|
||||||
'nf.CustomUi',
|
'nf.CustomUi',
|
||||||
'nf.Verify',
|
'nf.Verify',
|
||||||
'nf.CanvasUtils',
|
'nf.CanvasUtils',
|
||||||
|
'nf.ProcessGroup',
|
||||||
|
'nf.ProcessGroupConfiguration',
|
||||||
'nf.Processor'],
|
'nf.Processor'],
|
||||||
function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfCustomUi, nfVerify, nfCanvasUtils, nfProcessor) {
|
function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfCustomUi, nfVerify, nfCanvasUtils, nfProcessGroup, nfProcessGroupConfiguration, nfProcessor) {
|
||||||
return (nf.ControllerService = factory($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfVerify, nfCustomUi, nfCanvasUtils, nfProcessor));
|
return (nf.ControllerService = factory($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfVerify, nfCustomUi, nfCanvasUtils, nfProcessGroup, nfProcessGroupConfiguration, nfProcessor));
|
||||||
});
|
});
|
||||||
} else if (typeof exports === 'object' && typeof module === 'object') {
|
} else if (typeof exports === 'object' && typeof module === 'object') {
|
||||||
module.exports = (nf.ControllerService =
|
module.exports = (nf.ControllerService =
|
||||||
|
@ -47,6 +49,8 @@
|
||||||
require('nf.CustomUi'),
|
require('nf.CustomUi'),
|
||||||
require('nf.Verify'),
|
require('nf.Verify'),
|
||||||
require('nf.CanvasUtils'),
|
require('nf.CanvasUtils'),
|
||||||
|
require('nf.ProcessGroup'),
|
||||||
|
require('nf.ProcessGroupConfiguration'),
|
||||||
require('nf.Processor')));
|
require('nf.Processor')));
|
||||||
} else {
|
} else {
|
||||||
nf.ControllerService = factory(root.$,
|
nf.ControllerService = factory(root.$,
|
||||||
|
@ -60,9 +64,11 @@
|
||||||
root.nf.CustomUi,
|
root.nf.CustomUi,
|
||||||
root.nf.Verify,
|
root.nf.Verify,
|
||||||
root.nf.CanvasUtils,
|
root.nf.CanvasUtils,
|
||||||
|
root.nf.ProcessGroup,
|
||||||
|
root.nf.ProcessGroupConfiguration,
|
||||||
root.nf.Processor);
|
root.nf.Processor);
|
||||||
}
|
}
|
||||||
}(this, function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfCustomUi, nfVerify, nfCanvasUtils, nfProcessor) {
|
}(this, function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfStorage, nfClient, nfUniversalCapture, nfCustomUi, nfVerify, nfCanvasUtils, nfProcessGroup, nfProcessGroupConfiguration, nfProcessor) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var nfControllerServices,
|
var nfControllerServices,
|
||||||
|
@ -554,8 +560,18 @@
|
||||||
|
|
||||||
// select the selected row
|
// select the selected row
|
||||||
var row = controllerServiceData.getRowById(referencingComponent.id);
|
var row = controllerServiceData.getRowById(referencingComponent.id);
|
||||||
controllerServiceGrid.setSelectedRows([row]);
|
if (nfCommon.isUndefined(row)) {
|
||||||
controllerServiceGrid.scrollRowIntoView(row);
|
getControllerService(referencingComponent.id, controllerServiceData).done(function(controllerServiceEntity) {
|
||||||
|
nfProcessGroup.enterGroup(controllerServiceEntity.parentGroupId).done(function () {
|
||||||
|
nfProcessGroupConfiguration.loadConfiguration(controllerServiceEntity.parentGroupId).done(function () {
|
||||||
|
nfProcessGroupConfiguration.selectControllerService(referencingComponent.id);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
controllerServiceGrid.setSelectedRows([row]);
|
||||||
|
controllerServiceGrid.scrollRowIntoView(row);
|
||||||
|
}
|
||||||
|
|
||||||
// close the dialog and shell
|
// close the dialog and shell
|
||||||
referenceContainer.closest('.dialog').modal('hide');
|
referenceContainer.closest('.dialog').modal('hide');
|
||||||
|
|
Loading…
Reference in New Issue