From 00ae0f39559065f1fa4b3e6daf672e57a43c5842 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Tue, 8 May 2018 11:00:43 -0400 Subject: [PATCH] NIFI-5167: - Updating how the nf-reporting-task module is injected to the nf-controller-service module. --- .../webapp/js/nf/canvas/nf-canvas-bootstrap.js | 2 +- .../webapp/js/nf/canvas/nf-controller-service.js | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-bootstrap.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-bootstrap.js index 2eff7a5c350f..4286bff4f17b 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-bootstrap.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-bootstrap.js @@ -370,7 +370,7 @@ // initialize the connection config and invert control of the birdseye and graph nfConnectionConfiguration.init(nfBirdseye, nfGraph, configDetails.defaultBackPressureObjectThreshold, configDetails.defaultBackPressureDataSizeThreshold); - nfControllerService.init(nfControllerServices); + nfControllerService.init(nfControllerServices, nfReportingTask); nfReportingTask.init(nfSettings); nfPolicyManagement.init(); nfProcessorConfiguration.init(); diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js index d576006331ff..4622ddf862cf 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js @@ -29,10 +29,9 @@ 'nf.UniversalCapture', 'nf.CustomUi', 'nf.CanvasUtils', - 'nf.ReportingTask', 'nf.Processor'], - function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfReportingTask, nfProcessor) { - return (nf.ControllerService = factory($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfReportingTask, nfProcessor)); + function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfProcessor) { + return (nf.ControllerService = factory($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfProcessor)); }); } else if (typeof exports === 'object' && typeof module === 'object') { module.exports = (nf.ControllerService = @@ -46,7 +45,6 @@ require('nf.UniversalCapture'), require('nf.CustomUi'), require('nf.CanvasUtils'), - require('nf.ReportingTask'), require('nf.Processor'))); } else { nf.ControllerService = factory(root.$, @@ -59,13 +57,12 @@ root.nf.UniversalCapture, root.nf.CustomUi, root.nf.CanvasUtils, - root.nf.ReportingTask, root.nf.Processor); } -}(this, function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfReportingTask, nfProcessor) { +}(this, function ($, d3, nfErrorHandler, nfCommon, nfDialog, nfClient, nfSettings, nfUniversalCapture, nfCustomUi, nfCanvasUtils, nfProcessor) { 'use strict'; - var nfControllerServices; + var nfControllerServices, nfReportingTask; var config = { edit: 'edit', @@ -1634,8 +1631,9 @@ /** * Initializes the controller service configuration dialog. */ - init: function (nfControllerServicesRef) { + init: function (nfControllerServicesRef, nfReportingTaskRef) { nfControllerServices = nfControllerServicesRef; + nfReportingTask = nfReportingTaskRef; // initialize the configuration dialog tabs $('#controller-service-configuration-tabs').tabbs({