-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RIA-8846 Update the preparer and handler for 'Customise Hearing Bundl… (
#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
1 parent
7810472
commit 5113ba9
Showing
11 changed files
with
1,665 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/functionalTest/resources/scenarios/RIA-8291-generate-hearing-bundle-remitted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
314 changes: 314 additions & 0 deletions
314
...resources/scenarios/RIA-8846-customise-reheard-hearing-bundle-with-remitted-preparer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.