Skip to content
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

Feature branch Cafcass APIs #5494

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

Feature branch Cafcass APIs #5494

wants to merge 21 commits into from

Conversation

chak-shing-lo-justice
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DFPL-1726

Change description

Main branch for all Cafcass API

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

[ ] Yes
[X] No

* add dummy controller for API gateway POC

* update CafcassCasesController for POC

* update CafcassCasesController for POC

* Update CafcassCasesController.java

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* add all endpoint for POC

* remove unused import

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* Update CafcassCasesController.java

* update CafcassCasesController
@chak-shing-lo-justice chak-shing-lo-justice requested a review from a team as a code owner July 9, 2024 09:26
@hmcts-jenkins-d-to-i hmcts-jenkins-d-to-i bot requested a deployment to preview July 9, 2024 09:41 Abandoned
* add dummy controller for API gateway POC

* update CafcassCasesController for POC

* update CafcassCasesController for POC

* Update CafcassCasesController.java

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* add all endpoint for POC

* remove unused import

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* Update CafcassCasesController.java

* update CafcassCasesController

* DFPL-2449 Add interceptor and exception handling for Cafcass API (#5493)

* Fix ES/logstash configuration in preview (#5488)

* Copy adoption configuration to attempt to persist ES a bit more between pipeline runs

* fix template variable in ES

* fix template variable in ES

* DFPL-2427 POC controllers for FPL API gateway (#5481)

* add dummy controller for API gateway POC

* update CafcassCasesController for POC

* update CafcassCasesController for POC

* Update CafcassCasesController.java

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* add all endpoint for POC

* remove unused import

* Update CafcassCasesControllerTest.java

* Update CafcassCasesController.java

* Update CafcassCasesController.java

* update CafcassCasesController

* add interceptor for verifying user role

* add other exception

* add unit test

* fix check style

---------

Co-authored-by: Daniel Catchpole <[email protected]>

* fix unit test

* implement es search

* search case response object

* response field child and other

* remove converters chain

* other application details

* refactor to chain pattern

* orders document and manage document

* case documents

* fix category

* CafcassApiHelperTest and CafcassApiCaseServiceTest

* applicantConverter test

* CafcassApiChildrenConverterTest

* refactor CafcassApiCaseDocumentsConverter to more FP style

* Create CafcassApiFactorsParentingConverterTest.java

* Create CafcassApiHearingDetailsConverterTest.java

* add CafcassApiInternationalElementConverterTest

* Create CafcassApiMetaDataConverterTest.java

* Create CafcassApiOthersConverterTest.java

* add CafcassApiPreviousProceedingsConverterTest

* refactor and add CafcassApiRespondentsConverterTest

* Create CafcassApiRisksConverterTest.java

* add sdo and udo converter test

* add draft oder converting test

* refactor to service

* original application test

* add managed doc test

* update controller test

* fix style check

* fix unit test

* fix code check

* rename to CafcassApiSearchCaseService

* Update AmendOrderToDownloadPrePopulatorTest.java

* Update CafcassApiInterceptor.java

* use cafcass role until new role is set up

* Update CafcassApiInterceptor.java

* use object provider

* remove comment

---------

Co-authored-by: Daniel Catchpole <[email protected]>
@chak-shing-lo-justice chak-shing-lo-justice changed the title Feature branch Cafcass APIs WIP Feature branch Cafcass APIs Aug 1, 2024
@chak-shing-lo-justice chak-shing-lo-justice changed the title WIP Feature branch Cafcass APIs Feature branch Cafcass APIs Aug 1, 2024
@chak-shing-lo-justice chak-shing-lo-justice marked this pull request as draft August 1, 2024 12:20
* update es search query

* fix and update test

* query close case as well

* Update CafcassApiSearchCaseServiceTest.java
* document download endpoint

* update user role crud

* update use role

* Update add-ccd-user-roles.sh

* fix profile

* Create CafcassApiDocumentServiceTest.java
@github-actions github-actions bot added the ccd configuration Pull request that updates CCD definition configuration label Aug 8, 2024
* Async test verifications (fixing flaky async tests) (#5519)

* fix running tests locally without the env vars

* Add timeouts for async tests

* DFPL-1269 Non-molestation order (FL404A) (#5455)

* git dfpl1269

* fix test

* fix check style

* fix manageOrdersRecitalsAndPreamblesOptional and add unit test

* allow selecting appllicant and respondent

* fix test

* Update OrderTest.java

* update notification

* fix check style

* fix code check

* Update NotifyTemplates.java

* Update NonMolestationOrderEventHandler.java

* Upped timeout to 110 seconds (#5528)

* Update statement of truth wording - DFPL-2458 (#5502)

* Update statement of truth wording at case submission and on C1 and C110a applications.

* Update wording for tests.

* Update wording to be two separated statements

* Update Welsh C110a template and update order of wording in statement of truth.

* Remove sentence

* Remove sentence in welsh

---------

Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Braimah101 <[email protected]>

* Rename CFV Category - Judgments/facts and reasons (#5530)

* NightlyUiTestFix (#5536)

* FixCaseFlagAPICaseCreationAssertion

* FixGatekeepingJudgesSearchListAndShareCase

* FixGatekeepingJudgesSearchListAndShareCase

---------

Co-authored-by: Daniel Catchpole <[email protected]>
Co-authored-by: gavinkeys <[email protected]>
Co-authored-by: jamesrferguson1 <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Braimah101 <[email protected]>
Co-authored-by: prabhamuthu15 <[email protected]>
* Async test verifications (fixing flaky async tests) (#5519)

* fix running tests locally without the env vars

* Add timeouts for async tests

* DFPL-1269 Non-molestation order (FL404A) (#5455)

* git dfpl1269

* fix test

* fix check style

* fix manageOrdersRecitalsAndPreamblesOptional and add unit test

* allow selecting appllicant and respondent

* fix test

* Update OrderTest.java

* update notification

* fix check style

* fix code check

* Update NotifyTemplates.java

* Update NonMolestationOrderEventHandler.java

* Upped timeout to 110 seconds (#5528)

* Update statement of truth wording - DFPL-2458 (#5502)

* Update statement of truth wording at case submission and on C1 and C110a applications.

* Update wording for tests.

* Update wording to be two separated statements

* Update Welsh C110a template and update order of wording in statement of truth.

* Remove sentence

* Remove sentence in welsh

---------

Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Braimah101 <[email protected]>

* DFPL-1791: Add List for Position statement API call

* add event and guardian report document json for manage docs flow/removal

* add standard system update for testing

* fix spelling error and test for managedocs

* fix tests and exclude guardian report from manage docs flow outside removeable

* checkstyle

* hidden document test fix

* checkstyle

* Rename CFV Category - Judgments/facts and reasons (#5530)

* NightlyUiTestFix (#5536)

* FixCaseFlagAPICaseCreationAssertion

* FixGatekeepingJudgesSearchListAndShareCase

* FixGatekeepingJudgesSearchListAndShareCase

* add correct field type param to guardianReportsList

* remove cafcasssystemupdate for now

* add to json categories for CFV

* add permissions for new cafcass system update user

* fix merge conflict issue

* add extra permissions

* fix perms

---------

Co-authored-by: Daniel Catchpole <[email protected]>
Co-authored-by: Chak Shing Lo <[email protected]>
Co-authored-by: gavinkeys <[email protected]>
Co-authored-by: jamesrferguson1 <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Qasim Nawaz <[email protected]>
Co-authored-by: Braimah101 <[email protected]>
Co-authored-by: prabhamuthu15 <[email protected]>
* update ccd config

* update event name

* Update 6_CasePeople.json

* grant access to cafcass system user

* update field permission

* update Guardian fields

* fix ccd definition after resolving conflict
* update ccd config

* update event name

* Update 6_CasePeople.json

* add guardian logic

* grant access to cafcass system user

* update field permission

* update Guardian fields

* update validation

* add validation

* Update Guardian.java

* UpdateGuardianContentProvider

* Create UpdateGuardianNotifyData.java

* add update guardian notification

* fix ccd definition after resolving conflict

* update controller test

* fix code style

* fix guardian

* simplify checkIfAnyGuardianUpdated
* DFPL-2517: Increase core pool size for async task executor (#5543)

* Increase core pool size for async task executor

* Fix check style

* DFPL-2257: Add updated court seals (#5533)

* Add updated court seals

* Add updated court seals

* Change seal to be Welsh rather than bilingual and update sealed document for tests.

* Update docmosis to use new court seal imgages in rdo docmosis.

* Fix test failures

* Rename seal files to be consistent with their names in docmosis.

* DFPL-2488: Use the correct court code + fix caseManagementLocation when transferring LAs (#5527)

* DFPL-2488: Use the correct court code + fix caseManagementLocation when transferring LAs

* checkstyle

* introduce constants for test

---------

Co-authored-by: Braimah101 <[email protected]>

* Update UploadTranslationsSubmittedControllerTest.java (#5551)

* DFPL-2325: Add 4 New Details Boxes for C43 (#5499)

* DFPL-2325: Add 4 New Details Boxes for C43

* add to order object through question block and fix generator test

* add missing fields to test

* add additional check

* add to object so it persists through to the casedata for MI

* fix persisting

* fix generator test

* checkstyle

* fix scoped field test

* change to append rather than concat

* remove further directions

* hide directions in child arrangement flow

* fix test

* remove very flakey test (for now)

* unflakey

---------

Co-authored-by: Braimah101 <[email protected]>

* DFPL-2491: Migrate out of sync caseManagementLocation fields (#5553)

* DFPL-2491: Fix caseManagementLocation after bug

* correct migration ID

* Add populate case - returned event (#5552)

---------

Co-authored-by: jamesrferguson1 <[email protected]>
Co-authored-by: Daniel Catchpole <[email protected]>
Co-authored-by: Braimah101 <[email protected]>
Co-authored-by: Chak Shing Lo <[email protected]>
@github-actions github-actions bot added the docmosis Pull requests that update Docmosis templates label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ccd configuration Pull request that updates CCD definition configuration docmosis Pull requests that update Docmosis templates enable_keep_helm ns:family-public-law prd:fpl rel:fpl-case-service-pr-5494
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants