zhongjiajie commented on code in PR #12116:
URL: https://github.com/apache/dolphinscheduler/pull/12116#discussion_r983238392
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java:
##########
@@ -166,6 +181,91 @@ public Map<String, Object> createTaskDefinition(User
loginUser,
return result;
}
+ private TaskDefinitionLog syncObj2Log(User user, TaskDefinition
taskDefinition) {
+ TaskDefinitionLog taskDefinitionLog = new
TaskDefinitionLog(taskDefinition);
+ taskDefinitionLog.setOperator(user.getId());
+ taskDefinitionLog.setOperateTime(new Date());
+ int result = taskDefinitionLogMapper.insert(taskDefinitionLog);
+ if (result <= 0) {
+ throw new
ServiceException(Status.CREATE_TASK_DEFINITION_LOG_ERROR,
taskDefinitionLog.getName());
+ }
+ return taskDefinitionLog;
+ }
+
+ private void TaskDefinitionValid(User user, TaskDefinition taskDefinition,
String permissions) {
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]