new parsing config added
This commit is contained in:
@@ -100,7 +100,7 @@ public class KSGitController {
|
|||||||
|
|
||||||
//Return an immediate response
|
//Return an immediate response
|
||||||
ResultDTO response = new ResultDTO();
|
ResultDTO response = new ResultDTO();
|
||||||
response.setMessage("Ingestion process initiated for repo: " + gitCloneInput.getRepoName() + " branch: " + gitCloneInput.getBranch());
|
response.setMessage("clone process initiated for repo: " + gitCloneInput.getRepoName() + " branch: " + gitCloneInput.getBranch());
|
||||||
response.setSuccess(true);
|
response.setSuccess(true);
|
||||||
return ResponseEntity.ok(response);
|
return ResponseEntity.ok(response);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
package com.olympus.apollo.dto;
|
package com.olympus.apollo.dto;
|
||||||
|
|
||||||
|
import com.olympus.apollo.models.CodeTypes;
|
||||||
|
import com.olympus.apollo.models.ParseStatuses;
|
||||||
|
import com.olympus.apollo.models.RevEngineeringStatuses;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
@Getter
|
@Getter
|
||||||
@@ -22,7 +26,11 @@ public class GitCloneInput {
|
|||||||
private int defaultChunkSize;
|
private int defaultChunkSize;
|
||||||
|
|
||||||
private boolean codeParsingToBeDone;
|
private boolean codeParsingToBeDone;
|
||||||
private String parseStatus;
|
//private String parseStatus;
|
||||||
private String reverseEngineeringStatus;
|
//private String reverseEngineeringStatus;
|
||||||
private String codeType;
|
//private String codeType;
|
||||||
|
|
||||||
|
private List<CodeTypes> codeTypes= new ArrayList<>();
|
||||||
|
private List<ParseStatuses> parseStatuses= new ArrayList<>();
|
||||||
|
private List<RevEngineeringStatuses> revEngineeringStatuses= new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/main/java/com/olympus/apollo/models/CodeTypes.java
Normal file
11
src/main/java/com/olympus/apollo/models/CodeTypes.java
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package com.olympus.apollo.models;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter @Setter
|
||||||
|
public class CodeTypes {
|
||||||
|
private String type;
|
||||||
|
private String re_scenario;
|
||||||
|
private String[] base_source;
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ package com.olympus.apollo.models;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Id;
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
@@ -27,8 +28,11 @@ public class KSGitInfo {
|
|||||||
private String ingestionDateFormat;
|
private String ingestionDateFormat;
|
||||||
|
|
||||||
private boolean codeParsingToBeDone;
|
private boolean codeParsingToBeDone;
|
||||||
private String parseStatus;
|
//private String parseStatus;
|
||||||
private String reverseEngineeringStatus;
|
//private String reverseEngineeringStatus;
|
||||||
private String codeType;
|
//private String codeType;
|
||||||
private String parseId;
|
//private String parseId;
|
||||||
|
private List<CodeTypes> codeTypes;
|
||||||
|
private List<ParseStatuses> parseStatuses;
|
||||||
|
private List<RevEngineeringStatuses> revEngineeringStatuses;
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/main/java/com/olympus/apollo/models/ParseStatuses.java
Normal file
11
src/main/java/com/olympus/apollo/models/ParseStatuses.java
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package com.olympus.apollo.models;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter @Setter
|
||||||
|
public class ParseStatuses {
|
||||||
|
private String type;
|
||||||
|
private String Status;
|
||||||
|
private String parseProcessId;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.olympus.apollo.models;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter @Setter
|
||||||
|
public class RevEngineeringStatuses {
|
||||||
|
private String type;
|
||||||
|
private String status;
|
||||||
|
private String revProcessId;
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.olympus.apollo.utils;
|
package com.olympus.apollo.utils;
|
||||||
|
|
||||||
import com.olympus.apollo.dto.GitCloneInput;
|
import com.olympus.apollo.dto.GitCloneInput;
|
||||||
|
import com.olympus.apollo.models.CodeTypes;
|
||||||
import com.olympus.apollo.models.KSGitInfo;
|
import com.olympus.apollo.models.KSGitInfo;
|
||||||
import com.olympus.apollo.models.KSGitIngestionInfo;
|
import com.olympus.apollo.models.KSGitIngestionInfo;
|
||||||
import org.eclipse.jgit.lib.Ref;
|
import org.eclipse.jgit.lib.Ref;
|
||||||
@@ -32,9 +33,10 @@ public class GitUtils {
|
|||||||
info.setIngestionDateFormat(new SimpleDateFormat("MM/dd/yy").format(new Date()));
|
info.setIngestionDateFormat(new SimpleDateFormat("MM/dd/yy").format(new Date()));
|
||||||
|
|
||||||
info.setCodeParsingToBeDone(gitCloneInput.isCodeParsingToBeDone());
|
info.setCodeParsingToBeDone(gitCloneInput.isCodeParsingToBeDone());
|
||||||
info.setCodeType(gitCloneInput.getCodeType());
|
|
||||||
info.setParseStatus("NEW");
|
info.setCodeTypes(gitCloneInput.getCodeTypes());
|
||||||
info.setReverseEngineeringStatus("NEW");
|
info.setParseStatuses(gitCloneInput.getParseStatuses());
|
||||||
|
info.setRevEngineeringStatuses(gitCloneInput.getRevEngineeringStatuses());
|
||||||
|
|
||||||
logger.info("KSGitInfo Created: {}, {}",info.getRepoName(),info.getBranch());
|
logger.info("KSGitInfo Created: {}, {}",info.getRepoName(),info.getBranch());
|
||||||
return info;
|
return info;
|
||||||
|
|||||||
Reference in New Issue
Block a user