-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSCSCI-1137 Address logic changes #4157
Conversation
CCD diff reportNo change |
Integration Tests results 82 files ±0 82 suites ±0 9m 19s ⏱️ -25s Results for commit bbda289. ± Comparison against base commit 1191ec5. This pull request removes 9 and adds 9 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
return true; | ||
} | ||
|
||
var isMainlandUkAndMissingPostcode = !YesNo.NO.equals(address.getInMainlandUk()) && isBlank(address.getPostcode()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is inMainlandUK question optional? because if it is. we're not always going to get the No if they don't answer it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it's crafted carefully, so that NULL or Yes give the desired behaviour
@@ -47,15 +48,20 @@ public Optional<byte[]> createCoverSheet(String identifier) { | |||
String derivedTemplate = documentConfiguration.getEvidence() | |||
.get(sscsCaseData.getLanguagePreference()).get(TEMPLATE); | |||
Address address = sscsCaseData.getAppeal().getAppellant().getAddress(); | |||
var lines = LetterUtils.lines(address); | |||
for (int i = lines.size(); i < 5; i++) { | |||
lines.add(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I understand what this line is doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding it to ensure there are 5 lines even if they are blank
Address.AddressBuilder addressBuilder = Address.builder() | ||
.line1(contactDetails.getAddressLine1()) | ||
.line2(contactDetails.getAddressLine2()) | ||
.town(contactDetails.getTownCity()); | ||
if (isIbc && contactDetails.getInMainlandUk() != null) { | ||
.town(contactDetails.getTownCity()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to include addressLine3 or is it not relevant in this context
see bug ticket https://tools.hmcts.net/jira/browse/SSCSCI-1474
Jira link
See PROJ-XXXXXX
Change description
Testing done
Checklist