|
@@ -53,7 +53,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
|
|
|
}
|
|
}
|
|
|
app.setIsDelete(false);
|
|
app.setIsDelete(false);
|
|
|
appRepository.save(app);
|
|
appRepository.save(app);
|
|
|
- buildDeployAppCrudService.insert(BuildDeployApp.of(app));
|
|
|
|
|
|
|
+ //buildDeployAppCrudService.insert(BuildDeployApp.of(app));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void copy(String from, String to) throws Exception {
|
|
public void copy(String from, String to) throws Exception {
|
|
@@ -67,7 +67,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
|
|
|
toApp = (AppOrchestration) fromApp.clone();
|
|
toApp = (AppOrchestration) fromApp.clone();
|
|
|
copyToDifferentBranch(toApp, to);
|
|
copyToDifferentBranch(toApp, to);
|
|
|
appRepository.save(toApp);
|
|
appRepository.save(toApp);
|
|
|
- buildDeployAppCrudService.insert(BuildDeployApp.of(toApp));
|
|
|
|
|
|
|
+ //buildDeployAppCrudService.insert(BuildDeployApp.of(toApp));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -84,6 +84,8 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
|
|
|
app.setRunningConfig(null);
|
|
app.setRunningConfig(null);
|
|
|
app.setNotifierConfig(null);*/
|
|
app.setNotifierConfig(null);*/
|
|
|
app.setDeployConfigs(null);
|
|
app.setDeployConfigs(null);
|
|
|
|
|
+ app.setRunningConfig(null);
|
|
|
|
|
+ app.setNotifyReceivers(null);
|
|
|
/*if (app.getRunningConfig() != null) {
|
|
/*if (app.getRunningConfig() != null) {
|
|
|
app.getRunningConfig().setLogConfigs(null);
|
|
app.getRunningConfig().setLogConfigs(null);
|
|
|
}*/
|
|
}*/
|
|
@@ -103,7 +105,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
|
|
|
app.setUpdateTime(LocalDateTime.now());
|
|
app.setUpdateTime(LocalDateTime.now());
|
|
|
app.setIsDelete(false);
|
|
app.setIsDelete(false);
|
|
|
appRepository.save(app);
|
|
appRepository.save(app);
|
|
|
- buildDeployAppCrudService.update(BuildDeployApp.of(app));
|
|
|
|
|
|
|
+ //buildDeployAppCrudService.update(BuildDeployApp.of(app));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -125,7 +127,7 @@ public class AppOrchestrationCrudService implements CrudOps<AppOrchestration> {
|
|
|
} else {
|
|
} else {
|
|
|
appEntity.setIsDelete(true);
|
|
appEntity.setIsDelete(true);
|
|
|
appRepository.save(appEntity);
|
|
appRepository.save(appEntity);
|
|
|
- buildDeployAppCrudService.delete(appEntity.getAppId());
|
|
|
|
|
|
|
+ //buildDeployAppCrudService.delete(appEntity.getAppId());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|