-
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 - Update Docmosis address logic #4093
Conversation
…tes. Update references to new TB-SCS-LET-ENG-Appeal-Lodged-Representative-IB template.
CCD diff reportNo change |
…tes. Update references to new TB-SCS-LET-ENG-Appeal-Lodged-Representative-IB template.
cftlib_log_file_IS_UNDEFINED
Outdated
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 this needed? Can it be deleted?
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.
Thanks for flagging. Wasn't needed and has been removed.
dump.rdb
Outdated
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 this needed? Can it be deleted?
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.
Thanks for flagging. Wasn't needed and has been deleted.
src/main/java/uk/gov/hmcts/reform/sscs/tyanotifications/service/LetterUtils.java
Outdated
Show resolved
Hide resolved
what is this cftlib_log_file_IS_UNDEFINED? |
@@ -4,9 +4,10 @@ | |||
import static org.apache.commons.lang3.StringUtils.isNoneBlank; | |||
import static uk.gov.hmcts.reform.sscs.ccd.domain.YesNo.isYes; | |||
import static uk.gov.hmcts.reform.sscs.evidenceshare.service.placeholders.PlaceholderConstants.*; |
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.
hmcts style guidelines recommend not using wildcard imports
|
||
for (int i = 0; i < lines.size(); i++) { |
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.
given that this same logic is repeated for most calls to lines(), is it worth incorporating it into the method (or creating a separate method that calls it), and passing a boolean to decide whether or not to truncate
@benouaer looks like it's being produced in directory tests are run from when a CCD test fails. See File deleted. |
@@ -404,4 +416,8 @@ private static String getDocumentForType(AbstractDocument sscsDocument) { | |||
return null; | |||
} | |||
|
|||
private static String defaultToEmptyStringIfNull(String value) { |
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.
should this be in letterUtils?
a0b5545
to
2c3fb4b
Compare
...n/java/uk/gov/hmcts/reform/sscs/tyanotifications/config/PersonalisationMappingConstants.java
Show resolved
Hide resolved
This reverts commit 20c0216.
* Reapply "SSCSCI-1137 - Update Docmosis address logic (#4093)" (#4131) This reverts commit 0ea1d68. * refactor getAddressPlaceholders to validate letter service. * Update .gitignore * Allow addresses without postcode outside UK * Allow blank postcode on international addresses * SSCSCI-1473 bug fix to pass international postcode through from SYA * SSCSCI-1473 test * pointing to SYA PR * fix coverletter addresses * Merge master * Fix test * repoint before merge --------- Co-authored-by: Joshua Gray <joshgray91@gmail.com> Co-authored-by: nilay <nilay.patel@hmcts.net>
SSCSCI-1137 - Update Docmosis address logic for international addresses
Jira link
https://tools.hmcts.net/jira/browse/SSCSCI-1137
Change description
Move
labels()
toLetterUtils.java
and add conditional logic to handle international addresses.Write unit tests for
labels()
inLetterUtilsTest.java
.Implement
labels()
in following files to allow them to handle international addresses:PlaceholderService.java
PdfLetterService.java
SendNotificationService.java
GenericLetterPlaceholderService.java
PlaceholderUtility.java
Testing done
Unit tests in
LetterUtilsTest.java
.Checklist