Removed usage of kafka when deploying (polling mongodb instead)

This commit is contained in:
Nicolas Héron 2020-09-24 13:07:42 +02:00
commit 69c5ef7d43
56 changed files with 396 additions and 542 deletions

View file

@ -2,7 +2,6 @@ package org.chtijbug.drools.common;
public class KafkaTopicConstants {
public final static String LOGING_TOPIC ="logging";
public final static String RESPONSE_TOPIC ="Response";
public final static String RESPONSE_DEPLOY_TOPIC ="ResponseDeploy";
public final static String REVERSE_PROXY="proxy";
}

View file

@ -74,10 +74,14 @@ public class AssetService {
private List<PlatformProjectResponse> getSpace(OrganizationalUnit ou) {
final List<PlatformProjectResponse> repoNames = new ArrayList<>();
for (WorkspaceProject workspaceProject : workspaceProjectService.getAllWorkspaceProjects(ou)) {
for (Branch branch : workspaceProject.getRepository().getBranches()) {
repoNames.add(getProjectResponse(workspaceProject, branch));
try {
for (WorkspaceProject workspaceProject : workspaceProjectService.getAllWorkspaceProjects(ou)) {
for (Branch branch : workspaceProject.getRepository().getBranches()) {
repoNames.add(getProjectResponse(workspaceProject, branch));
}
}
}catch (Exception e){
logger.info("getSpace error "+ou.getName(),e);
}
return repoNames;
}