Skip to content

Commit 94e16b6

Browse files
committed
Fix Sync
1 parent 4f4d4f4 commit 94e16b6

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/main/java/org/jlab/sim/business/service/SyncService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private SoftwareType getFromTopicList(List<String> topicList) {
332332
} else if (topicList.contains("plugin")) {
333333
type = SoftwareType.PLUGIN;
334334
} else {
335-
throw new IllegalArgumentException("Unknown type");
335+
type = SoftwareType.APP;
336336
}
337337

338338
return type;

src/main/java/org/jlab/sim/persistence/entity/Software.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ public class Software implements Serializable {
6666
@Column(name = "OPS_IMPACT", nullable = false)
6767
private OpsImpact impact;
6868

69-
@NotNull
70-
@Column(name = "DOWN_PROBABILITY", nullable = false, updatable = false)
69+
@Column(name = "DOWN_PROBABILITY", updatable = false, insertable = false)
7170
private DowntimeProbability probability;
7271

73-
@NotNull
74-
@Column(name = "DOWNTIME_RISK", nullable = false, updatable = false)
72+
@Column(name = "DOWNTIME_RISK", updatable = false, insertable = false)
7573
private DowntimeRisk risk;
7674

7775
@NotNull
@@ -124,6 +122,13 @@ public Software(
124122
this.homeUrl = homeUrl;
125123
this.archived = archived;
126124
this.note = note;
125+
126+
this.complexity = CodeComplexity.Medium;
127+
this.esotericism = Esotericism.Medium;
128+
this.difficulty = DebugTestDifficulty.Medium;
129+
this.gaps = DocumentationGaps.Medium;
130+
this.rate = PastDowntimeRate.Medium;
131+
this.impact = OpsImpact.Medium;
127132
}
128133

129134
public BigInteger getSoftwareId() {

0 commit comments

Comments
 (0)