You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2024/03/25 16:38:38 UTC

(streampipes) branch refactor-use-design-doc-name created (now fcf20f19d7)

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

zehnder pushed a change to branch refactor-use-design-doc-name
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at fcf20f19d7 refactor: Harmonize static variables in GenericCouchDbConstants

This branch includes the following new commits:

     new fcf20f19d7 refactor: Harmonize static variables in GenericCouchDbConstants

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(streampipes) 01/01: refactor: Harmonize static variables in GenericCouchDbConstants

Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch refactor-use-design-doc-name
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit fcf20f19d79b346a229a055786970b46464df1ea
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Mon Mar 25 17:38:26 2024 +0100

    refactor: Harmonize static variables in GenericCouchDbConstants
---
 .../streampipes/storage/couchdb/constants/GenericCouchDbConstants.java | 1 -
 .../apache/streampipes/storage/couchdb/utils/CouchDbViewGenerator.java | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/constants/GenericCouchDbConstants.java b/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/constants/GenericCouchDbConstants.java
index 97a597e5dc..14554996a4 100644
--- a/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/constants/GenericCouchDbConstants.java
+++ b/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/constants/GenericCouchDbConstants.java
@@ -21,7 +21,6 @@ package org.apache.streampipes.storage.couchdb.constants;
 public class GenericCouchDbConstants {
 
   public static final String DESIGN_DOC_NAME = "appDocType";
-  public static final String VIEW_NAME = "appDocType";
   public static final String DB_NAME = "genericstorage";
 
 }
diff --git a/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/utils/CouchDbViewGenerator.java b/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/utils/CouchDbViewGenerator.java
index 29266b6198..2fb1c026ff 100644
--- a/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/utils/CouchDbViewGenerator.java
+++ b/streampipes-storage-couchdb/src/main/java/org/apache/streampipes/storage/couchdb/utils/CouchDbViewGenerator.java
@@ -27,7 +27,6 @@ import java.io.IOException;
 
 import static org.apache.streampipes.storage.couchdb.constants.GenericCouchDbConstants.DB_NAME;
 import static org.apache.streampipes.storage.couchdb.constants.GenericCouchDbConstants.DESIGN_DOC_NAME;
-import static org.apache.streampipes.storage.couchdb.constants.GenericCouchDbConstants.VIEW_NAME;
 
 public class CouchDbViewGenerator {
 
@@ -77,7 +76,7 @@ public class CouchDbViewGenerator {
         .getStatusCode();
 
     if (status == HttpStatus.SC_CREATED) {
-      LOG.info("View {} successfully created", VIEW_NAME);
+      LOG.info("View {} successfully created", DESIGN_DOC_NAME);
     } else {
       LOG.warn("Status code {} from CouchDB - something went wrong during view generation!", status);
     }