You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by xi...@apache.org on 2024/04/09 03:57:58 UTC
(dolphinscheduler) branch dev updated: fix:DataSource And UdfFunc list query use Enum code value not ordinal (#15714)
This is an automated email from the ASF dual-hosted git repository.
xincheng 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 9599b5aa81 fix:DataSource And UdfFunc list query use Enum code value not ordinal (#15714)
9599b5aa81 is described below
commit 9599b5aa815300a49d74a2513be3bfa11366742a
Author: songwenyong <11...@users.noreply.github.com>
AuthorDate: Tue Apr 9 11:57:52 2024 +0800
fix:DataSource And UdfFunc list query use Enum code value not ordinal (#15714)
Co-authored-by: Rick Cheng <ri...@gmail.com>
---
.../apache/dolphinscheduler/api/controller/DataSourceController.java | 2 +-
.../org/apache/dolphinscheduler/api/controller/ResourcesController.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataSourceController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataSourceController.java
index 4d1f0f9f3d..d4fa83dd3a 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataSourceController.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/DataSourceController.java
@@ -162,7 +162,7 @@ public class DataSourceController extends BaseController {
@ApiException(QUERY_DATASOURCE_ERROR)
public Result<Object> queryDataSourceList(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
@RequestParam("type") DbType type) {
- List<DataSource> datasourceList = dataSourceService.queryDataSourceList(loginUser, type.ordinal());
+ List<DataSource> datasourceList = dataSourceService.queryDataSourceList(loginUser, type.getCode());
return Result.success(datasourceList);
}
diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
index 773e734c22..e9c28a5f6e 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
@@ -554,7 +554,7 @@ public class ResourcesController extends BaseController {
@ApiException(QUERY_DATASOURCE_BY_TYPE_ERROR)
public Result<Object> queryUdfFuncList(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
@RequestParam("type") UdfType type) {
- return udfFuncService.queryUdfFuncList(loginUser, type.ordinal());
+ return udfFuncService.queryUdfFuncList(loginUser, type.getCode());
}
/**