Skip to content

Commit

Permalink
Merge branch 'apache:dev' into dev-usable-fix-all
Browse files Browse the repository at this point in the history
  • Loading branch information
reele authored Nov 13, 2024
2 parents 08bdef8 + 5e2abd7 commit 928b215
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-XX:+IgnoreUnrecognizedVMOptions
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:gc.log
-Xloggc:gc-%t.log

-XX:-OmitStackTraceInFastThrow
-XX:+ExitOnOutOfMemoryError
Expand Down
2 changes: 1 addition & 1 deletion dolphinscheduler-api/src/main/bin/jvm_args_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-XX:+IgnoreUnrecognizedVMOptions
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:gc.log
-Xloggc:gc-%t.log

-XX:-OmitStackTraceInFastThrow
-XX:+ExitOnOutOfMemoryError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public Result createProjectParameter(User loginUser, long projectCode, String pr
.code(CodeGenerateUtils.genCode())
.projectCode(projectCode)
.userId(loginUser.getId())
.operator(loginUser.getId())
.createTime(now)
.updateTime(now)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ public void testCreateProjectParameter() {
result = projectParameterService.createProjectParameter(loginUser, projectCode, "key1", "value",
DataType.VARCHAR.name());
assertEquals(Status.SUCCESS.getCode(), result.getCode());

ProjectParameter projectParameter = (ProjectParameter) result.getData();
assertEquals(loginUser.getId(), projectParameter.getOperator());
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion dolphinscheduler-master/src/main/bin/jvm_args_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-XX:+IgnoreUnrecognizedVMOptions
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:gc.log
-Xloggc:gc-%t.log

-XX:-OmitStackTraceInFastThrow
-XX:+ExitOnOutOfMemoryError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-XX:+IgnoreUnrecognizedVMOptions
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:gc.log
-Xloggc:gc-%t.log

-XX:-OmitStackTraceInFastThrow
-XX:+ExitOnOutOfMemoryError
Expand Down
16 changes: 5 additions & 11 deletions dolphinscheduler-ui/src/utils/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@
* Verify if it is in json format
*/
const isJson = (str: string) => {
if (typeof str === 'string') {
try {
const obj = JSON.parse(str)
if (typeof obj === 'object' && obj) {
return true
} else {
return false
}
} catch (e) {
return false
}
try {
const obj = JSON.parse(str)
return !!(typeof obj === 'object' && obj && !Array.isArray(obj))
} catch (e) {
return false
}
}

Expand Down
18 changes: 18 additions & 0 deletions dolphinscheduler-ui/src/views/datasource/list/use-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ export function useForm(id?: number) {
} else {
state.showPrincipal = false
}

if (
type === 'SSH' ||
type === 'ZEPPELIN' ||
Expand All @@ -287,6 +288,8 @@ export function useForm(id?: number) {
state.showHost = false
state.showPort = false
state.showRestEndpoint = true
} else {
state.showRestEndpoint = false
}
if (
type === 'SAGEMAKER' ||
Expand All @@ -299,18 +302,33 @@ export function useForm(id?: number) {
if (type === 'K8S') {
state.showNamespace = true
state.showKubeConfig = true
} else {
state.showNamespace = false
state.showKubeConfig = false
}
if (type === 'ALIYUN_SERVERLESS_SPARK') {
state.showAccessKeyId = true
state.showAccessKeySecret = true
state.showRegionId = true
state.showEndpoint = true
} else {
state.showAccessKeyId = false
state.showAccessKeySecret = false
state.showRegionId = false
state.showEndpoint = false
}
} else {
state.showDataBaseName = true
state.requiredDataBase = true
state.showJDBCConnectParameters = true
state.showPublicKey = false
state.showRestEndpoint = false
state.showNamespace = false
state.showKubeConfig = false
state.showAccessKeyId = false
state.showAccessKeySecret = false
state.showRegionId = false
state.showEndpoint = false
}
}

Expand Down
2 changes: 1 addition & 1 deletion dolphinscheduler-worker/src/main/bin/jvm_args_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-XX:+IgnoreUnrecognizedVMOptions
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:gc.log
-Xloggc:gc-%t.log

-XX:-OmitStackTraceInFastThrow
-XX:+ExitOnOutOfMemoryError
Expand Down

0 comments on commit 928b215

Please sign in to comment.