From 17084a1f0984af1cc961828d054e0adfa1949969 Mon Sep 17 00:00:00 2001 From: Shane Ardell Date: Mon, 26 Sep 2022 16:03:51 -0400 Subject: [PATCH] NIFI-10538: UI updates for making RegistryClient an extension point (#6437) * init commit * remove test string * display only class name for types combo * remove commented code * add UI support for dynamic properties * add support for controller services * address review feedback: * fix syntax error * remove console logs * move contents of editRegistry into callback * add name and description fields back to edit dialog * add referencing component logic for registry clients * implement reload logic * more review findings * increase size of description textarea in config * remove location column from registry table * remove commented out code * post-rebase tweaks * change if condition from assignment to evaluation * add missing semicolons * refactor new registry initialization into function * more feedback addressed * fix rebase error around controller service reference * render registry references in their own list * remove duplicate updateValidationError function * remove TODO comment * expose reload through nfSettings public variable * show add registry dialog only after available types returns * fix css class name This closes #6437 --- .../src/main/webapp/WEB-INF/pages/canvas.jsp | 1 + .../canvas/new-registry-client-dialog.jsp | 40 ++ .../canvas/registry-configuration-dialog.jsp | 53 ++- .../partials/canvas/settings-content.jsp | 1 + .../src/main/webapp/css/dialog.css | 7 +- .../propertytable/jquery.propertytable.js | 5 +- .../js/nf/canvas/nf-canvas-bootstrap.js | 2 +- .../js/nf/canvas/nf-controller-service.js | 67 ++- .../webapp/js/nf/canvas/nf-flow-version.js | 3 +- .../main/webapp/js/nf/canvas/nf-settings.js | 446 +++++++++++++----- 10 files changed, 486 insertions(+), 139 deletions(-) create mode 100644 nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-registry-client-dialog.jsp diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp index f9459225f8..fa6f20e016 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/pages/canvas.jsp @@ -129,6 +129,7 @@ +
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-registry-client-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-registry-client-dialog.jsp new file mode 100644 index 0000000000..9918d26c2f --- /dev/null +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/new-registry-client-dialog.jsp @@ -0,0 +1,40 @@ +<%-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +<%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> + diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/registry-configuration-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/registry-configuration-dialog.jsp index 56a5fd8b16..ecabc22440 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/registry-configuration-dialog.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/registry-configuration-dialog.jsp @@ -15,26 +15,45 @@ limitations under the License. --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> -