mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 19:58:29 +08:00
[Improvement-16773][Parameter] Create project parameters-Field modify user adds default value (#16775)
This commit is contained in:
parent
26b1ae9970
commit
002da225d8
@ -101,6 +101,7 @@ public class ProjectParameterServiceImpl extends BaseServiceImpl implements Proj
|
||||
.code(CodeGenerateUtils.genCode())
|
||||
.projectCode(projectCode)
|
||||
.userId(loginUser.getId())
|
||||
.operator(loginUser.getId())
|
||||
.createTime(now)
|
||||
.updateTime(now)
|
||||
.build();
|
||||
|
@ -114,6 +114,9 @@ public class ProjectParameterServiceTest {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user