Skip to content

Commit

Permalink
RIA-8846 Update the preparer and handler for 'Customise Hearing Bundl… (
Browse files Browse the repository at this point in the history
#902)

* RIA-8846 Update the preparer and handler for 'Customise Hearing Bundle' for the remitted appeal
- Updated the logic to only initialise and cusomise certain collections
  when the appeal has gone through Remittal Path.

* RIA-9143 Update the customise hearing bundle to include documents fro… (#907)

* RIA-9143 Update the customise hearing bundle to include documents from both reheardHearingDocuments & reheardHearingDocumentsCollection
- In scenarios where the reheard documents are present in both the
  fields, preparer will take them all and add to custom collection.
- After bundling, the undpated list will be stored in the
  reheardHearingDocumentsCollection.
- reheardHearingDocuments will not be updated with any new changes in
  the list.
  • Loading branch information
neha-aggarw authored Jun 18, 2024
1 parent 7810472 commit 5113ba9
Show file tree
Hide file tree
Showing 11 changed files with 1,665 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,28 @@
"caseData": {
"template": "minimal-appeal-submitted.json",
"replacements": {
"reheardHearingDocumentsCollection": [
{
"id": "1",
"value": {
"reheardHearingDocs": [
{
"id": "1",
"value": {
"tag": "reheardHearingNotice",
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}"
}
}
]
}
}
],
"additionalEvidenceDocuments": [
{
"id": "2",
Expand Down Expand Up @@ -303,21 +325,6 @@
}
}
],
"reheardHearingDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "reheardHearingNotice"
}
}
],
"addendumEvidenceDocuments": [
{
"id": "3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "RIA-3130-generate-hearing-generic-bundle",
"description": "RIA-8291-generate-hearing-generic-bundle",
"enabled": "{$featureFlag.isEmStitchingEnabled}",
"launchDarklyKey": "dlrm-remitted-feature-flag:true",
"request": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
{
"description": "RIA-8846-customise-reheard-hearing-ready-bundle-remitted-preparer",
"launchDarklyKey": "reheard-feature:true",
"launchDarklyKey": "dlrm-remitted-feature-flag:true",
"request": {
"uri": "/asylum/ccdAboutToStart",
"credentials": "CaseOfficer",
"input": {
"eventId": "customiseHearingBundle",
"state": "preHearing",
"caseData": {
"template": "minimal-appeal-submitted.json",
"replacements": {
"caseFlagSetAsideReheardExists": "Yes",
"listCaseHearingCentre": "taylorHouse",
"ariaListingReference": "LP/12345/2019",
"legalRepReferenceNumber": "REF54321",
"sourceOfRemittal": "Court of Appeal",
"ftpaAppellantDocuments": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "ftpaAppellant"
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "ftpaAppellant"
}
}
],
"finalDecisionAndReasonsDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "finalDecisionAndReasonsPdf"
}
}
],
"addendumEvidenceDocuments": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "addendumEvidence",
"suppliedBy": "The respondent"
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "addendumEvidence",
"suppliedBy": "The appellant"
}
}
],
"remittalDocuments": [
{
"id": "1",
"value": {
"decisionDocument": {
"tag": "remittalDecision",
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}"
},
"otherRemittalDocs": [
{
"id": "11",
"value": {
"tag": "remittalDecision",
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "test",
"dateUploaded": "{$TODAY}"
}
}
]
}
}
],
"reheardHearingDocumentsCollection": [
{
"id": "1",
"value": {
"reheardHearingDocs": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "Case summary",
"dateUploaded": "{$TODAY}",
"tag": "caseSummary"
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "reheardHearingNotice",
"suppliedBy": ""
}
}
]
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-appeal-submitted.json",
"replacements": {
"customFtpaAppellantDocs": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": ""
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": ""
}
}
],
"customFinalDecisionAndReasonsDocs": [
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": ""
}
}
],
"customAppAddendumEvidenceDocs": [
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": ""
}
}
],
"customRespAddendumEvidenceDocs": [
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": ""
}
}
],
"customReheardHearingDocs": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": ""
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "Case summary"
}
}
],
"customLatestRemittalDocs": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": ""
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "test"
}
}
],
"addendumEvidenceDocuments": [
{
"id": "2",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC2_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC2_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC2_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "addendumEvidence",
"suppliedBy": "The respondent"
}
},
{
"id": "1",
"value": {
"document": {
"document_url": "{$FIXTURE_DOC1_PDF_URL}",
"document_binary_url": "{$FIXTURE_DOC1_PDF_URL_BINARY}",
"document_filename": "{$FIXTURE_DOC1_PDF_FILENAME}"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "addendumEvidence",
"suppliedBy": "The appellant"
}
}
]
}
}
}
}
Loading

0 comments on commit 5113ba9

Please sign in to comment.