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

wangyang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4c56acb467 [Fix] Change HTTP plugin timeout param to number type 
(#15234)
4c56acb467 is described below

commit 4c56acb4677a163eb16389f1ce3c9407816fd29d
Author: 旺阳 <w...@lqwang.net>
AuthorDate: Tue Nov 28 17:07:57 2023 +0800

    [Fix] Change HTTP plugin timeout param to number type (#15234)
---
 .../dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java
 
b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java
index 211cf19b9f..0e117b0f20 100644
--- 
a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java
+++ 
b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java
@@ -20,6 +20,7 @@ package org.apache.dolphinscheduler.plugin.alert.http;
 import org.apache.dolphinscheduler.alert.api.AlertChannel;
 import org.apache.dolphinscheduler.alert.api.AlertChannelFactory;
 import org.apache.dolphinscheduler.alert.api.AlertInputTips;
+import org.apache.dolphinscheduler.spi.params.base.DataType;
 import org.apache.dolphinscheduler.spi.params.base.PluginParams;
 import org.apache.dolphinscheduler.spi.params.base.Validate;
 import org.apache.dolphinscheduler.spi.params.input.InputParam;
@@ -84,6 +85,7 @@ public final class HttpAlertChannelFactory implements 
AlertChannelFactory {
                 InputNumberParam.newBuilder(HttpAlertConstants.NAME_TIMEOUT, 
HttpAlertConstants.TIMEOUT)
                         .setValue(HttpAlertConstants.DEFAULT_TIMEOUT)
                         .addValidate(Validate.newBuilder()
+                                .setType(DataType.NUMBER.getDataType())
                                 .setRequired(false)
                                 .build())
                         .build();

Reply via email to