Skip to content

Commit 03702df

Browse files
Better logging
Trying to figure out integration test errors
1 parent 56bbbac commit 03702df

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

proxyserver/src/main/java/edu/suffolk/litlab/efsp/ecfcodes/tyler/CaseCategory.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,15 @@ public static String getCaseCategoryWithCode() {
177177
FROM casecategory WHERE domain=? AND location=? AND code=?
178178
""";
179179
}
180+
181+
@Override
182+
public String toString() {
183+
StringBuilder sb = new StringBuilder();
184+
sb.append(code);
185+
sb.append(", ");
186+
sb.append(name);
187+
sb.append(", ");
188+
sb.append(ecfcasetype);
189+
return sb.toString();
190+
}
180191
}

proxyserver/src/main/java/edu/suffolk/litlab/efsp/server/ecf4/EcfCourtSpecificSerializer.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ private List<FilingCode> vetFilingTypes(
261261
caseCategory,
262262
type);
263263
InterviewVariable var =
264-
collector.requestVar("filing_type", "What type of filing is this?", "text");
264+
collector.requestVar(
265+
"filing_type",
266+
"What type of filing is this?",
267+
"text",
268+
filingOptions.stream().map(f -> f.code).toList(),
269+
Optional.of(maybeCodeStrs.toString()));
265270
collector.addWrong(var);
266271
collector.popAttributeStack();
267272
// Is foundational, so returning now

0 commit comments

Comments
 (0)