You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2024/05/20 19:30:30 UTC

(streampipes) branch rel/0.95.0 updated (113a3f247d -> 9b65cb684d)

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

riemer pushed a change to branch rel/0.95.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git


    from 113a3f247d fix: correctly retrieve documentation for asset overview (#2872)
     new e8e5087a27 guessSchema need to decrypt adapterDescription (#2841)
     new 48e7b5d566 fix timestampTranfsformationRuleDescription metadata map (#2853)
     new c2082079d0 #2661 Added error message when self registration fails (#2873)
     new 9b65cb684d Merge branch 'rel/0.95.0' of github.com:apache/streampipes into rel/0.95.0

The 4 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.


Summary of changes:
 .../streampipes/connect/management/management/GuessManagement.java    | 2 ++
 .../shared/preprocessing/convert/ToTransformedSchemaConverter.java    | 2 +-
 .../main/java/org/apache/streampipes/rest/impl/Authentication.java    | 4 ++++
 3 files changed, 7 insertions(+), 1 deletion(-)


(streampipes) 01/04: guessSchema need to decrypt adapterDescription (#2841)

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

riemer pushed a commit to branch rel/0.95.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit e8e5087a27a7786e92add2a4257ba6aac606c374
Author: yanfeng1992 <hu...@gmail.com>
AuthorDate: Tue May 21 03:18:11 2024 +0800

    guessSchema need to decrypt adapterDescription (#2841)
    
    Signed-off-by: huangyanfeng <hu...@gmail.com>
---
 .../streampipes/connect/management/management/GuessManagement.java      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/management/GuessManagement.java b/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/management/GuessManagement.java
index 97ce035dae..3e1f546907 100644
--- a/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/management/GuessManagement.java
+++ b/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/management/GuessManagement.java
@@ -28,6 +28,7 @@ import org.apache.streampipes.model.connect.adapter.AdapterDescription;
 import org.apache.streampipes.model.connect.guess.AdapterEventPreview;
 import org.apache.streampipes.model.connect.guess.GuessSchema;
 import org.apache.streampipes.model.monitoring.SpLogMessage;
+import org.apache.streampipes.resource.management.secret.SecretProvider;
 import org.apache.streampipes.serializers.json.JacksonSerializer;
 
 import com.fasterxml.jackson.core.JsonProcessingException;
@@ -54,6 +55,7 @@ public class GuessManagement {
   public GuessSchema guessSchema(AdapterDescription adapterDescription)
       throws ParseException, WorkerAdapterException, NoServiceEndpointsAvailableException, IOException {
     var workerUrl = getWorkerUrl(adapterDescription.getAppId());
+    SecretProvider.getDecryptionService().apply(adapterDescription);
     var description = objectMapper.writeValueAsString(adapterDescription);
 
     LOG.info("Guess schema at: " + workerUrl);


(streampipes) 03/04: #2661 Added error message when self registration fails (#2873)

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

riemer pushed a commit to branch rel/0.95.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit c2082079d026583cf7b2f5202b9031c720e0beab
Author: Isaak Krut <kr...@gmail.com>
AuthorDate: Mon May 20 15:21:08 2024 -0400

    #2661 Added error message when self registration fails (#2873)
    
    * #2661 added error message when self registration fails
    
    * #2661 format fix
    
    * #2661 moved error handling to backend
    
    * #2661 moved error handling to backend
    
    * #2661 license fix
    
    * #2661 updated error handling
---
 .../main/java/org/apache/streampipes/rest/impl/Authentication.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
index 78b9aaea3d..bc26edf5ee 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/Authentication.java
@@ -109,6 +109,10 @@ public class Authentication extends AbstractRestResource {
       throw new SpMessageException(
           HttpStatus.BAD_REQUEST,
           Notifications.error("This email address already exists. Please choose another address."));
+    } catch (IllegalArgumentException e) {
+      throw new SpMessageException(
+          HttpStatus.INTERNAL_SERVER_ERROR,
+          Notifications.error("User registration failed. Please report this to your admin."));
     }
   }
 


(streampipes) 04/04: Merge branch 'rel/0.95.0' of github.com:apache/streampipes into rel/0.95.0

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

riemer pushed a commit to branch rel/0.95.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 9b65cb684d27be4fb1bb4b420b21a0dbaaa0223a
Merge: c2082079d0 113a3f247d
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Mon May 20 21:30:16 2024 +0200

    Merge branch 'rel/0.95.0' of github.com:apache/streampipes into rel/0.95.0

 streampipes-client-python/mkdocs.yml               |  2 +-
 .../streampipes/client/credential_provider.py      |  2 +-
 .../model/resource/function_definition.py          |  7 +--
 .../convert/ToTransformedSchemaConverter.java      |  2 +
 ...tatelessTransformationRuleGeneratorVisitor.java |  2 +-
 .../iiot/protocol/stream/FileReplayAdapter.java    | 50 ++++++++++++-------
 .../documentation.md                               |  1 +
 .../documentation.md                               | 56 +++++++++++++++++++++-
 .../strings.en                                     | 10 ++--
 .../template/PipelineElementTemplateVisitor.java   | 11 ++++-
 .../rest/impl/PipelineElementAsset.java            | 15 ++++++
 ui/cypress/README.md                               |  2 +-
 ui/cypress/support/utils/connect/ConnectUtils.ts   | 16 +++++--
 .../tests/adapter/rules/schemaRules.smoke.spec.ts  |  3 +-
 ui/cypress/tests/adapter/rules/streamRules.spec.ts |  6 ++-
 ui/cypress/tests/adapter/rules/valueRules.ts       |  3 +-
 16 files changed, 146 insertions(+), 42 deletions(-)



(streampipes) 02/04: fix timestampTranfsformationRuleDescription metadata map (#2853)

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

riemer pushed a commit to branch rel/0.95.0
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 48e7b5d566311ae00f3c7acb256545ce4d114afc
Author: yanfeng1992 <hu...@gmail.com>
AuthorDate: Tue May 21 03:19:13 2024 +0800

    fix timestampTranfsformationRuleDescription metadata map (#2853)
    
    Signed-off-by: huangyanfeng <hu...@gmail.com>
---
 .../shared/preprocessing/convert/ToTransformedSchemaConverter.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-connect-shared/src/main/java/org/apache/streampipes/connect/shared/preprocessing/convert/ToTransformedSchemaConverter.java b/streampipes-connect-shared/src/main/java/org/apache/streampipes/connect/shared/preprocessing/convert/ToTransformedSchemaConverter.java
index b8bec63fa6..983eea9e97 100644
--- a/streampipes-connect-shared/src/main/java/org/apache/streampipes/connect/shared/preprocessing/convert/ToTransformedSchemaConverter.java
+++ b/streampipes-connect-shared/src/main/java/org/apache/streampipes/connect/shared/preprocessing/convert/ToTransformedSchemaConverter.java
@@ -152,7 +152,7 @@ public class ToTransformedSchemaConverter implements ITransformationRuleVisitor,
     var metadata = property.getAdditionalMetadata();
     metadata.put("mode", rule.getMode());
     metadata.put("formatString", rule.getFormatString());
-    metadata.put("multiplier", rule.getMultiplier());
+    metadata.put("multiplier", String.valueOf(rule.getMultiplier()));
   }
 
   @Override