This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 23b21f12f8 NIFI-15572 Added deprecation log and banner to NiFi 
Registry (#10875)
23b21f12f8 is described below

commit 23b21f12f8137aa1a4c9b5c0caa18a41393da04a
Author: Pierre Villard <[email protected]>
AuthorDate: Mon Feb 9 15:47:05 2026 +0100

    NIFI-15572 Added deprecation log and banner to NiFi Registry (#10875)
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../nifi/registry/bootstrap/RunNiFiRegistry.java   |  2 ++
 .../org/apache/nifi/registry/NiFiRegistry.java     |  3 +++
 .../src/main/webapp/nf-registry.html               |  6 +++++
 .../main/webapp/theming/_structureElements.scss    | 27 ++++++++++++++++++++++
 4 files changed, 38 insertions(+)

diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
 
b/nifi-registry/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
index 45c9e4d3bd..5c833b989c 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
@@ -930,6 +930,8 @@ public class RunNiFiRegistry {
             cmdBuilder.append(s).append(" ");
         }
 
+        cmdLogger.warn("Apache NiFi Registry has been deprecated and might be 
removed with Apache NiFi 3.0."
+                + " More information can be found at 
https://nifi.apache.org/projects/registry/";);
         cmdLogger.info("Starting Apache NiFi Registry...");
         cmdLogger.info("Working Directory: {}", workingDir.getAbsolutePath());
         cmdLogger.info("Command: {}", cmdBuilder);
diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-runtime/src/main/java/org/apache/nifi/registry/NiFiRegistry.java
 
b/nifi-registry/nifi-registry-core/nifi-registry-runtime/src/main/java/org/apache/nifi/registry/NiFiRegistry.java
index 919abd35b2..07a6e05fe4 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-runtime/src/main/java/org/apache/nifi/registry/NiFiRegistry.java
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-runtime/src/main/java/org/apache/nifi/registry/NiFiRegistry.java
@@ -106,6 +106,9 @@ public class NiFiRegistry {
             final long duration = System.nanoTime() - startTime;
             final double durationSeconds = 
TimeUnit.NANOSECONDS.toMillis(duration) / 1000.0;
             LOGGER.info("Started Application in {} seconds ({} ns)", 
durationSeconds, duration);
+
+            LOGGER.warn("Apache NiFi Registry has been deprecated and might be 
removed with Apache NiFi 3.0."
+                    + " More information can be found at 
https://nifi.apache.org/projects/registry/";);
         }
     }
 
diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.html
 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.html
index 4878b734e4..f0f90dbdb3 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.html
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.html
@@ -15,6 +15,12 @@ See the License for the specific language governing 
permissions and
 limitations under the License.
 -->
 
+<div id="nifi-registry-deprecation-banner">
+    <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
+    <span>Apache NiFi Registry has been deprecated and might be removed with 
Apache NiFi 3.0. More information can be found at
+        <a href="https://nifi.apache.org/projects/registry/"; target="_blank" 
rel="noopener noreferrer">https://nifi.apache.org/projects/registry/</a>
+    </span>
+</div>
 <mat-progress-spinner id="loading-spinner" 
*ngIf="nfRegistryService.inProgress" 
mode="indeterminate"></mat-progress-spinner>
 <mat-sidenav-container>
     <mat-sidenav #sidenav mode="over" position="end" opened="false" 
disableClose="true">
diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/theming/_structureElements.scss
 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/theming/_structureElements.scss
index 29cba2f331..20f0d54d2d 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/theming/_structureElements.scss
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/theming/_structureElements.scss
@@ -15,6 +15,33 @@
  * limitations under the License.
  */
 
+#nifi-registry-deprecation-banner {
+    background-color: #f0ad4e;
+    color: #333;
+    text-align: center;
+    padding: 10px 20px;
+    font-size: 14px;
+    font-weight: 500;
+    z-index: 1001;
+    position: relative;
+    min-width: 1045px;
+}
+
+#nifi-registry-deprecation-banner .fa-exclamation-triangle {
+    margin-right: 8px;
+    font-size: 16px;
+}
+
+#nifi-registry-deprecation-banner a {
+    color: #333;
+    font-weight: 700;
+    text-decoration: underline;
+}
+
+#nifi-registry-deprecation-banner a:hover {
+    color: #000;
+}
+
 body {
     background: $grey12 url('assets/images/registry-logo-web-app.svg') 
no-repeat center center;
     background-size: 40%;

Reply via email to