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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new b7556564aa fix jsonpath renaming, #3315
     new 6811da6102 Merge pull request #3396 from hansva/master
b7556564aa is described below

commit b7556564aa245ea77f6bc237aea45bdcb3466cb6
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Wed Nov 15 11:47:19 2023 +0100

    fix jsonpath renaming, #3315
---
 .../transforms/googlesheets/GoogleSheetsInputMeta.java    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git 
a/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java
 
b/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java
index 84fd322dde..ada1b80cbf 100644
--- 
a/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java
+++ 
b/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java
@@ -48,6 +48,8 @@ public class GoogleSheetsInputMeta
     super();
     inputFields = new ArrayList<>();
   }
+  @HopMetadataProperty(key="jsonCrendentialPath", injectionGroupKey = "SHEET" 
,isExcludedFromInjection = true)
+  private String oldJsonCredentialPath;
 
   @HopMetadataProperty(key="jsonCredentialPath", injectionGroupKey = "SHEET")
   private String jsonCredentialPath;
@@ -88,6 +90,10 @@ public class GoogleSheetsInputMeta
   }
 
   public String getJsonCredentialPath() {
+    if(getOldJsonCredentialPath() != null && this.jsonCredentialPath == null){
+      this.jsonCredentialPath = getOldJsonCredentialPath();
+      setOldJsonCredentialPath(null);
+    }
     return this.jsonCredentialPath == null ? "" : this.jsonCredentialPath;
   }
 
@@ -150,6 +156,15 @@ public class GoogleSheetsInputMeta
     this.appName = appName;
   }
 
+
+  public String getOldJsonCredentialPath() {
+    return oldJsonCredentialPath;
+  }
+
+  public void setOldJsonCredentialPath(String oldJsonCredentialPath) {
+    this.oldJsonCredentialPath = oldJsonCredentialPath;
+  }
+
   @Override
   public void getFields(
       IRowMeta rowMeta,

Reply via email to