Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.2.0 (LTS) #4060

Merged
merged 55 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
904f4fe
[Optimize][Web]Optimize flink jar form (#3951)
zackyoungh Nov 25, 2024
bb55f4a
[Improve] Optimize the logic for constructing role menus. (#3952)
MaoMiMao Nov 26, 2024
c667c5f
[bug]fix k8s form ingresss bug (#3956)
gaoyan1998 Nov 26, 2024
117e1a6
[Optimize][Flink]Optimize DInky without Flink dependency, unable to s…
zackyoungh Nov 26, 2024
fa16032
[Optimization-3957][web] Improved the missing exception message when …
zhuangchong Nov 26, 2024
6f9bb41
[Optimize][Web]Click the Tasks tab to switch to Service Synchronizati…
gaoyan1998 Nov 27, 2024
697ac66
[Bug] Fix the route redirection error on the welcome page (#3966)
gaoyan1998 Nov 27, 2024
e9061cb
[Optimization][dinky-getaway] Delete the previously failed cluster wh…
Jam804 Nov 27, 2024
cc10a28
[BugFix][Flink]Fix the Flink task to submit the session mode. (#3967)
zackyoungh Nov 27, 2024
c839219
[Bug][Web]Fix web npe (#3970)
gaoyan1998 Nov 27, 2024
6c0953a
[Bug] Fix web clear bug (#3971)
gaoyan1998 Nov 27, 2024
d64de82
[Optimization-3959][core] Optimize submit task print error log (#3960)
aiwenmo Nov 27, 2024
5c775d7
[]Optimize][Web]Optimize flink jar form select (#3972)
zackyoungh Nov 27, 2024
be71bc2
[Optimize][Pom]Optimize app package size (#3978)
zackyoungh Nov 28, 2024
bdec795
[Optimize][Web] Optimize the responsive layout of the login interface…
zackyoungh Nov 28, 2024
721ef1f
[BugFix][web] Fixed an error when using the copy button in the Resour…
zackyoungh Nov 28, 2024
9aaad89
[Feature-3973][*] Release 1.2.0-rc4 (#3981)
aiwenmo Nov 28, 2024
0ee8278
[Optimization][Data Development] variable suggestion optimization (#3…
MactavishCui Nov 28, 2024
ccda836
[Feature][web] Add resource management to the datastudio page (#3986)
zackyoungh Dec 1, 2024
780e8df
[Optimize][Admin] Optimized the package size of the App and the rs pr…
zackyoungh Dec 1, 2024
4585355
[Bug] [dinky-web] Issue with creating a new task with a subdirectory …
Jam804 Dec 1, 2024
36f0be2
[Optimization][dinky-getaway] Add Deployment status monitoring. (#3989)
Jam804 Dec 2, 2024
1ffe49f
[Bug] [dinky-gateway] Restrictions on task names when running in Kube…
Jam804 Dec 2, 2024
3b48594
[Bug] Fix k8s test bug (#3997)
gaoyan1998 Dec 3, 2024
44c1066
[BugFix][Web]Fix data development and introduce LESS to cause the glo…
zackyoungh Dec 3, 2024
7bc8913
[Feature] Provide init tools (#3999)
Zzm0809 Dec 3, 2024
5674a45
[BugFix][Web]Fix data development, Flink jar task toolbar display (#4…
zackyoungh Dec 4, 2024
52d3bc7
[Feature] support pgsql catalog (#4000)
Zzm0809 Dec 4, 2024
7c43295
[Bug] Fix pg bug (#4009)
Zzm0809 Dec 5, 2024
a1613a1
[Optimization] Optimize some script (#4006)
Zzm0809 Dec 5, 2024
8cbd5bb
[Optimization] Optimization scheduler request error assert method (#4…
Zzm0809 Dec 5, 2024
19a061c
[Optimize] [dinky-gateway] Add default jobmanager.memory.process.size…
Jam804 Dec 6, 2024
75513e5
[BugFix][Admin]Fix dolphinscheduler calls dinky tasks and concurrent …
dagenjun Dec 6, 2024
b58702f
[BugFix][Web]Fix the issue where the submitted job name remains uncha…
zackyoungh Dec 6, 2024
9ed0953
[Refactor][UDF]Refactor udf execute (#4017)
zackyoungh Dec 6, 2024
be98771
[BugFix] [Alert]Fix alert serializable (#4023)
zackyoungh Dec 6, 2024
0da1714
[Optimize][Web] Optimize blood relationship acquisition, add Savepoin…
zackyoungh Dec 6, 2024
66b97b0
[Bug] Fix login bug (#4026)
gaoyan1998 Dec 7, 2024
3d01224
[Optimization] Optimization devops page ui (#4027)
gaoyan1998 Dec 7, 2024
062f553
[BugFix] [Flink] Fix flink jar submit (#4028)
zackyoungh Dec 8, 2024
121e06b
[Feature-4025][*] Release 1.2.0-rc5 (#4031)
aiwenmo Dec 9, 2024
97c267d
[Bug] Fix automation script path issue (#4030)
Zzm0809 Dec 9, 2024
3c84748
[Optimization] modify sqllite data position (#4032)
Zzm0809 Dec 9, 2024
4a2dfde
[BugFix] Solve issues-3470: Yarn webui fails to obtain task status wh…
miaoze8 Dec 9, 2024
7ef6251
[Improvement][admin] Change Chinese comments to English comments (#4038)
suger-bl Dec 11, 2024
68cfb43
[Optmization]Add welcome page auto width (#4041)
gaoyan1998 Dec 12, 2024
28d6c8b
[Fix][Admin] Fix the situation where the "args" parameter is not pass…
suger-bl Dec 12, 2024
0d980ad
[BugFix]Fix yarn parallel submit (#4042)
zackyoungh Dec 13, 2024
59c142e
[Feature][Test]Add E2E Test Programing process (#4036)
zackyoungh Dec 13, 2024
fe775bd
[Document][4043][docs]Modify README.md (#4044)
binggana Dec 13, 2024
52fee76
[Fix-3964] [metadata] Fix NPE when executing a query statement on the…
aiwenmo Dec 13, 2024
04f9072
[Optimization-4047][web] Add push task into DolphinScheduler (#4048)
aiwenmo Dec 15, 2024
f5f833f
[BugFix][FlinkJar]Fix the issue where FlinkJar cannot use global vari…
zackyoungh Dec 16, 2024
2b2f896
[FixBug] Fix pg batch insert error (#4059)
Zzm0809 Dec 17, 2024
381396f
Release 1.2.0 (LTS) (#4054)
aiwenmo Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/code-review.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: E2E Test

on:
workflow_dispatch:

jobs:
init_env:
name: init env
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init Env Jar
run: |
wget -O e2e_test/docker-compose-env/dinky/mysql-connector-java-8.0.30.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.30/mysql-connector-java-8.0.30.jar &&
wget -O e2e_test/docker-compose-env/flink/flink-shaded-hadoop-2-uber-2.8.3-10.0.jar https://repo1.maven.org/maven2/org/apache/flink/flink-shaded-hadoop-2-uber/2.8.3-10.0/flink-shaded-hadoop-2-uber-2.8.3-10.0.jar
- name: Init Docker Network
run: |
docker network create -d bridge dinky_net
- name: Init Run Docker MySQL
uses: hoverkraft-tech/[email protected]
with:
compose-file: ./e2e_test/docker-compose-env/mysql/docker-compose.yml
- name: Init Run Docker Hadoop
uses: hoverkraft-tech/[email protected]
with:
compose-file: ./e2e_test/docker-compose-env/hadoop/docker-compose.yml
# 设置 QEMU, 后面 docker buildx 依赖此.
- name: Init Run Docker Flink
uses: hoverkraft-tech/[email protected]
with:
compose-file: ./e2e_test/docker-compose-env/flink/docker-compose.yml
# 设置 QEMU, 后面 docker buildx 依赖此.
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# 设置 Docker buildx, 方便构建 Multi platform 镜像
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build Dinky Image
uses: docker/build-push-action@v5
with:
file: ./deploy/docker/Dockerfile
# 是否 docker push
push: true
build-args: |
FLINK_VERSION=1.14
DINKY_VERSION=1
tags: |
localhost:5000/dinky/dinky-test:flink-1.14
- name: Init Run Docker Dinky
uses: hoverkraft-tech/[email protected]
with:
compose-file: ./e2e_test/docker-compose-env/dinky/docker-compose.yml
- name: Run Docker Python Script
# uses: hoverkraft-tech/[email protected]
# with:
# compose-file: ./e2e_test/tools/docker-compose.yml
run: |
sleep 30 && cd ./e2e_test/tools && docker run -v ./:/app -w /app --net dinky_net --rm --entrypoint /bin/bash python:3.9 -c 'pip install -r requirements.txt && python main.py dinky14:8888'
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dinky.db
hs_err_pid*
.idea/*
!.idea/icon.svg
!.idea/vcs.xml
build
target/*
*.iml
Expand Down Expand Up @@ -63,4 +62,6 @@ tmp/*
extends/*
/.run/

.idea
.idea
.idea/vcs.xml
dinky-web/package-lock.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Thank you to all the people who already contributed to Dinky!

## How to Deploy

See [source code compilation](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/compile.mdx) and [installation and deployment](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/normal_deploy.mdx) for details.
See [source code compilation](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/compile_deploy.md) and [installation and deployment](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/normal_deploy.mdx) for details.

## Thanks

Expand Down
2 changes: 1 addition & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

## 如何部署

详见 [源码编译](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/compile.mdx) 和 [安装部署](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/normal_deploy.mdx) 。
详见 [源码编译](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/compile_deploy.md) 和 [安装部署](https://github.com/DataLinkDC/dinky/blob/dev/docs/docs/deploy_guide/normal_deploy.mdx) 。

## 感谢

Expand Down
6 changes: 3 additions & 3 deletions deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY --from=ui-build /build/dist/ /build/dinky-web/dist/

RUN mvn package -Dmaven.test.skip=true -P prod,flink-single-version,flink-${FLINK_VERSION},fast
RUN mkdir release && \
tar -C release -xvf build/dinky-release-${FLINK_VERSION}-${DINKY_VERSION}.tar.gz && \
tar -C release -xvf build/dinky-release-${FLINK_VERSION}-*.tar.gz && \
mv release/dinky-release-* release/dinky


Expand All @@ -48,8 +48,8 @@ RUN rm -f /opt/dinky/extends/flink${FLINK_VERSION}/flink/flink-table-planner-lo

COPY --from=flink-base /opt/flink/opt/flink-table-planner*.jar /opt/dinky/extends/flink${FLINK_VERSION}/flink/

RUN mkdir /opt/dinky/customJar && chmod -R 777 /opt/dinky/ && sed -i 's/-Xms512M -Xmx2048M -XX:PermSize=512M/-XX:+UseContainerSupport -XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0/g' auto.sh
RUN mkdir /opt/dinky/customJar && chmod -R 777 /opt/dinky/ && sed -i 's/-Xms512M -Xmx2048M -XX:PermSize=512M/-XX:+UseContainerSupport -XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0/g' ./bin/auto.sh

EXPOSE 8888

CMD ./auto.sh startOnPending
CMD ./bin/auto.sh startOnPending
16 changes: 16 additions & 0 deletions dinky-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,26 @@
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-dingtalk</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-feishu</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-wechat</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-sms</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-email</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-http</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion dinky-admin/src/main/assembly/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<fileSet>
<directory>${basedir}/src/main/bin</directory>
<lineEnding>unix</lineEnding>
<outputDirectory/>
<outputDirectory>bin</outputDirectory>
<fileMode>755</fileMode>
<includes>
<include>*.sh</include>
Expand Down
8 changes: 8 additions & 0 deletions dinky-admin/src/main/java/org/dinky/Dinky.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

package org.dinky;

import org.dinky.data.constant.DirConstant;
import org.dinky.security.NoExitSecurityManager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
Expand All @@ -27,6 +30,7 @@

import com.alibaba.druid.proxy.DruidDriver;

import cn.hutool.core.io.FileUtil;
import lombok.SneakyThrows;

/**
Expand All @@ -45,11 +49,15 @@ public class Dinky {

@SneakyThrows
public static void main(String[] args) {
// Prevent System.exit calls
System.setSecurityManager(new NoExitSecurityManager());
// Initialize the JDBC Driver, because the number of packages is very large, so it needs to be executed
// asynchronously and loaded in advance
// chinese: 初始化JDBC Driver,因为包的数量特别庞大,所以这里需要异步执行,并提前加载Driver
new Thread(DruidDriver::getInstance).start();

FileUtil.mkdir(DirConstant.getTempRootDir());

SpringApplication app = new SpringApplication(Dinky.class);
app.run(args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public class WebExceptionHandler {
@ExceptionHandler
@ResponseBody
public Result<Void> busException(BusException e) {
log.error("BusException:", e);
return Result.failed(e.getMsg());
log.error(e.getMessage(), e);
return Result.failed(e.getMessage());
}

private static final Map<String, Status> ERR_CODE_MAPPING = MapUtil.<String, Status>builder()
Expand Down
9 changes: 7 additions & 2 deletions dinky-admin/src/main/java/org/dinky/configure/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ public void addInterceptors(InterceptorRegistry registry) {
}))
.addPathPatterns("/api/**", "/openapi/**")
.excludePathPatterns(
"/api/login", "/api/ldap/ldapEnableStatus", "/download/**", "/druid/**", "/api/version");
"/api/login",
"/api/sysConfig/getNeededCfg",
"/api/sysConfig/setInitConfig",
"/download/**",
"/druid/**",
"/api/version");

registry.addInterceptor(new TenantInterceptor())
.addPathPatterns("/api/**")
.excludePathPatterns("/api/login", "/api/ldap/ldapEnableStatus")
.excludePathPatterns("/api/login", "/api/sysConfig/getNeededCfg", "/api/sysConfig/setInitConfig")
.addPathPatterns("/api/alertGroup/**")
.addPathPatterns("/api/alertHistory/**")
.addPathPatterns("/api/alertInstance/**")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class MybatisPlusConfig {
"dinky_task_version");

@Bean
@Profile("pgsql")
@Profile("postgresql")
public PostgreSQLQueryInterceptor postgreSQLQueryInterceptor() {
return new PostgreSQLQueryInterceptor();
}
Expand All @@ -91,7 +91,7 @@ public PostgreSQLQueryInterceptor postgreSQLQueryInterceptor() {
* @return {@linkplain PostgreSQLPrepareInterceptor}
*/
@Bean
@Profile("pgsql")
@Profile("postgresql")
public PostgreSQLPrepareInterceptor postgreSQLPrepareInterceptor() {
return new PostgreSQLPrepareInterceptor();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public boolean clearProcessLog(String processName) {
if (FileUtil.exist(filePath)) {
return FileUtil.del(filePath);
}
return false;
return true;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ public Result<String> upload(MultipartFile file, @PathVariable Integer id) {
dataType = "Catalogue",
dataTypeClass = Catalogue.class)
public Result<Void> saveOrUpdateCatalogue(@RequestBody Catalogue catalogue) {
if (catalogueService.checkNameIsExistByParentId(catalogue)) {
return Result.failed(Status.NAME_IS_EXIST);
}
if (catalogueService.saveOrUpdateOrRename(catalogue)) {
return Result.succeed(Status.SAVE_SUCCESS);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.springframework.web.bind.annotation.RestController;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.hutool.core.lang.Singleton;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
Expand All @@ -45,14 +46,13 @@
@SaCheckLogin
@RequiredArgsConstructor
public class FlinkController {

protected static final CheckpointRead INSTANCE = new CheckpointRead();
private final FlinkService flinkService;

@GetMapping("/readCheckPoint")
@ApiOperation("Read Checkpoint")
public Result<Map<String, Map<String, CheckPointReadTable>>> readCheckPoint(String path, String operatorId) {
return Result.data(INSTANCE.readCheckpoint(path, operatorId));
CheckpointRead checkpointRead = Singleton.get(CheckpointRead.class);
return Result.data(checkpointRead.readCheckpoint(path, operatorId));
}

@GetMapping("/configOptions")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.dinky.data.enums.BusinessType;
import org.dinky.data.enums.Status;
import org.dinky.data.exception.AuthException;
import org.dinky.data.model.SystemConfiguration;
import org.dinky.data.model.rbac.User;
import org.dinky.data.result.Result;
import org.dinky.service.LdapService;
Expand All @@ -43,7 +42,6 @@
import org.springframework.web.bind.annotation.RestController;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.dev33.satoken.annotation.SaIgnore;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
Expand All @@ -63,13 +61,6 @@ public class LdapController {
@Autowired
UserService userService;

@GetMapping("/ldapEnableStatus")
@SaIgnore
@ApiOperation("Get LDAP enable status")
public Result<Boolean> ldapStatus() {
return Result.succeed(SystemConfiguration.getInstances().getLdapEnable().getValue());
}

@GetMapping("/testConnection")
@ApiOperation("Test connection to LDAP server")
@SaCheckLogin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ public class SchedulerController {
example = "1")
public Result<TaskDefinition> getTaskDefinition(@ApiParam(value = "dinky任务id") @RequestParam Long dinkyTaskId) {
TaskDefinition taskDefinitionInfo = schedulerService.getTaskDefinitionInfo(dinkyTaskId);
if (taskDefinitionInfo == null) {
return Result.failed(Status.DS_TASK_NOT_EXIST);
}
return Result.succeed(taskDefinitionInfo);
}

Expand Down Expand Up @@ -102,9 +99,9 @@ public Result<String> createOrUpdateTaskDefinition(@RequestBody DinkyTaskRequest
}

/**
* 获取任务组
* Get task group
* @param projectCode
* @return
* @return Result object containing a list of task groups
*/
@GetMapping(value = "/task/groups")
public Result<List<TaskGroup>> getTaskGroups(@RequestParam("projectCode") Long projectCode) {
Expand Down
Loading
Loading