Skip to content

Commit 751bcde

Browse files
Misc documentation / log improvements
Found when working on the REST guide a while back.
1 parent d21714e commit 751bcde

5 files changed

Lines changed: 17 additions & 18 deletions

File tree

proxyserver/src/main/java/edu/suffolk/litlab/efsp/docassemble/FilingDocDocassembleJacksonDeserializer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ public static Optional<FilingDoc> fromNode(
150150
if (node.has("tyler_merge_attachments")
151151
&& node.get("tyler_merge_attachments").asBoolean(false)) {
152152
log.info(
153-
_logName
154-
+ " indicated that we should only use the parent document; skipping parsing child"
155-
+ " elements");
153+
"{} indicated that we should only use the parent document; skipping parsing child"
154+
+ " elements",
155+
_logName);
156156
} else {
157157
if (node.has("elements") && node.get("elements").isArray()) {
158158
Iterable<JsonNode> nodes = node.get("elements")::elements;
@@ -179,10 +179,10 @@ public static Optional<FilingDoc> fromNode(
179179
NonEmptyList.<FilingAttachment>fromList(attachments);
180180
if (goodAttachments.isNone()) {
181181
log.warn(
182-
"The "
183-
+ _logName
182+
"The {}"
184183
+ " document doesn't have sub documents / PDFs. It's possible that the document was"
185-
+ " turned off at runtime.");
184+
+ " turned off at runtime.",
185+
_logName);
186186
return Optional.empty();
187187
}
188188
return Optional.of(

proxyserver/src/main/java/edu/suffolk/litlab/efsp/docassemble/FilingInformationDocassembleJacksonDeserializer.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,10 @@ private static List<CaseServiceContact> extractServiceContacts(
366366
realId = Optional.of(PartyId.Already(partyAssoc.asText()));
367367
}
368368
log.info(
369-
"Filing party id ("
370-
+ partyAssoc.asText()
371-
+ ") for service party assoc ("
372-
+ servObj.get("contact_id").asText()
373-
+ "): "
374-
+ realId);
369+
"Filing party id ({}) for service party assoc ({}): {}",
370+
partyAssoc.asText(),
371+
servObj.get("contact_id").asText(),
372+
realId);
375373
} else if (partyAssoc != null && !partyAssoc.isNull()) {
376374
log.warn("What is party_association? should be text: {}", partyAssoc);
377375
collector.addWrong(

proxyserver/src/main/java/edu/suffolk/litlab/efsp/docassemble/PersonDocassembleJacksonDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static Result<Person, FilingError> fromNode(JsonNode node, InfoCollector
123123
collector.addWrong(
124124
collector.requestVar(
125125
"is_new",
126-
"if the party is new to the the case",
126+
"if the party is new to the case",
127127
"bool",
128128
List.of(),
129129
Optional.of(isNew.toString())));

proxyserver/src/main/java/edu/suffolk/litlab/efsp/server/services/AuthenticationService.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ public AuthenticationService(SecurityHub security) {
3636
* @param loginInfo should be a JSON object, with the following keys:
3737
* <ul>
3838
* <li>api_key: the api key for this server
39-
* <li>tyler-myJurisdiction: an object ('myJurisdiction' can be any jurisdiction), with
40-
* these tyler jurisdiction values:
39+
* <li>tyler-myJurisdiction (e.g. tyler-illinois): an object ('myJurisdiction' can be any
40+
* jurisdiction), with these tyler jurisdiction values:
4141
* <ul>
42-
* <li>username: Any tyler jurisdiction username. Example: 'illinois'
43-
* <li>password: The jurisdiction's password
42+
* <li>username: The username for a user in the given tyler jurisdiction. Example:
43+
* 'bob@example.com'
44+
* <li>password: The password for the given user.
4445
* </ul>
4546
* </ul>
4647
* An example: <code>

proxyserver/src/main/java/edu/suffolk/litlab/efsp/server/setup/tyler/Ecf4Filer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private CoreMessageAndNames prepareFiling(
243243
if (maybeFilingCodes.stream().anyMatch(fc -> fc.isEmpty())) {
244244
InterviewVariable filingVar =
245245
collector.requestVar(
246-
"court_bundle[i].filing_type",
246+
"al_court_bundle[i].filing_type",
247247
"What filing type is this?",
248248
"text",
249249
List.of(),

0 commit comments

Comments
 (0)