mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 12:17:43 +08:00
.gitignore remove taskInstance/index.vue(#2300) and no need to findProcessDefineById 2 times(#2373) (#2374)
* some optimization * revert * ProcessDefinitionService#updateProcessDefinition findProcessDefineById 1 time
This commit is contained in:
parent
bd6adf284d
commit
d3990dfdb4
1
.gitignore
vendored
1
.gitignore
vendored
@ -145,6 +145,5 @@ dolphinscheduler-ui/dist/js/home/index.78a5d12.js.map
|
|||||||
dolphinscheduler-ui/dist/js/login/index.291b8e3.js
|
dolphinscheduler-ui/dist/js/login/index.291b8e3.js
|
||||||
dolphinscheduler-ui/dist/js/login/index.291b8e3.js.map
|
dolphinscheduler-ui/dist/js/login/index.291b8e3.js.map
|
||||||
dolphinscheduler-ui/dist/lib/external/
|
dolphinscheduler-ui/dist/lib/external/
|
||||||
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue
|
|
||||||
/dolphinscheduler-dao/src/main/resources/dao/data_source.properties
|
/dolphinscheduler-dao/src/main/resources/dao/data_source.properties
|
||||||
|
|
||||||
|
@ -307,20 +307,19 @@ public class ProcessDefinitionService extends BaseDAGService {
|
|||||||
if ((checkProcessJson.get(Constants.STATUS) != Status.SUCCESS)) {
|
if ((checkProcessJson.get(Constants.STATUS) != Status.SUCCESS)) {
|
||||||
return checkProcessJson;
|
return checkProcessJson;
|
||||||
}
|
}
|
||||||
ProcessDefinition processDefinition = processService.findProcessDefineById(id);
|
ProcessDefinition processDefine = processService.findProcessDefineById(id);
|
||||||
if (processDefinition == null) {
|
if (processDefine == null) {
|
||||||
// check process definition exists
|
// check process definition exists
|
||||||
putMsg(result, Status.PROCESS_DEFINE_NOT_EXIST, id);
|
putMsg(result, Status.PROCESS_DEFINE_NOT_EXIST, id);
|
||||||
return result;
|
return result;
|
||||||
} else if (processDefinition.getReleaseState() == ReleaseState.ONLINE) {
|
} else if (processDefine.getReleaseState() == ReleaseState.ONLINE) {
|
||||||
// online can not permit edit
|
// online can not permit edit
|
||||||
putMsg(result, Status.PROCESS_DEFINE_NOT_ALLOWED_EDIT, processDefinition.getName());
|
putMsg(result, Status.PROCESS_DEFINE_NOT_ALLOWED_EDIT, processDefine.getName());
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
putMsg(result, Status.SUCCESS);
|
putMsg(result, Status.SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessDefinition processDefine = processService.findProcessDefineById(id);
|
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
|
|
||||||
processDefine.setId(id);
|
processDefine.setId(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user