JASPER-583/578: Court List Document Bundle#495
Conversation
- Create DocumentConverter to isolate the process for converting CfcDocument to CriminalDocuments - Update Binder mappings - Create Dtos to store request and response data for viewing document bundle - Add props for Binder and BinderDocument - Update BinderProcessBase to move JudicialBinder specific codes. - Create KeyDocumentBinderProcessor - CourtListService update where the core logic is. This includes binder initialization, generating pdf requests and merging. - Add keyDocsBinderRefreshHours to handle the state of key document binder
… dependency - Add missing CourtClassCd label
- Encode document id
- Address other SonarCloud issues.
…rove the functions cognitive complexity
- Fix other sonar cloud issues
- Update courtClassCd to parse it in the BE instead
- Ignore legacy unit tests to prevent the build to proceed when new/existing test fails.
|
The bundle retrieved for a court list, is that basically a list of the Judicial Binders and Key Documents Bundles/Binders for the files associated to the appearances on the court list, or is there more to it? |
Right now, it is only processing Key Document binders and skipping any Civil appearances. But yes, the response object returns the binders associated with the selected appearances and the base64 string of the merged documents from the binders. |
In that case I would be more inclined to implement the interface on the binder API itself. It feels a bit off for the court-list to be fielding requests for binders. The implementation for the binder endpoint would accept a list of contexts (collection of labels defining a context) and return a list of binders for each of those contexts. In this case the call would simply be a list of contexts defining the specific context for each of the appearances listed in the court list. This brings up another thought; a context API and/or service that given an object (file, appearance, document, etc) returns the context (set of labels) for that object. This would ensure contexts are generated in a consistent manner. We also might want to consider including the context as a standard data element whenever we're passing data around, that way it's readily accessible whenever needed. |
…nit tests passes for now.
I was able to move the core logic of initializing the binders and document mergin to the BinderService. It is now being called via the BindersController. In the interest of time, I skipped some unit tests for now until the main logic is approved. |
|
Added more unit tests and some cleanup. |
|



Pull Request for JIRA Ticket: JASPER-583 and JASPER-587
Issue ticket number and link
https://jira.justice.gov.bc.ca/browse/JASPER-578
https://jira.justice.gov.bc.ca/browse/JASPER-583
Description
ℹ️ Marking this as ready for review since we don’t anticipate any major backend changes anymore. I’m also working on adding unit tests for the areas affected by this code change.
Type of change
How Has This Been Tested?
Checklist: