Skip to content

Dtspb 4993 allow cw attach docs#3704

Open
IswaryaPepakayala wants to merge 31 commits intomasterfrom
DTSPB-4993-Allow-CW-Attach-Docs
Open

Dtspb 4993 allow cw attach docs#3704
IswaryaPepakayala wants to merge 31 commits intomasterfrom
DTSPB-4993-Allow-CW-Attach-Docs

Conversation

@IswaryaPepakayala
Copy link
Copy Markdown
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DTSPB-4993

Change description

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+documentUpload
+
+Collection
+Documents uploaded
+cwDocumentsUpload

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+
+
+documentUpload
+Documents uploaded
+cwDocumentUpload
+
+
+
+documentUpload
+
+Collection
+Request Information upload docs
+cwDocumentUploadedList

@hmcts-jenkins-j-to-z
Copy link
Copy Markdown
Contributor

Plan Result (aat)

No changes. Your infrastructure matches the configuration.

@hmcts-jenkins-j-to-z
Copy link
Copy Markdown
Contributor

Plan Result (prod)

No changes. Your infrastructure matches the configuration.

Comment thread src/main/java/uk/gov/hmcts/probate/service/NotificationService.java
Comment thread src/main/java/uk/gov/hmcts/probate/service/NotificationService.java Outdated
Comment thread src/main/java/uk/gov/hmcts/probate/service/NotificationService.java Outdated
Comment thread src/main/java/uk/gov/hmcts/probate/service/NotificationService.java
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+
+
+documentUpload
+Documents uploaded
+cwDocumentUpload
+
+
+
+documentUpload
+
+Collection
+Request Information upload docs
+cwDocumentUploadedList

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+
+
+documentUpload
+Documents uploaded
+cwDocumentUpload
+
+
+
+documentUpload
+
+Collection
+Request Information upload docs
+cwDocumentUploadedList

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+
+
+documentUpload
+Documents uploaded
+cwDocumentUpload
+
+
+
+documentUpload
+
+Collection
+Request Information upload docs
+cwDocumentUploadedList

@github-actions
Copy link
Copy Markdown

CCD diff report

CCD_Probate_Backoffice/CaseField/CaseField.json

MaxMinRegularExpressionFieldTypeParameterHintTextFieldTypeLabelID
+
+
+
+
+
+YesOrNo
+Do you want to attach a file to the Request for Information?
+uploadFileCheck
+
+
+
+
+
+documentUpload
+Documents uploaded
+cwDocumentUpload
+
+
+
+documentUpload
+
+Collection
+Request Information upload docs
+cwDocumentUploadedList

@@ -272,13 +272,21 @@ private void addCwDocumentToPersonalisation(
cwPrepareUpload(fileContents, personalisation, caseReference);
} catch (IOException e) {
log.error("Error reading CW document file : {}", e.getMessage());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe useful to log the actual exception here so we get a stack trace in the log as well as just the message

Comment on lines +1602 to +1628
HashMap<String, String> personalisation = new HashMap<>();

personalisation.put(PERSONALISATION_APPLICANT_NAME,
personalCaseDataCtscRequestInformation.getData().getPrimaryApplicantFullName());
personalisation.put(PERSONALISATION_DECEASED_NAME,
personalCaseDataCtscRequestInformation.getData().getDeceasedFullName());
personalisation
.put(PERSONALISATION_SOLICITOR_NAME, personalCaseDataCtscRequestInformation.getData().getSolsSOTName());
personalisation
.put(PERSONALISATION_SOLICITOR_SOT_FORENAMES, null);
personalisation
.put(PERSONALISATION_SOLICITOR_SOT_SURNAME, null);
personalisation.put(PERSONALISATION_SOLICITOR_REFERENCE,
personalCaseDataCtscRequestInformation.getData().getSolsSolicitorAppReference());
personalisation.put(PERSONALISATION_REGISTRY_NAME, "CTSC");
personalisation.put(PERSONALISATION_REGISTRY_PHONE, "0300 303 0648");
personalisation.put(PERSONALISATION_CASE_STOP_DETAILS_DEC,
personalCaseDataCtscRequestInformation.getData().getBoStopDetailsDeclarationParagraph());
personalisation.put(PERSONALISATION_CASE_STOP_DETAILS,
personalCaseDataCtscRequestInformation.getData().getBoStopDetails());
personalisation.put(PERSONALISATION_CAVEAT_CASE_ID,
personalCaseDataCtscRequestInformation.getData().getBoCaseStopCaveatId());
personalisation.put(PERSONALISATION_DECEASED_DOD,
personalCaseDataCtscRequestInformation.getData().getDeceasedDateOfDeathFormatted());
personalisation.put(PERSONALISATION_CCD_REFERENCE, personalCaseDataCtscRequestInformation.getId().toString());
personalisation.put(PERSONALISATION_WELSH_DECEASED_DATE_OF_DEATH, localDateToWelshStringConverter
.convert(personalCaseDataCtscRequestInformation.getData().getDeceasedDateOfDeath()));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't appear to be used anywhere (either as an input or to compare an output against)

Comment on lines +2689 to +2694
.documentUploadIssue(YES)
.uploadFileCheck(YES)
.cwDocumentUpload(UploadDocument.builder()
.documentLink(documentLinkMock)
.documentType(SENT_EMAIL)
.build());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does adding this cwDocumentUpload achieve here? we're never testing that the response has any of these values (or that it contains a collection of cw uploaded documents or similar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants