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

DFPL-1483: Align caseData.court with caseData.caseManagementLocation #4453

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

DanCatchpole
Copy link
Contributor

JIRA link (if applicable)

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

Change description

  • When updating court in the orders sought event, use the upto date JSON config rather than checking for courts in onboardings, as this may be outdated or not 'complete' in lower environments

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

[ ] Yes
[X] No

@DanCatchpole DanCatchpole merged commit fc7046a into DFPL-GSWA Jun 7, 2023
@DanCatchpole DanCatchpole deleted the DFPL-1483 branch June 7, 2023 11:22
AlistairEdwinOsborne added a commit that referenced this pull request Jul 7, 2023
* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* Disabling sync with master for demo while testing wa. (#4344)

* DFPL-1260: Fix no field found error in amend children flow (#4323)

* DFPL-1371: Removal of Doc on PO22C50396 (#4326)

* DFPL-1380: MIgration to reinstate closed case (#4338)

* DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)

* DFPL-1381 Unknown Error when uploading Gatekeeping Order - Judicial Gatekeeping (#4347)

* fix null pointer

* add null checking

* fix unuse import

* fix check style

* DFPL-1378 Warning restriction on gatekeeping is not allowing urgent gatekeeping to be completed (#4334)

* add test case

* allow standalone interim care order

* typo

* allow standalone secure accommodation order

* check style

* allow adding urgent direction to standalone child recovery order.

* Allow access for ICO and EPO

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1249: Update .internal links to .platform links (#4221)

* DFPL-1249: Update internal link in Jenkinsfile_CNP

* Update more internal links

* Update internal link for api tests

* DFPL-1412: Add system update user permissions for gatekeeping sealing (#4351)

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Update suppressions list. (#4356)

* DFPL-1400: Add permission for system-update user to see the multiCourts field for task list rendering (#4349)

* Add caseworker-wa-task-configuration to the case states + case type

* DFPL-1395: Add Package script for nightly e2e tests (#4343)

* DFPL-1152: Yarn v3 update

* update outdated packages

* update dependancy check to work around yarn upgrade

* add yarn lock

* switch to immutable from frozen lock file

* yarn lock update

* re-add yarn lock

* set node version

* set node version

* set node version

* DFPL-1152-V2: Yarn V3

* testing gradle task to for node update

* install and swap node version with nvm

* add directory to nvm call

* shift to use yarnBuilder

* remove immutable to allow for lockfile changes

* remove functionals gradle task

* add mocha and set eslint

* remove deprecated mutex flag

* remove dependency check as no longer supported in yarn 3

* add lint UI tests to yarnbuilder

* remove silent call on lint tests

* remove silent call on browser tests + shift smoke test dependency install to jenkins file

* change syntax of functionals script in package

* add dependency install into nightly, remove from gradle tasks

* add debug node module for concepts

* add peer dependencies

* add yarnrc for mocha reporter

* move browser tests to jenkinsfile

* remove test_selector from grep as no longer works with new yarn

* change to after success to prevent longer pipeline times

* change nightly to alwaysAfter and remove branch reference

* DFPL-1395: Add Package script for nightly e2e tests

* add flaky too!

* use http for nightly case service access

* set case service url to use http

* ensure functionals point at AAT

* ensure functionals point at AAT

* DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)

* DFPL-1200: Initial work basket configuration

* DFPL-1200: Updated dft label and add config to search input fields

* DFPL-1200: Added missing courts

* DFPL-1200: Added high court and renamed dfj to dfjArea

* DFPL-1200: Update court transfer flow to add DFJ Area and court info

* DFPL-1200: Added test DFJ Area Court mapping

* DFPL-1200: Updated DFJ Area Court

* DFPL-1200: Fix for HighCourt DFJ

* DFPL-1200: Removed unused variable courtCode

* DFPL-1200: Incorporated code review comments

* DFPL-1200: Rollback implementation

* DFPL-1200: Fixed build issue

* DFPL-1200: adding suppressions

* DFPL-1200: Fixed CaseInitiationController about to submit test

* DFPL-1200: Updated court codes

* DFPL-1200: Adding idam credentials to key vaults

* DFPL-1200: Upgraded java chart version to 4.0.13

* Bumping chart version/ fixing aliases

* Merging in master

* Checkstyle

* Fix dupe permission

* Bumping chart version/ fixing aliases

* Fixing merge conflicts

---------

Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)

This reverts commit 4addc69.

* fix timezone math (#4365)

* Dfpl 1200 revert skip test (#4366)

* fix timezone math

* skip API tests

* add house keep option to final decision detail (#4325)

* Re-enabling functional tests. (#4369)

* DFPL-1336: Remove CTSC feature toggle, always set sending emails to the CTSC on submission (#4269)

* DFPL-1336: Disable the CTSC feature toggle, set always YES on case submission

* DFPL-1336: Set default if all other paths fail to be the CTSC inbox

* checkstyle

* DFPL-1336: Update tests as no longer using LD during case submission

* checkstyle

* DFPL-1336: Remove CTSC feature flag completely

* DFPL-1336: Fix tests to use CTSC as email not null

* DFPL-1336: Revert to using value not enum as CaseData is storing it as a string

* checkstyle

* DFPL-1386 Notification of Document Uploaded- but showing several documents (#4345)

* add log message for debugging

* enhanced log messages

* fix for applicationDocument

* checkstyle

* update checking new document upload logic

* update

* checkstyle

* update test cases

* checkstyle

* checkstyle

* simlpify

* rename

* renaming

* Rename and add back element id to testing data

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Move test case to template

* checkstyle

* fine tuning

* removing unused import

* removed moved test case

* add test case when docs removed. not sending notification to cafcass

* added test case for not sending notification to cafcass when uploaded documents are the same.

* code format

* added test case for not sending notification when confidential change in AnyDocumentUpload

* Fix cafcass hearing further evidence path

* moved test cases to template for sending notification to cafcass when application document upload

* updated

* simplied

* test cases updated

* missing line

* test case's already moved

* updated

* update test cases

* checkstyle

* fix getDocumentInfo

* update respondent statement test cases

* updated. test cases

* suppress CVE-2023-20863

* checkstyle

* checkstyle

* added test case for uploading correspondence.

* checkstyle

* fix test cases without UUID

* remove extra space

* remove debug messages

* Fix test cases

* update assert

* Fix test cases

* remove debug message

* checkstyle fix

* add debug message

* Revert "add debug message"

This reverts commit 353344e.

* confidential documents uploaded by LA restricts access to solicitors only.

* CAFCASS should not be notified when HMCTS admin upload a document.

* checkstyle fix

* Fix the loophole that CAFCASS can access confidential document when HMCTS upload it.

* checkstyle

* remove unused methods

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for additional application

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for C2 additional application

* checkstyle

* rename and tidy up

* confidential issue when uploading court bundle

* simplified

* method renamed

* typo

* Deprecated wrapElementsWithRandomUUID

* simplified the logic

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1325 Enable Consumer Deploy Checks for Pact tests (#4299)

* Update Jenkinsfile_CNP

* test pact test failed

* test pact test failed

* revert testing

* try update CaseAccessDataStoreConsumerTest

* Revert "try update CaseAccessDataStoreConsumerTest"

This reverts commit a353b7b.

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Famil… (#4382)

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Family Court

* remove (new address) wording

* remove 404

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1437 Document removal for data breach on ZW23C50136 (#4375)

* removed done test cases

* Migration script for DFPL-1437

* renamed

* checkstyle fix

* Test case for removeHearingFurtherEvidenceDocuments

* test cases for removeFurtherEvidenceSolicitorDocuments

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1118: Fix case access when swapping solicitors in `children` event (#4037)

* DFPL-1118: Add CaseEventToXYZ ccd configuration for updateRepresentation

* DFPL-1118: Add logging to check if the request has null fields

* DFPL-1118: Fix logging

* DFPL-1118: checkstyle

* DFPL-1118: Log errors + skip tests for speed

* DFPL-1118: Change applyDecision to user version

* Add extraEnvs

* bump ccd chart

* Bumping chart version/ fixing aliases

* Add values copied from civil's successful PR

* TEST Spin up manage org in preview

* Bumping chart version/ fixing aliases

* Add manage org oauth callback

* remove vault access for AAC

* Update AAC url for manage-org

* add xui_mo_webapp to aac in preview

* Revert "remove vault access for AAC"

This reverts commit a2b4d87.

* Update secrets + bump AAC chart version

* case type not jurisdiction id...

* Bumping chart version/ fixing aliases

* change updateRepresentation to be about-to-start

* Update change org request field THEN apply it in another event

* update tests to take into account new update pattern

* update tests to take into account new update pattern

* DFPL-1118: Add tests for about-to-start callback

* Fix checkstyle

* DFPL-1118: Respondent tests

* DFPL-1118: Add child controller test changes

* DFPL-1118: remove unused imports

* DFPL-1118: update NoCServiceTest

* DFPL-1118: Rearrange RespondentController.prepareNewRespondents

* DFPL-1118: Revert rearrange - add caseData conversion so we can replace the OrgPolicy

* Add permission for systemupdate user to modify the policies

* Remove permissions dupes

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1242 - Reverting OrderType:EDUCATION_SUPERVISION_ORDER - Unable to upload documents to case (#4241)

* Fix typo

* Migration script

* checkstyle fix

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1393 INC5501309 Cases getting stuck in gatekeeping (#4361)

* add EventEnablingCondition

* Update GatekeepingListing.json

* update with new behaviour

* fix sdo checking

* DFPL-1455 INC5507506 Unable to return application (#4392)

* DFPL-1455 null check on submittedForm

* Test case

* typo

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* update fpla-docker commit (#4401)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* update fpla-docker (#4402)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)" (#4403)

This reverts commit 32ddeca.

* Dfpl 1310 v2 (#4405)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* Dfpl 1310 v2 (#4406)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix2: Migrate the ordersSolicitor.court

* DFPL-1310-v4: Migrate the orders.court specifically (#4409)

* Grant system update user read permission for orderPreview field. (#4407)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* DFPL-1427: Fix Cafcass gatekeeping notifications (#4371)

* DFPL-1427: Fix Cafcass gatekeeping notifications

* fix translation submitted tests and remove json ignore for casedata function

* remove unused imports

* remove unrequired test changes

* Remove override and replace with standalone function

* Fix tests

* fix respondents updater test mock

* add permissions for court select when making standalone application

* add suppressions

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1401 INC5501195 Manage Cases/CCD Not creating orders (#4384)

* migration script for setting missing relatingLA to NCC

* test case for the migration script

* resolved conflicts

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1451: Migration script to remove the draft order from advocates meeting (#4396)

* DFPL-1451: Migration script to remove the draft order from advocates meeting

* Add new line

* Remove older migrations

* Re-add 1359

* Remove unused imports

* Remove test

* Remove imports

* Update suppressions.

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests (#4391)

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests

* Send array of recipient names

* Send one recipient name per request

* Fix tests

* Fix checkstyle

* Fix more tests

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow (#4380)

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow

* Revert permission changes

* Migration script to remove manageorder temp fields

* Update permissions for manageorders temp fields

* Revert migration changes

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1445: Fix use of old case data/details causing docstore errors (#4373)

* DFPL-1332: Fix use of old case data/details causing docstore errors

* DFPL-1445: Unify permissions for all roles working on behalf of LA

* DFPL-1482: Remove wide-ranging role access to this event (#4422)

* Dfpl 1047 New event for judges to review additional applications (#4394)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1214: Changes to Send/Reply to Message CCD Events (#4119)

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* Update spelling for Legal Adviser

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* DTSPO-13810 reschedule nightlybuilds to start at 8am (#4427)

* DTSPO-13810 reschedule nightlybuilds to start at 8am

* Update Jenkinsfile_nightly

* DFPL-1511 INC5512575 Confidential Document to be removed (#4424)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1501: Document removal (#4423)

* DFPL-1466: Migration to remove incorrect position statement (#4416)

* DFPL-1344 ZE23C50059 draft order emailed to judge instead of uploaded into hearing tab (#4353)

* fix link

* update test

---------

Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* enable review on CYA page (#4370)

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1484 INC5511563 Document removal via hearing documents tab (#4428)

* DFPL-1484 INC5511563 Document removal via hearing documents tab

* test cases

* missing comma

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1435: Update Cafcass England subject line mappings (#4381)

* DFPL-1435: Add noticeOfPlacement + placementApplication to mapping

* DFPL-1435: Add skeleton argument mapping

* DFPL-1435: Remove skeleton argument mapping

* DFPL-1435: Add document type to the DocumentReference

* use the set we just modified!

* Don't sync perftest at the moment

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)

* Dfpl update pact version (#4445)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl update pact version (#4446)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl revert gradle upgrade (#4447)

* Revert "Dfpl update pact version (#4446)"

This reverts commit 74561ae.

* Revert "Dfpl update pact version (#4445)"

This reverts commit e79286e.

* Revert "Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)"

This reverts commit b25b415.

* Revert "Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)"

This reverts commit 9569ad1.

* DFPL-1532: Reading Code incorrect in case progression (#4443)

* Specifying ShowEventNotes so that it is set on all events. (#4450)

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* CFTLib and Gradle Upgrade (#4457)

* Disable functional tests in preview for testing pact step

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
(cherry picked from commit 9569ad1)

* Upgrade pact version

* Upgrade pact version

* Re-enabling functional tests

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* suppress CVE-2023-20883 (#4466)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* DFPL-1445: Remove unnecessary upload as part of send letter implementation (#4436)

* DFPL-1445: Remove unnecessary upload as part of send letter implementation

* Rearrange for checkstyle

* Fix tests

* Fix couple more tests

* Fix tests

* DFPL-1445: Add convertToPdfBytes tests

* schedule 'overnight job' for 2pm in demo

* DFPL-1477 Cafcass receiving multiple notifications (#4451)

* change to async listener for sending email to cafcass

* add retry to cafcass async listener

* fix unit test

* change to async for all notification listener in manageDoc

* fix unit test

* remove unused import

* fix unit test

* remove notification service Retryable

* only retry on EmailFailedSendException

* Dfpl 1447 - 404 errors on downloading docs via CDAM for manage orders (#4474)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* Turning off retry mechanism for manage orders

* Add specific and challenged access for staff roles (#4475)

* DFPL-1528 not populating the Applicant's name when the Applicant isn't a local authority (#4471)

* get first applicant name if no designatedLocalAuthority is found

* add new unit test

* fix check style

* apply changes to all application type

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* DFPL-1200: Add a new case list filters - DFJ Area and court (#4431)

* Revert "Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)"

This reverts commit 47f9054

* Fix fpla-docker pointing at wrong commit

* missing import

* Update MigrateCaseController.java

comma!

* DFPL-1584: Remove blank document from case summary (#4483)

* DFPL-1572: Remove blocker on Cafcass notifications for newly submitted standalones (#4478)

* Remove blocker on Cafcass notifications for newly submitted applications

* checkstyle

* Fix Brighton DFJ court code (#4494)

* DFPL-1529 SDO created but venue didn't pull though to the order (#4484)

* fix previous hearing venue is empty

* fix unit test

* fix checkstyle

* fix check style

* update format

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1571: Change wording on C2 application type (#4488)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Update suppressions list. (#4498)

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* DFPL-1293: Change court name from "Central London County" to "Central Family Court" (#4285)

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Update suppressions list. (#4504)

* DFPL-1589: Add system-update permissions for factorsParenting field (#4486)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* fix labarrister permission (#4499)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-1352: Add migration to set sendToCtsc to true (#4288)

* DFPL-1352: Add migration to set sendToCtsc to true

* Fix merge conflicts

* DFPL-1612: Remove UDO from case (#4506)

* DFPL-1612: Remove UDO from case

* add UUID and remove filename

* change to use substring of 32

* remove unused import

* checkstyle

* checkstyle 2

* checkstyle 3

* add additional test

* fix test to use correct directions order

* Add migration for DFPL-1616

* remove field entirely

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event (#4496)

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event

* DFPL-1533: Revert more event permission changes

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Fix merge conflict issues

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>
Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
AlistairEdwinOsborne added a commit that referenced this pull request Jul 7, 2023
* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* Disabling sync with master for demo while testing wa. (#4344)

* DFPL-1260: Fix no field found error in amend children flow (#4323)

* DFPL-1371: Removal of Doc on PO22C50396 (#4326)

* DFPL-1380: MIgration to reinstate closed case (#4338)

* DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)

* DFPL-1381 Unknown Error when uploading Gatekeeping Order - Judicial Gatekeeping (#4347)

* fix null pointer

* add null checking

* fix unuse import

* fix check style

* DFPL-1378 Warning restriction on gatekeeping is not allowing urgent gatekeeping to be completed (#4334)

* add test case

* allow standalone interim care order

* typo

* allow standalone secure accommodation order

* check style

* allow adding urgent direction to standalone child recovery order.

* Allow access for ICO and EPO

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1249: Update .internal links to .platform links (#4221)

* DFPL-1249: Update internal link in Jenkinsfile_CNP

* Update more internal links

* Update internal link for api tests

* DFPL-1412: Add system update user permissions for gatekeeping sealing (#4351)

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Update suppressions list. (#4356)

* DFPL-1400: Add permission for system-update user to see the multiCourts field for task list rendering (#4349)

* Add caseworker-wa-task-configuration to the case states + case type

* DFPL-1395: Add Package script for nightly e2e tests (#4343)

* DFPL-1152: Yarn v3 update

* update outdated packages

* update dependancy check to work around yarn upgrade

* add yarn lock

* switch to immutable from frozen lock file

* yarn lock update

* re-add yarn lock

* set node version

* set node version

* set node version

* DFPL-1152-V2: Yarn V3

* testing gradle task to for node update

* install and swap node version with nvm

* add directory to nvm call

* shift to use yarnBuilder

* remove immutable to allow for lockfile changes

* remove functionals gradle task

* add mocha and set eslint

* remove deprecated mutex flag

* remove dependency check as no longer supported in yarn 3

* add lint UI tests to yarnbuilder

* remove silent call on lint tests

* remove silent call on browser tests + shift smoke test dependency install to jenkins file

* change syntax of functionals script in package

* add dependency install into nightly, remove from gradle tasks

* add debug node module for concepts

* add peer dependencies

* add yarnrc for mocha reporter

* move browser tests to jenkinsfile

* remove test_selector from grep as no longer works with new yarn

* change to after success to prevent longer pipeline times

* change nightly to alwaysAfter and remove branch reference

* DFPL-1395: Add Package script for nightly e2e tests

* add flaky too!

* use http for nightly case service access

* set case service url to use http

* ensure functionals point at AAT

* ensure functionals point at AAT

* DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)

* DFPL-1200: Initial work basket configuration

* DFPL-1200: Updated dft label and add config to search input fields

* DFPL-1200: Added missing courts

* DFPL-1200: Added high court and renamed dfj to dfjArea

* DFPL-1200: Update court transfer flow to add DFJ Area and court info

* DFPL-1200: Added test DFJ Area Court mapping

* DFPL-1200: Updated DFJ Area Court

* DFPL-1200: Fix for HighCourt DFJ

* DFPL-1200: Removed unused variable courtCode

* DFPL-1200: Incorporated code review comments

* DFPL-1200: Rollback implementation

* DFPL-1200: Fixed build issue

* DFPL-1200: adding suppressions

* DFPL-1200: Fixed CaseInitiationController about to submit test

* DFPL-1200: Updated court codes

* DFPL-1200: Adding idam credentials to key vaults

* DFPL-1200: Upgraded java chart version to 4.0.13

* Bumping chart version/ fixing aliases

* Merging in master

* Checkstyle

* Fix dupe permission

* Bumping chart version/ fixing aliases

* Fixing merge conflicts

---------

Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)

This reverts commit 4addc69.

* fix timezone math (#4365)

* Dfpl 1200 revert skip test (#4366)

* fix timezone math

* skip API tests

* add house keep option to final decision detail (#4325)

* Re-enabling functional tests. (#4369)

* DFPL-1336: Remove CTSC feature toggle, always set sending emails to the CTSC on submission (#4269)

* DFPL-1336: Disable the CTSC feature toggle, set always YES on case submission

* DFPL-1336: Set default if all other paths fail to be the CTSC inbox

* checkstyle

* DFPL-1336: Update tests as no longer using LD during case submission

* checkstyle

* DFPL-1336: Remove CTSC feature flag completely

* DFPL-1336: Fix tests to use CTSC as email not null

* DFPL-1336: Revert to using value not enum as CaseData is storing it as a string

* checkstyle

* DFPL-1386 Notification of Document Uploaded- but showing several documents (#4345)

* add log message for debugging

* enhanced log messages

* fix for applicationDocument

* checkstyle

* update checking new document upload logic

* update

* checkstyle

* update test cases

* checkstyle

* checkstyle

* simlpify

* rename

* renaming

* Rename and add back element id to testing data

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Move test case to template

* checkstyle

* fine tuning

* removing unused import

* removed moved test case

* add test case when docs removed. not sending notification to cafcass

* added test case for not sending notification to cafcass when uploaded documents are the same.

* code format

* added test case for not sending notification when confidential change in AnyDocumentUpload

* Fix cafcass hearing further evidence path

* moved test cases to template for sending notification to cafcass when application document upload

* updated

* simplied

* test cases updated

* missing line

* test case's already moved

* updated

* update test cases

* checkstyle

* fix getDocumentInfo

* update respondent statement test cases

* updated. test cases

* suppress CVE-2023-20863

* checkstyle

* checkstyle

* added test case for uploading correspondence.

* checkstyle

* fix test cases without UUID

* remove extra space

* remove debug messages

* Fix test cases

* update assert

* Fix test cases

* remove debug message

* checkstyle fix

* add debug message

* Revert "add debug message"

This reverts commit 353344e.

* confidential documents uploaded by LA restricts access to solicitors only.

* CAFCASS should not be notified when HMCTS admin upload a document.

* checkstyle fix

* Fix the loophole that CAFCASS can access confidential document when HMCTS upload it.

* checkstyle

* remove unused methods

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for additional application

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for C2 additional application

* checkstyle

* rename and tidy up

* confidential issue when uploading court bundle

* simplified

* method renamed

* typo

* Deprecated wrapElementsWithRandomUUID

* simplified the logic

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1325 Enable Consumer Deploy Checks for Pact tests (#4299)

* Update Jenkinsfile_CNP

* test pact test failed

* test pact test failed

* revert testing

* try update CaseAccessDataStoreConsumerTest

* Revert "try update CaseAccessDataStoreConsumerTest"

This reverts commit a353b7b.

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Famil… (#4382)

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Family Court

* remove (new address) wording

* remove 404

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1437 Document removal for data breach on ZW23C50136 (#4375)

* removed done test cases

* Migration script for DFPL-1437

* renamed

* checkstyle fix

* Test case for removeHearingFurtherEvidenceDocuments

* test cases for removeFurtherEvidenceSolicitorDocuments

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1118: Fix case access when swapping solicitors in `children` event (#4037)

* DFPL-1118: Add CaseEventToXYZ ccd configuration for updateRepresentation

* DFPL-1118: Add logging to check if the request has null fields

* DFPL-1118: Fix logging

* DFPL-1118: checkstyle

* DFPL-1118: Log errors + skip tests for speed

* DFPL-1118: Change applyDecision to user version

* Add extraEnvs

* bump ccd chart

* Bumping chart version/ fixing aliases

* Add values copied from civil's successful PR

* TEST Spin up manage org in preview

* Bumping chart version/ fixing aliases

* Add manage org oauth callback

* remove vault access for AAC

* Update AAC url for manage-org

* add xui_mo_webapp to aac in preview

* Revert "remove vault access for AAC"

This reverts commit a2b4d87.

* Update secrets + bump AAC chart version

* case type not jurisdiction id...

* Bumping chart version/ fixing aliases

* change updateRepresentation to be about-to-start

* Update change org request field THEN apply it in another event

* update tests to take into account new update pattern

* update tests to take into account new update pattern

* DFPL-1118: Add tests for about-to-start callback

* Fix checkstyle

* DFPL-1118: Respondent tests

* DFPL-1118: Add child controller test changes

* DFPL-1118: remove unused imports

* DFPL-1118: update NoCServiceTest

* DFPL-1118: Rearrange RespondentController.prepareNewRespondents

* DFPL-1118: Revert rearrange - add caseData conversion so we can replace the OrgPolicy

* Add permission for systemupdate user to modify the policies

* Remove permissions dupes

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1242 - Reverting OrderType:EDUCATION_SUPERVISION_ORDER - Unable to upload documents to case (#4241)

* Fix typo

* Migration script

* checkstyle fix

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1393 INC5501309 Cases getting stuck in gatekeeping (#4361)

* add EventEnablingCondition

* Update GatekeepingListing.json

* update with new behaviour

* fix sdo checking

* DFPL-1455 INC5507506 Unable to return application (#4392)

* DFPL-1455 null check on submittedForm

* Test case

* typo

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* update fpla-docker commit (#4401)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* update fpla-docker (#4402)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)" (#4403)

This reverts commit 32ddeca.

* Dfpl 1310 v2 (#4405)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* Dfpl 1310 v2 (#4406)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix2: Migrate the ordersSolicitor.court

* DFPL-1310-v4: Migrate the orders.court specifically (#4409)

* Grant system update user read permission for orderPreview field. (#4407)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* DFPL-1427: Fix Cafcass gatekeeping notifications (#4371)

* DFPL-1427: Fix Cafcass gatekeeping notifications

* fix translation submitted tests and remove json ignore for casedata function

* remove unused imports

* remove unrequired test changes

* Remove override and replace with standalone function

* Fix tests

* fix respondents updater test mock

* add permissions for court select when making standalone application

* add suppressions

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1401 INC5501195 Manage Cases/CCD Not creating orders (#4384)

* migration script for setting missing relatingLA to NCC

* test case for the migration script

* resolved conflicts

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1451: Migration script to remove the draft order from advocates meeting (#4396)

* DFPL-1451: Migration script to remove the draft order from advocates meeting

* Add new line

* Remove older migrations

* Re-add 1359

* Remove unused imports

* Remove test

* Remove imports

* Update suppressions.

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests (#4391)

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests

* Send array of recipient names

* Send one recipient name per request

* Fix tests

* Fix checkstyle

* Fix more tests

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow (#4380)

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow

* Revert permission changes

* Migration script to remove manageorder temp fields

* Update permissions for manageorders temp fields

* Revert migration changes

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1445: Fix use of old case data/details causing docstore errors (#4373)

* DFPL-1332: Fix use of old case data/details causing docstore errors

* DFPL-1445: Unify permissions for all roles working on behalf of LA

* DFPL-1482: Remove wide-ranging role access to this event (#4422)

* Dfpl 1047 New event for judges to review additional applications (#4394)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1214: Changes to Send/Reply to Message CCD Events (#4119)

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* Update spelling for Legal Adviser

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* DTSPO-13810 reschedule nightlybuilds to start at 8am (#4427)

* DTSPO-13810 reschedule nightlybuilds to start at 8am

* Update Jenkinsfile_nightly

* DFPL-1511 INC5512575 Confidential Document to be removed (#4424)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1501: Document removal (#4423)

* DFPL-1466: Migration to remove incorrect position statement (#4416)

* DFPL-1344 ZE23C50059 draft order emailed to judge instead of uploaded into hearing tab (#4353)

* fix link

* update test

---------

Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* enable review on CYA page (#4370)

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1484 INC5511563 Document removal via hearing documents tab (#4428)

* DFPL-1484 INC5511563 Document removal via hearing documents tab

* test cases

* missing comma

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1435: Update Cafcass England subject line mappings (#4381)

* DFPL-1435: Add noticeOfPlacement + placementApplication to mapping

* DFPL-1435: Add skeleton argument mapping

* DFPL-1435: Remove skeleton argument mapping

* DFPL-1435: Add document type to the DocumentReference

* use the set we just modified!

* Don't sync perftest at the moment

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)

* Dfpl update pact version (#4445)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl update pact version (#4446)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl revert gradle upgrade (#4447)

* Revert "Dfpl update pact version (#4446)"

This reverts commit 74561ae.

* Revert "Dfpl update pact version (#4445)"

This reverts commit e79286e.

* Revert "Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)"

This reverts commit b25b415.

* Revert "Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)"

This reverts commit 9569ad1.

* DFPL-1532: Reading Code incorrect in case progression (#4443)

* Specifying ShowEventNotes so that it is set on all events. (#4450)

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* CFTLib and Gradle Upgrade (#4457)

* Disable functional tests in preview for testing pact step

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
(cherry picked from commit 9569ad1)

* Upgrade pact version

* Upgrade pact version

* Re-enabling functional tests

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* suppress CVE-2023-20883 (#4466)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* DFPL-1445: Remove unnecessary upload as part of send letter implementation (#4436)

* DFPL-1445: Remove unnecessary upload as part of send letter implementation

* Rearrange for checkstyle

* Fix tests

* Fix couple more tests

* Fix tests

* DFPL-1445: Add convertToPdfBytes tests

* schedule 'overnight job' for 2pm in demo

* DFPL-1477 Cafcass receiving multiple notifications (#4451)

* change to async listener for sending email to cafcass

* add retry to cafcass async listener

* fix unit test

* change to async for all notification listener in manageDoc

* fix unit test

* remove unused import

* fix unit test

* remove notification service Retryable

* only retry on EmailFailedSendException

* Dfpl 1447 - 404 errors on downloading docs via CDAM for manage orders (#4474)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* Turning off retry mechanism for manage orders

* Add specific and challenged access for staff roles (#4475)

* DFPL-1528 not populating the Applicant's name when the Applicant isn't a local authority (#4471)

* get first applicant name if no designatedLocalAuthority is found

* add new unit test

* fix check style

* apply changes to all application type

* Upgrading app insights to v3 and upgrading to java 17.

* Fix failing tests

* Update app insights terraform.

* Updating Dockerfile

* remove duplicate reviewAdditionalApplication

* DFPL-1200: Add a new case list filters - DFJ Area and court (#4431)

* Revert "Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)"

This reverts commit 47f9054

* Fix fpla-docker pointing at wrong commit

* missing import

* Update MigrateCaseController.java

comma!

* DFPL-1584: Remove blank document from case summary (#4483)

* DFPL-1572: Remove blocker on Cafcass notifications for newly submitted standalones (#4478)

* Remove blocker on Cafcass notifications for newly submitted applications

* checkstyle

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Fix Brighton DFJ court code (#4494)

* DFPL-1529 SDO created but venue didn't pull though to the order (#4484)

* fix previous hearing venue is empty

* fix unit test

* fix checkstyle

* fix check style

* update format

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* DFPL-1571: Change wording on C2 application type (#4488)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Update suppressions list. (#4498)

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* DFPL-1293: Change court name from "Central London County" to "Central Family Court" (#4285)

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Update suppressions list. (#4504)

* DFPL-1589: Add system-update permissions for factorsParenting field (#4486)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* fix labarrister permission (#4499)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Disable ithc sync with prod

* DFPL-1352: Add migration to set sendToCtsc to true (#4288)

* DFPL-1352: Add migration to set sendToCtsc to true

* Fix merge conflicts

* DFPL-1612: Remove UDO from case (#4506)

* DFPL-1612: Remove UDO from case

* add UUID and remove filename

* change to use substring of 32

* remove unused import

* checkstyle

* checkstyle 2

* checkstyle 3

* add additional test

* fix test to use correct directions order

* Add migration for DFPL-1616

* remove field entirely

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event (#4496)

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event

* DFPL-1533: Revert more event permission changes

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Fix merge conflict issues

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>
Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
AlistairEdwinOsborne added a commit that referenced this pull request Jul 13, 2023
* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* Disabling sync with master for demo while testing wa. (#4344)

* DFPL-1260: Fix no field found error in amend children flow (#4323)

* DFPL-1371: Removal of Doc on PO22C50396 (#4326)

* DFPL-1380: MIgration to reinstate closed case (#4338)

* DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)

* DFPL-1381 Unknown Error when uploading Gatekeeping Order - Judicial Gatekeeping (#4347)

* fix null pointer

* add null checking

* fix unuse import

* fix check style

* DFPL-1378 Warning restriction on gatekeeping is not allowing urgent gatekeeping to be completed (#4334)

* add test case

* allow standalone interim care order

* typo

* allow standalone secure accommodation order

* check style

* allow adding urgent direction to standalone child recovery order.

* Allow access for ICO and EPO

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1249: Update .internal links to .platform links (#4221)

* DFPL-1249: Update internal link in Jenkinsfile_CNP

* Update more internal links

* Update internal link for api tests

* DFPL-1412: Add system update user permissions for gatekeeping sealing (#4351)

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Update suppressions list. (#4356)

* DFPL-1400: Add permission for system-update user to see the multiCourts field for task list rendering (#4349)

* Add caseworker-wa-task-configuration to the case states + case type

* DFPL-1395: Add Package script for nightly e2e tests (#4343)

* DFPL-1152: Yarn v3 update

* update outdated packages

* update dependancy check to work around yarn upgrade

* add yarn lock

* switch to immutable from frozen lock file

* yarn lock update

* re-add yarn lock

* set node version

* set node version

* set node version

* DFPL-1152-V2: Yarn V3

* testing gradle task to for node update

* install and swap node version with nvm

* add directory to nvm call

* shift to use yarnBuilder

* remove immutable to allow for lockfile changes

* remove functionals gradle task

* add mocha and set eslint

* remove deprecated mutex flag

* remove dependency check as no longer supported in yarn 3

* add lint UI tests to yarnbuilder

* remove silent call on lint tests

* remove silent call on browser tests + shift smoke test dependency install to jenkins file

* change syntax of functionals script in package

* add dependency install into nightly, remove from gradle tasks

* add debug node module for concepts

* add peer dependencies

* add yarnrc for mocha reporter

* move browser tests to jenkinsfile

* remove test_selector from grep as no longer works with new yarn

* change to after success to prevent longer pipeline times

* change nightly to alwaysAfter and remove branch reference

* DFPL-1395: Add Package script for nightly e2e tests

* add flaky too!

* use http for nightly case service access

* set case service url to use http

* ensure functionals point at AAT

* ensure functionals point at AAT

* DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)

* DFPL-1200: Initial work basket configuration

* DFPL-1200: Updated dft label and add config to search input fields

* DFPL-1200: Added missing courts

* DFPL-1200: Added high court and renamed dfj to dfjArea

* DFPL-1200: Update court transfer flow to add DFJ Area and court info

* DFPL-1200: Added test DFJ Area Court mapping

* DFPL-1200: Updated DFJ Area Court

* DFPL-1200: Fix for HighCourt DFJ

* DFPL-1200: Removed unused variable courtCode

* DFPL-1200: Incorporated code review comments

* DFPL-1200: Rollback implementation

* DFPL-1200: Fixed build issue

* DFPL-1200: adding suppressions

* DFPL-1200: Fixed CaseInitiationController about to submit test

* DFPL-1200: Updated court codes

* DFPL-1200: Adding idam credentials to key vaults

* DFPL-1200: Upgraded java chart version to 4.0.13

* Bumping chart version/ fixing aliases

* Merging in master

* Checkstyle

* Fix dupe permission

* Bumping chart version/ fixing aliases

* Fixing merge conflicts

---------

Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)

This reverts commit 4addc69.

* fix timezone math (#4365)

* Dfpl 1200 revert skip test (#4366)

* fix timezone math

* skip API tests

* add house keep option to final decision detail (#4325)

* Re-enabling functional tests. (#4369)

* DFPL-1336: Remove CTSC feature toggle, always set sending emails to the CTSC on submission (#4269)

* DFPL-1336: Disable the CTSC feature toggle, set always YES on case submission

* DFPL-1336: Set default if all other paths fail to be the CTSC inbox

* checkstyle

* DFPL-1336: Update tests as no longer using LD during case submission

* checkstyle

* DFPL-1336: Remove CTSC feature flag completely

* DFPL-1336: Fix tests to use CTSC as email not null

* DFPL-1336: Revert to using value not enum as CaseData is storing it as a string

* checkstyle

* DFPL-1386 Notification of Document Uploaded- but showing several documents (#4345)

* add log message for debugging

* enhanced log messages

* fix for applicationDocument

* checkstyle

* update checking new document upload logic

* update

* checkstyle

* update test cases

* checkstyle

* checkstyle

* simlpify

* rename

* renaming

* Rename and add back element id to testing data

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Rename to CAFCASS_REPRESENTATIVE to make it clearly.

* Move test case to template

* checkstyle

* fine tuning

* removing unused import

* removed moved test case

* add test case when docs removed. not sending notification to cafcass

* added test case for not sending notification to cafcass when uploaded documents are the same.

* code format

* added test case for not sending notification when confidential change in AnyDocumentUpload

* Fix cafcass hearing further evidence path

* moved test cases to template for sending notification to cafcass when application document upload

* updated

* simplied

* test cases updated

* missing line

* test case's already moved

* updated

* update test cases

* checkstyle

* fix getDocumentInfo

* update respondent statement test cases

* updated. test cases

* suppress CVE-2023-20863

* checkstyle

* checkstyle

* added test case for uploading correspondence.

* checkstyle

* fix test cases without UUID

* remove extra space

* remove debug messages

* Fix test cases

* update assert

* Fix test cases

* remove debug message

* checkstyle fix

* add debug message

* Revert "add debug message"

This reverts commit 353344e.

* confidential documents uploaded by LA restricts access to solicitors only.

* CAFCASS should not be notified when HMCTS admin upload a document.

* checkstyle fix

* Fix the loophole that CAFCASS can access confidential document when HMCTS upload it.

* checkstyle

* remove unused methods

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for additional application

* Fix Cafcass getting notification when HMCTS uploads a confidential documents for C2 additional application

* checkstyle

* rename and tidy up

* confidential issue when uploading court bundle

* simplified

* method renamed

* typo

* Deprecated wrapElementsWithRandomUUID

* simplified the logic

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1325 Enable Consumer Deploy Checks for Pact tests (#4299)

* Update Jenkinsfile_CNP

* test pact test failed

* test pact test failed

* revert testing

* try update CaseAccessDataStoreConsumerTest

* Revert "try update CaseAccessDataStoreConsumerTest"

This reverts commit a353b7b.

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Famil… (#4382)

* DFPL-1450 INC5505842 Court Address Amendment - Watford County & Family Court

* remove (new address) wording

* remove 404

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1437 Document removal for data breach on ZW23C50136 (#4375)

* removed done test cases

* Migration script for DFPL-1437

* renamed

* checkstyle fix

* Test case for removeHearingFurtherEvidenceDocuments

* test cases for removeFurtherEvidenceSolicitorDocuments

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1118: Fix case access when swapping solicitors in `children` event (#4037)

* DFPL-1118: Add CaseEventToXYZ ccd configuration for updateRepresentation

* DFPL-1118: Add logging to check if the request has null fields

* DFPL-1118: Fix logging

* DFPL-1118: checkstyle

* DFPL-1118: Log errors + skip tests for speed

* DFPL-1118: Change applyDecision to user version

* Add extraEnvs

* bump ccd chart

* Bumping chart version/ fixing aliases

* Add values copied from civil's successful PR

* TEST Spin up manage org in preview

* Bumping chart version/ fixing aliases

* Add manage org oauth callback

* remove vault access for AAC

* Update AAC url for manage-org

* add xui_mo_webapp to aac in preview

* Revert "remove vault access for AAC"

This reverts commit a2b4d87.

* Update secrets + bump AAC chart version

* case type not jurisdiction id...

* Bumping chart version/ fixing aliases

* change updateRepresentation to be about-to-start

* Update change org request field THEN apply it in another event

* update tests to take into account new update pattern

* update tests to take into account new update pattern

* DFPL-1118: Add tests for about-to-start callback

* Fix checkstyle

* DFPL-1118: Respondent tests

* DFPL-1118: Add child controller test changes

* DFPL-1118: remove unused imports

* DFPL-1118: update NoCServiceTest

* DFPL-1118: Rearrange RespondentController.prepareNewRespondents

* DFPL-1118: Revert rearrange - add caseData conversion so we can replace the OrgPolicy

* Add permission for systemupdate user to modify the policies

* Remove permissions dupes

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1242 - Reverting OrderType:EDUCATION_SUPERVISION_ORDER - Unable to upload documents to case (#4241)

* Fix typo

* Migration script

* checkstyle fix

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1393 INC5501309 Cases getting stuck in gatekeeping (#4361)

* add EventEnablingCondition

* Update GatekeepingListing.json

* update with new behaviour

* fix sdo checking

* DFPL-1455 INC5507506 Unable to return application (#4392)

* DFPL-1455 null check on submittedForm

* Test case

* typo

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* update fpla-docker commit (#4401)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* update fpla-docker (#4402)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)" (#4403)

This reverts commit 32ddeca.

* Dfpl 1310 v2 (#4405)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* Dfpl 1310 v2 (#4406)

* Revert "DFPL-1310-rollback: Rollback CCD changes for court value as has to happen concurrently with a migration (#4350)"

This reverts commit 32ddeca.

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix: Migrate the orders.court

* DFPL-1310-fix2: Migrate the ordersSolicitor.court

* DFPL-1310-v4: Migrate the orders.court specifically (#4409)

* Grant system update user read permission for orderPreview field. (#4407)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* DFPL-1427: Fix Cafcass gatekeeping notifications (#4371)

* DFPL-1427: Fix Cafcass gatekeeping notifications

* fix translation submitted tests and remove json ignore for casedata function

* remove unused imports

* remove unrequired test changes

* Remove override and replace with standalone function

* Fix tests

* fix respondents updater test mock

* add permissions for court select when making standalone application

* add suppressions

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1401 INC5501195 Manage Cases/CCD Not creating orders (#4384)

* migration script for setting missing relatingLA to NCC

* test case for the migration script

* resolved conflicts

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1451: Migration script to remove the draft order from advocates meeting (#4396)

* DFPL-1451: Migration script to remove the draft order from advocates meeting

* Add new line

* Remove older migrations

* Re-add 1359

* Remove unused imports

* Remove test

* Remove imports

* Update suppressions.

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests (#4391)

* DFPL-1414: Fix issue of Bulk Print receiving duplicated requests

* Send array of recipient names

* Send one recipient name per request

* Fix tests

* Fix checkstyle

* Fix more tests

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow (#4380)

* DFPL-1390: Update permissions to fix 'no field found' error in ManageOrders flow

* Revert permission changes

* Migration script to remove manageorder temp fields

* Update permissions for manageorders temp fields

* Revert migration changes

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1445: Fix use of old case data/details causing docstore errors (#4373)

* DFPL-1332: Fix use of old case data/details causing docstore errors

* DFPL-1445: Unify permissions for all roles working on behalf of LA

* DFPL-1482: Remove wide-ranging role access to this event (#4422)

* Dfpl 1047 New event for judges to review additional applications (#4394)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1214: Changes to Send/Reply to Message CCD Events (#4119)

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* Update spelling for Legal Adviser

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* DTSPO-13810 reschedule nightlybuilds to start at 8am (#4427)

* DTSPO-13810 reschedule nightlybuilds to start at 8am

* Update Jenkinsfile_nightly

* DFPL-1511 INC5512575 Confidential Document to be removed (#4424)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1501: Document removal (#4423)

* DFPL-1466: Migration to remove incorrect position statement (#4416)

* DFPL-1344 ZE23C50059 draft order emailed to judge instead of uploaded into hearing tab (#4353)

* fix link

* update test

---------

Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* enable review on CYA page (#4370)

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1484 INC5511563 Document removal via hearing documents tab (#4428)

* DFPL-1484 INC5511563 Document removal via hearing documents tab

* test cases

* missing comma

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1435: Update Cafcass England subject line mappings (#4381)

* DFPL-1435: Add noticeOfPlacement + placementApplication to mapping

* DFPL-1435: Add skeleton argument mapping

* DFPL-1435: Remove skeleton argument mapping

* DFPL-1435: Add document type to the DocumentReference

* use the set we just modified!

* Don't sync perftest at the moment

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)

* Dfpl update pact version (#4445)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl update pact version (#4446)

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Upgrading pact version to fix annotation issue following gradle upgrade.

* Dfpl revert gradle upgrade (#4447)

* Revert "Dfpl update pact version (#4446)"

This reverts commit 74561ae.

* Revert "Dfpl update pact version (#4445)"

This reverts commit e79286e.

* Revert "Upgrading pact version to fix annotation issue following gradle upgrade. (#4444)"

This reverts commit b25b415.

* Revert "Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)"

This reverts commit 9569ad1.

* DFPL-1532: Reading Code incorrect in case progression (#4443)

* Specifying ShowEventNotes so that it is set on all events. (#4450)

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* CFTLib and Gradle Upgrade (#4457)

* Disable functional tests in preview for testing pact step

* Update Gradle to 7.6.1 (+ build.gradle changes), update cftlib to 0.19.693 (#4080)

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* fix merge conflict

* DFPL-1134: make hearingTypeDetails optional/visible in listing event

* DFPL-1408: fix integration test issue

* DFPL-1408: tidy up to fix functional tests

* DFPL-1408: bump the version to 7.6.1

---------

Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
(cherry picked from commit 9569ad1)

* Upgrade pact version

* Upgrade pact version

* Re-enabling functional tests

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* suppress CVE-2023-20883 (#4466)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* DFPL-1445: Remove unnecessary upload as part of send letter implementation (#4436)

* DFPL-1445: Remove unnecessary upload as part of send letter implementation

* Rearrange for checkstyle

* Fix tests

* Fix couple more tests

* Fix tests

* DFPL-1445: Add convertToPdfBytes tests

* schedule 'overnight job' for 2pm in demo

* DFPL-1477 Cafcass receiving multiple notifications (#4451)

* change to async listener for sending email to cafcass

* add retry to cafcass async listener

* fix unit test

* change to async for all notification listener in manageDoc

* fix unit test

* remove unused import

* fix unit test

* remove notification service Retryable

* only retry on EmailFailedSendException

* Dfpl 1447 - 404 errors on downloading docs via CDAM for manage orders (#4474)

* Grant system update user read permission for orderPreview field.

* Log when order has been manually uploaded for a case.

* Turning off retry mechanism for manage orders

* Add specific and challenged access for staff roles (#4475)

* DFPL-1528 not populating the Applicant's name when the Applicant isn't a local authority (#4471)

* get first applicant name if no designatedLocalAuthority is found

* add new unit test

* fix check style

* apply changes to all application type

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* DFPL-1200: Add a new case list filters - DFJ Area and court (#4431)

* Revert "Revert "DFPL-1200: Add a new case list filters - DFJ Area and Court (#4342)" (#4364)"

This reverts commit 47f9054

* Fix fpla-docker pointing at wrong commit

* missing import

* Update MigrateCaseController.java

comma!

* DFPL-1584: Remove blank document from case summary (#4483)

* DFPL-1572: Remove blocker on Cafcass notifications for newly submitted standalones (#4478)

* Remove blocker on Cafcass notifications for newly submitted applications

* checkstyle

* Fix Brighton DFJ court code (#4494)

* DFPL-1529 SDO created but venue didn't pull though to the order (#4484)

* fix previous hearing venue is empty

* fix unit test

* fix checkstyle

* fix check style

* update format

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1571: Change wording on C2 application type (#4488)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* Update suppressions list. (#4498)

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* DFPL-1293: Change court name from "Central London County" to "Central Family Court" (#4285)

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>

* Update suppressions list. (#4504)

* DFPL-1589: Add system-update permissions for factorsParenting field (#4486)

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* fix labarrister permission (#4499)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-1352: Add migration to set sendToCtsc to true (#4288)

* DFPL-1352: Add migration to set sendToCtsc to true

* Fix merge conflicts

* DFPL-1612: Remove UDO from case (#4506)

* DFPL-1612: Remove UDO from case

* add UUID and remove filename

* change to use substring of 32

* remove unused import

* checkstyle

* checkstyle 2

* checkstyle 3

* add additional test

* fix test to use correct directions order

* Add migration for DFPL-1616

* remove field entirely

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event (#4496)

* DFPL-1533: Remove generic solicitor IDAM role from accessing non-LA event

* DFPL-1533: Revert more event permission changes

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Fix merge conflict issues

* DFPL-702 Global search Migration (#3737)

* DPFL-779 Reduce number of case data fields

* DFPL-779 fix lombok bug with jsonunwrapped

* remove commented code

* DFPL-702 Global Search

* Remove caseNamePublic and caseNameHmctsRestricted. Set caseManagementCategory.

* Set supplementary data in migration script

* remove comments

* update region_id and epimmsid to court

* missing cardiff

* migrating caseManagementLocation

* update test

* missing ccd configuration for new fields

* GlobalSearchMigrationAPITest

* update court to caseManagementLocation

* missing required court JSON

* method renamed

* remove GlobalSearchMigrationApiTest and test case fine tuning

* Fixing checkstyle

* revert

* update submodule commit

* revert

* rollback

* remove caseNameHmctsRestricted and caseNamePublic

* update migration script to use orders.court before outer court.

* Add missing roles defined in CaseRoles.json

* resolve merge conflicts

* checkstyle fix

* fixing checkstyle

* Fix test cases

* check null

* Duplicated MockBean for CoreCaseDataApiV2

* checkstyle fix

* Fix wrongly merged

* Change to caseTypeID

* Fix test case

* update constants according to changed configuration

* bypass the internal error

* linked to fpla-docker branch DFPL-702

* skip test

* update migration script after resolving conflicts

* update after resolving conflicts

* add back test case 985

* method relocation

* update method position

* resolving conflicts

* resolving conflicts

* checkstyle issue

* checkstyle issue

* checkstyle

* checkstyle issue

* update fpla-docker subproject commit

* revert for global search migration

* rollback script for the migration script

* add back SearchCriteria.json and SearchParty.json

* Changes for code review

* Remove fields not set to null

* fix tests

* fix checkstyle

* Use latest 'fpla-docker'

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: chak-shing-lo-justice <ChakShing.Lo@justice.gov.uk>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1372-AppInsights: App insights upgrade

* Bumping chart version/ fixing aliases

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117.

* remove unused files

* fix merge conflict errors in migratecasecontroller and tests

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: SomeshRA <somesh.acharya1@hmcts.net>
Co-authored-by: SomeshRA <69344273+SomeshRA@users.noreply.github.com>
Co-authored-by: Tom Elliott <tomlaelliott@gmail.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: mokainos <72137340+mokainos@users.noreply.github.com>
Co-authored-by: taleb <tech@benouaer.com>
Co-authored-by: taleb <20416858+benouaer@users.noreply.github.com>
Co-authored-by: chak-shing-lo-justice <ChakShing.Lo@justice.gov.uk>
DanCatchpole added a commit that referenced this pull request Oct 30, 2023
* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Add caseworker-wa-task-configuration to the case states + case type

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* Update suppressions.

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* schedule 'overnight job' for 2pm in demo

* Add specific and challenged access for staff roles (#4475)

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* Fix merge conflict issues

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117.

* Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks

* Remove test for post submit callback if we're removing it

* checkstyle

* Revert "checkstyle"

This reverts commit 542e85a.

* Revert "Remove test for post submit callback if we're removing it"

This reverts commit abdfb39.

* Revert "Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks"

This reverts commit b538af6.

* Revert possible regression

* Code changes + toggle off event ready for release

* Revert "Revert possible regression"

This reverts commit 10ec15a.

* checkstyle

* fix test clash

* fix dupe RoleToAccessProfile

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* fix checkstyle

* Refactor + move duped code into JudicialService

* add elinks header

* merge issue

* Revert JRD Header

* DISABLE Outstanding orders overnight job

* DISABLE publishing events/fields

* Add superuser IDAM AccessProfile

* Add WA user + global search access profile for preview

* bump xui-webapp chart

* Bumping chart version/ fixing aliases

* Enable test logging

* Revert "Enable test logging"

This reverts commit a6fffb0.

---------

Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
ptrelease added a commit that referenced this pull request Oct 31, 2023
* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Add caseworker-wa-task-configuration to the case states + case type

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* Update suppressions.

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* schedule 'overnight job' for 2pm in demo

* Add specific and challenged access for staff roles (#4475)

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* Fix merge conflict issues

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117.

* Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks

* Remove test for post submit callback if we're removing it

* checkstyle

* Revert "checkstyle"

This reverts commit 542e85a.

* Revert "Remove test for post submit callback if we're removing it"

This reverts commit abdfb39.

* Revert "Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks"

This reverts commit b538af6.

* Revert possible regression

* Code changes + toggle off event ready for release

* Revert "Revert possible regression"

This reverts commit 10ec15a.

* checkstyle

* fix test clash

* fix dupe RoleToAccessProfile

* DFPL-1565: Update permission for CAA for to fix NoC issues (#4734)

* DFPL-1774 update migration script (#4726)

* DFPL-1774 update migration script

* fix check style

* resolve duplicateed code after merge

* fix check style

* Remove mentions of old MI (#4736)

* DFPL-1739: Update case ID for migration (#4738)

* update migration script (#4721)

* FPL - Remove references to fpla-docker ready for removal of sub module (#4737)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* Fpl remove fpla docker part2 (#4740)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* DFPL-1782 INC5551908 Document removal from Manage Cases - MA23C50115 (#4739)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* fortify release id change (#4742)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1650 Placement order is incorrect and doesn't reflect the standa… (#4670)

* DFPL-1650 Placement order is incorrect and doesn't reflect the standard template order

* Rename the template file to V2.

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-1706 INC5537892 Submitted dates of draft orders changed when new order is uploaded (#4666)

* fix submitted time

* fix date sent

* remove extra blank line

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* fortify fixes (#4744)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Fortify fixes2 (#4745)

* fortify fixes

* fortify fixes

* fortify fixes

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1793 INC5552381 solicitor unable to action NOC function (#4747)

* DFPL-1793 INC5552381 solicitor unable to action NOC function

* removed unused code

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Bump get-func-name from 2.0.0 to 2.0.2 (#4722)

Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases)
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2)

---
updated-dependencies:
- dependency-name: get-func-name
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>

* bump old Java chart to latest (#4750)

* bump old Java chart to latest

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Security scan variable renamed (#4748)

* fortify fixes

* fortify fixes

* fortify fixes

* Security rules variable renamed

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* FPL - Remove and clean up unused script (#4749)

* FPL - Remove unused script

This script was once used for local docker development.

We have since moved to the CFTLib and cloud based AAT services
for our dependencies. This script can now be removed.

* Clean up more unused and out of date scripts

* remove wait script instead of commenting

* DFPL-1788 INC5552038 - A Judicial Email needs to be removed due to a data issue - SA23C50178 (#4753)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1804 (#4759)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent (#4760)

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent

* remove method

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1646 gatekeeping listing event is incorrectly sending hearing notifications to unrepresented parties (#4544)

* fix gatekeeping hearing noti

* fix unit test

* fix unit test

* fix unit test

* fix 409 error when sending gatekeeping order

* remove unused import

* DFPL-1810 INC5554170 - Document needs removing from wrong case (#4764)

* DFPL-1810 INC5554170 - Document needs removing from wrong case

* update case id

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* Nightly dev (#4765)

* FullfunctionalTestinNightlyBuild

* FullfunctionalTestinNightlyBuild

* BumpNode

* BumpNode

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* nightly dev update

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* FixAdminOrderTests

* fortify release id change

* fortify release id change

* fortify fixes

* fortify fixes

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* fortify deactivated as it is running unnecessarily with master nightly build

* updating pitest for mutation tests to run in nightly (#4761)

* turn off cross browser

* turn off cross browser

* added security.sh file to fix pipeline

* removing security.sh file to fix pipeline

* turning off mutation tests temp

* removing OWASP as has been replaced with Fortify

* Full functional test results report

* minor fix

* minor fix

---------

Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>

* Update Yarn to v3.6.4 (#4768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @babel/core to v7.23.2 (#4769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix regression

* Update dependency codeceptjs to v3.5.6 (#4771)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix checkstyle

* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.15.3 (#4773)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Refactor + move duped code into JudicialService

* DFPL-1783 : Dependencies update and suppressions removed (#4762)

* add elinks header

* Update Helm release ccd-case-document-am-api to v1.7.13 (#4777)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency gradle to v7.6.3 (#4778)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.tomcat.embed:tomcat-embed-core to v9.0.82 (#4779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1594: Add "on behalf of <Additional App applicant>" (#4729)

* DFPL-1594: Add "on behalf of <Additional App applicant>"

* Add applicant name to tests

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Add some tests around the additional apps bundle

* Update dependency org.apache.tomcat.embed:tomcat-embed-websocket to v9.0.82 (#4781)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Quartz fix after depedency update (#4780)

* DFPL-1651 Placement Blank Order (#4732)

* DFPL-1651 Placement Blank Order

* updated

* checkstyle and renaming

* Fixing test cases

* add test case for A81_PLACEMNT_BLANK_ORDER

* fix unit test

* add a unit test

* fix test case

* Remove unused method

* checkstyle

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* suppress CVE-2023-5072 (#4784)

* Update dependency org.pitest:pitest to v1.15.1 (#4782)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1627 Cafcass not receiving notice of hearing (#4543)

* fix sending notice of hearing for gatekeeping hearing

* fix unit test

* rename confusing method sendNoticeOfHearing()

---------

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1561: Release search box flow changes (#4770)

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* Refactor + move duped code into JudicialService

* fix checkstyle

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.842 (#4786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azuread to v2.44.0 (#4787)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azurerm to v3.77.0 (#4788)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.google.guava:guava to v32.1.3-jre (#4789)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1735: Fix issue with cached placement data (#4719)

* amended PlacementController and PlacementNoticeController to avoid storing working placement data in CCD.  And changing these controllers so their about-to-start cleared any working placement data they encountered

* DFPL-1735: Fix issue with cached placement data
Placement event caches data in CCD and when placement notice of hearing
or Placement event runs again, this data is populated for that particular
event and copies the notice event data and application from previously
submitted event into the current event. This PR fixes the issue to make sure
that when event runs, there is no data pre populated from previously submitted
placements.

* DFPL-1735: Fix checkstyle

* DFPL-1735: Introduce constant

* DFPL-1735: Fix CVE-2023-34047

* DFPL-1735: Fix CVE-2023-34047

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>

* Update dependency commons-io:commons-io to v2.14.0 (#4790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1723 Leftover in case data after updating respondent address (#4667)

* fix respondent address leftover issue

* remove address leftover

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1828: Add pattern matching for Judge Titles

* DFPL-1828: Enable elinks API integration header

* DFPL-1828: Case insensitive matching

* DFPL-1828: Test to use title if provided from JRD apis

* Update dependency hashicorp/terraform to v1.6.2 (#4792)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1825: Change to readonly so that the hidden field isn't deleted (#4785)

* Update Terraform azuread to v2.44.1 (#4797)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.849 (#4798)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin org.owasp.dependencycheck to v8.4.2 (#4799)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency node to v18.18.2 (#4800)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest to v1.15.2 (#4801)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.0 (#4802)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1830 (#4804)

* Update dependency org.yaml:snakeyaml to v2.2 (#4803)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* smoke test converted to playwright (#4796)

* smoke test converted to playwright

* add smoke test to nightly

* headless test

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Add smoke test (#4809)

* increase dev memory requests for xui-webapp. (#4795)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* merge issue

* Revert JRD Header

* DISABLE Outstanding orders overnight job

* DISABLE publishing events/fields

* Add superuser IDAM AccessProfile

* Add WA user + global search access profile for preview

* bump xui-webapp chart

* Remove caseworker-publiclaw-courtadmin IDAM association

* Enable Publishing fields + events

* Toggle ON 'Send order reminder' event

* Enable 'Chase outstanding orders' overnight job to run at 2AM

* revert update (#4819)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.1 (#4811)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.851 (#4821)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright update (#4810)

* Bumping chart version/ fixing aliases

* Enable test logging

* DFPL-1796: Filter out internal (WA) related case roles (#4754)

* DFPL-1796: Filter out WA internal user case roles

* revert accidental change leftover from testing

* revert accidental change leftover from testing

* DFPL-1796: Rename variable to be more descriptive

* Revert "Enable test logging"

This reverts commit a6fffb0.

* Update dependency commons-io:commons-io to v2.15.0 (#4822)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1813: INC5552093 - NOC not working (#4814)

* Update dependency webdriverio to v8.20.4 (#4824)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1839 add DirtiesContext annotation to fix flaky unit test (#4823)

* add DirtiesContext annotation

* remove unused import

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.854 (#4827)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright browser install (#4829)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update Terraform azuread to v2.45.0 (#4828)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1831: Set the label again after restructuring of page (#4805)

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Update Terraform azurerm to v3.78.0 (#4830)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.ben-manes.versions to v0.49.0 (#4832)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update spring security to v5.8.8 (#4833)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Playwright browser install (#4831)

* playwright browser install

* yarn.lock update

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* node-gyp install (#4834)

* node-gyp install

* node-gyp install

* changed registry

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* fix smoke test (#4836)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency node-gyp to v9.4.1 (#4838)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.855 (#4839)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.commons:commons-text to v1.11.0 (#4840)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add full name to tests

* fix checkstyle

* From DFPL:1754, main.tf chart values and bootstrap

* Changes to tests with linting errors preventing commit

* DFPL-1754: Added variable.tf and fixed bug in main.tf

* Bumping chart version/ fixing aliases

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: Rees Pozzi <reespozzi@icloud.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: GauravChawlaMOJ <58194626+GauravChawlaMOJ@users.noreply.github.com>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>
Co-authored-by: FaisalMoJ <100577377+FaisalMoJ@users.noreply.github.com>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>
Co-authored-by: suresh-sharada <88669246+suresh-sharada@users.noreply.github.com>
ptrelease added a commit that referenced this pull request Nov 15, 2023
* DFPL-1565: Update permission for CAA for to fix NoC issues (#4734)

* DFPL-1774 update migration script (#4726)

* DFPL-1774 update migration script

* fix check style

* resolve duplicateed code after merge

* fix check style

* Remove mentions of old MI (#4736)

* DFPL-1739: Update case ID for migration (#4738)

* update migration script (#4721)

* FPL - Remove references to fpla-docker ready for removal of sub module (#4737)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* Fpl remove fpla docker part2 (#4740)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* DFPL-1782 INC5551908 Document removal from Manage Cases - MA23C50115 (#4739)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* fortify release id change (#4742)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1650 Placement order is incorrect and doesn't reflect the standa… (#4670)

* DFPL-1650 Placement order is incorrect and doesn't reflect the standard template order

* Rename the template file to V2.

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-1706 INC5537892 Submitted dates of draft orders changed when new order is uploaded (#4666)

* fix submitted time

* fix date sent

* remove extra blank line

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* fortify fixes (#4744)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Fortify fixes2 (#4745)

* fortify fixes

* fortify fixes

* fortify fixes

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1793 INC5552381 solicitor unable to action NOC function (#4747)

* DFPL-1793 INC5552381 solicitor unable to action NOC function

* removed unused code

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Bump get-func-name from 2.0.0 to 2.0.2 (#4722)

Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases)
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2)

---
updated-dependencies:
- dependency-name: get-func-name
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>

* bump old Java chart to latest (#4750)

* bump old Java chart to latest

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Security scan variable renamed (#4748)

* fortify fixes

* fortify fixes

* fortify fixes

* Security rules variable renamed

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* FPL - Remove and clean up unused script (#4749)

* FPL - Remove unused script

This script was once used for local docker development.

We have since moved to the CFTLib and cloud based AAT services
for our dependencies. This script can now be removed.

* Clean up more unused and out of date scripts

* remove wait script instead of commenting

* DFPL-1788 INC5552038 - A Judicial Email needs to be removed due to a data issue - SA23C50178 (#4753)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1804 (#4759)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent (#4760)

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent

* remove method

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1646 gatekeeping listing event is incorrectly sending hearing notifications to unrepresented parties (#4544)

* fix gatekeeping hearing noti

* fix unit test

* fix unit test

* fix unit test

* fix 409 error when sending gatekeeping order

* remove unused import

* DFPL-1810 INC5554170 - Document needs removing from wrong case (#4764)

* DFPL-1810 INC5554170 - Document needs removing from wrong case

* update case id

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Nightly dev (#4765)

* FullfunctionalTestinNightlyBuild

* FullfunctionalTestinNightlyBuild

* BumpNode

* BumpNode

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* nightly dev update

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* FixAdminOrderTests

* fortify release id change

* fortify release id change

* fortify fixes

* fortify fixes

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* fortify deactivated as it is running unnecessarily with master nightly build

* updating pitest for mutation tests to run in nightly (#4761)

* turn off cross browser

* turn off cross browser

* added security.sh file to fix pipeline

* removing security.sh file to fix pipeline

* turning off mutation tests temp

* removing OWASP as has been replaced with Fortify

* Full functional test results report

* minor fix

* minor fix

---------

Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>

* Update Yarn to v3.6.4 (#4768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @babel/core to v7.23.2 (#4769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency codeceptjs to v3.5.6 (#4771)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.15.3 (#4773)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1783 : Dependencies update and suppressions removed (#4762)

* Update Helm release ccd-case-document-am-api to v1.7.13 (#4777)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency gradle to v7.6.3 (#4778)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.tomcat.embed:tomcat-embed-core to v9.0.82 (#4779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1594: Add "on behalf of <Additional App applicant>" (#4729)

* DFPL-1594: Add "on behalf of <Additional App applicant>"

* Add applicant name to tests

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Add some tests around the additional apps bundle

* Update dependency org.apache.tomcat.embed:tomcat-embed-websocket to v9.0.82 (#4781)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Quartz fix after depedency update (#4780)

* DFPL-1651 Placement Blank Order (#4732)

* DFPL-1651 Placement Blank Order

* updated

* checkstyle and renaming

* Fixing test cases

* add test case for A81_PLACEMNT_BLANK_ORDER

* fix unit test

* add a unit test

* fix test case

* Remove unused method

* checkstyle

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* suppress CVE-2023-5072 (#4784)

* DFPL-1754: Initial changes to migrate postgres v11 single server to postgres v15 flexible server

* Update dependency org.pitest:pitest to v1.15.1 (#4782)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1627 Cafcass not receiving notice of hearing (#4543)

* fix sending notice of hearing for gatekeeping hearing

* fix unit test

* rename confusing method sendNoticeOfHearing()

---------

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1561: Release search box flow changes (#4770)

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* Refactor + move duped code into JudicialService

* fix checkstyle

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.842 (#4786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azuread to v2.44.0 (#4787)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azurerm to v3.77.0 (#4788)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.google.guava:guava to v32.1.3-jre (#4789)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1754: restored original ACR image.  A more up-to-date image is not available.

* DFPL-1754: Removed comments as not useful.

* DFPL-1754: Requesting image 15.4.0 for postgres v15 in our preview yaml

* DFPL-1754: Amend main.tf to investigate Terraform errors

* remove dep.md

* DFPL-1754: Amend main.tf to investigate Terraform errors

* DFPL-1754: changed main.tf so postgresql version a string to try and resolve terraform complilation error in pipeline.

* DFPL-1754: Typo in module fpl-scheduler-postgres-v15-flexible-server, removed double hash

* DFPL-1754: Quick test to see if v14 works on .tf build

* DFPL-1745: Returned postgres version to 15 and moved earlier in the file as per recommendation in README

* DFPL-1754: Changed colon to equals sign in database name assignment.  To try and fix experimental features error

* DFPL-1754: Split database name into its own tf variable and switch to cft_vnet for provider

* DFPL-1735: Fix issue with cached placement data (#4719)

* amended PlacementController and PlacementNoticeController to avoid storing working placement data in CCD.  And changing these controllers so their about-to-start cleared any working placement data they encountered

* DFPL-1735: Fix issue with cached placement data
Placement event caches data in CCD and when placement notice of hearing
or Placement event runs again, this data is populated for that particular
event and copies the notice event data and application from previously
submitted event into the current event. This PR fixes the issue to make sure
that when event runs, there is no data pre populated from previously submitted
placements.

* DFPL-1735: Fix checkstyle

* DFPL-1735: Introduce constant

* DFPL-1735: Fix CVE-2023-34047

* DFPL-1735: Fix CVE-2023-34047

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>

* Update dependency commons-io:commons-io to v2.14.0 (#4790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1723 Leftover in case data after updating respondent address (#4667)

* fix respondent address leftover issue

* remove address leftover

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* Update dependency hashicorp/terraform to v1.6.2 (#4792)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1825: Change to readonly so that the hidden field isn't deleted (#4785)

* Update Terraform azuread to v2.44.1 (#4797)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1754 Changed subscription variable to match new naming convention.  Removed var.location so default used.  Used Azure alias as recommended in README

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.849 (#4798)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin org.owasp.dependencycheck to v8.4.2 (#4799)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency node to v18.18.2 (#4800)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest to v1.15.2 (#4801)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.0 (#4802)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1830 (#4804)

* Update dependency org.yaml:snakeyaml to v2.2 (#4803)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* smoke test converted to playwright (#4796)

* smoke test converted to playwright

* add smoke test to nightly

* headless test

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Add smoke test (#4809)

* increase dev memory requests for xui-webapp. (#4795)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Removed environment suffix from the database name.  This is done when the pipeline is run.

* Added vault secret to main.tf for the v15 scheduler database

* revert update (#4819)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.1 (#4811)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.851 (#4821)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright update (#4810)

* DFPL-1796: Filter out internal (WA) related case roles (#4754)

* DFPL-1796: Filter out WA internal user case roles

* revert accidental change leftover from testing

* revert accidental change leftover from testing

* DFPL-1796: Rename variable to be more descriptive

* Update dependency commons-io:commons-io to v2.15.0 (#4822)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1813: INC5552093 - NOC not working (#4814)

* Update dependency webdriverio to v8.20.4 (#4824)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1839 add DirtiesContext annotation to fix flaky unit test (#4823)

* add DirtiesContext annotation

* remove unused import

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.854 (#4827)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright browser install (#4829)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update Terraform azuread to v2.45.0 (#4828)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1831: Set the label again after restructuring of page (#4805)

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Update Terraform azurerm to v3.78.0 (#4830)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.ben-manes.versions to v0.49.0 (#4832)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update spring security to v5.8.8 (#4833)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Playwright browser install (#4831)

* playwright browser install

* yarn.lock update

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* values.yaml changed to point scheduler at the new pg v15 flexi db and change pw secret name. Bootstrap.yaml changed to alias new pw secret. Main and variables.tf amended so default db userame no longer used

* node-gyp install (#4834)

* node-gyp install

* node-gyp install

* changed registry

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* fix smoke test (#4836)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency node-gyp to v9.4.1 (#4838)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.855 (#4839)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.commons:commons-text to v1.11.0 (#4840)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Work Allocation feature branch (#4772)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8ba3d7b18417c5de3dad0a4753b625a95c)

* Link to fpla-docker's commit https://github.com/hmcts/fpla-docker/pull/83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4610f8f1941ccaba09bc2cdf3660e6fc10.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Add caseworker-wa-task-configuration to the case states + case type

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* Update suppressions.

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* schedule 'overnight job' for 2pm in demo

* Add specific and challenged access for staff roles (#4475)

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* Fix merge conflict issues

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117b98a5159647c0c73d54ae2f81045f411a.

* Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks

* Remove test for post submit callback if we're removing it

* checkstyle

* Revert "checkstyle"

This reverts commit 542e85a372be120f1f989ec74932d85f3cd5cb1d.

* Revert "Remove test for post submit callback if we're removing it"

This reverts commit abdfb39ca3b5eab69014f571cd959f33a405d0d3.

* Revert "Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks"

This reverts commit b538af604292e003971b543c7eede14944b74df2.

* Revert possible regression

* Code changes + toggle off event ready for release

* Revert "Revert possible regression"

This reverts commit 10ec15a1dcb303d08cce024c524297a56ddc7040.

* checkstyle

* fix test clash

* fix dupe RoleToAccessProfile

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* fix checkstyle

* Refactor + move duped code into JudicialService

* add elinks header

* merge issue

* Revert JRD Header

* DISABLE Outstanding orders overnight job

* DISABLE publishing events/fields

* Add superuser IDAM AccessProfile

* Add WA user + global search access profile for preview

* bump xui-webapp chart

* Bumping chart version/ fixing aliases

* Enable test logging

* Revert "Enable test logging"

This reverts commit a6fffb049a9156d21c2747e9843ae5801541e102.

---------

Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update versions.log4j to v2.21.1 (#4841)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL: Hotfix ignore sonarcloud false positive + cftlib roles (#4843)

* Suppress false positive - condition is not always null

* Add two roles for WA in CftlibConfig

* DFPL-1837: Migration to remove file (#4825)

* DFPL-1837: Migration to remove file

* DFPL-1840: Order uploaded callback error (#4844)

* DFPL-1840: Order uploaded callback error

* replace with null as its removed in removeAllocatedJudgeProperties anyway

* checkstyle

* add test for null

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL: Adding an env var so that demo environment can test scheduler runs during the day

* Amended so that the update-summary-tab-cron is initiaised with a value

* DFPL-WA: Toggle on Work Allocation (#4848)

* Remove caseworker-publiclaw-courtadmin IDAM association

* Enable Publishing fields + events

* Toggle ON 'Send order reminder' event

* Enable 'Chase outstanding orders' overnight job to run at 2AM

* Split the RoleToAccessProfiles config so locally+preview still has the old IDAM roles

* Nightly dev (#4858)

* DFPL-1789 Allocated Judge - Full name field for Magistrates (#4751)

* fix DFPL-1789

* fix after merge

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Update versions.serenity to v2.6.0 (#4849)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Dfpl 1842remove position statement (#4862)

* RemovePositionStatement

* RemovePositionStatement

* DFPL-1828: Fix "Unknown <judgeSurname>" when fetching from JRD (#4793)

* DFPL-1828: Add pattern matching for Judge Titles

* DFPL-1828: Enable elinks API integration header

* DFPL-1828: Case insensitive matching

* DFPL-1828: Test to use title if provided from JRD apis

* Add full name to tests

* Change default to say "Judge" not "Unknown"

* Fix checkstyle

* revert judicial api header

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* state of case not passed as parameter for search (#4863)

* updated main.tf azurerm and azuread versions.  Corrected user connection string

* Bumping chart version/ fixing aliases

* DFPL-1754: subnet_suffix set to expanded

* DFPL-1850:NOC Data Migration (#4867)

* DFPL-1850:NOC Data Migration

* DFPL-1850

* DFPL-1799 INC5552796 Notification from C2 Application Incorrect (#4766)

* update wordings for notification

* add unit test

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* fix DFPL-1784 (#4794)

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL:1754 Corrected default connection details for scheduler and corrected readme to match

* Changes to remove pg v11 database

* DFPL-1754: Second azurerm provider has config added to remove pg v11

* Alias the ras secret (#4883)

* update migration script (#4884)

* DFPL-1754: Reinstated terraform config for pg 11, as this will be done in a later PR.  Also upgraded Flyway to a version that support pg v15

* DFPL-CFV FPL-CFV- Feature Branch  (#4678)

* simplified test cases

* Capture uploaderCaseRoles when uploading new documents

* Fixing JSON to use MultiSelectList instead of Collection

* List<CaseRole> to List<String>

* Revert "List<CaseRole> to List<String>"

This reverts commit f45188ccb622b3850f85d368ce64372a23bc633f.

* Fix test cases.

* Use uploaderCaseRoles to determine the right of removing documents.

* capture uploaderCaseRoles for the placement response case

* Showing placementResponse to the dropdown list

* Logic for removing placementNoticeDocument

* Add revokeCaseAccess to TestingSupportController

* Grant CU permission for judiciary to CaseSummary

* Grant "U" access to judiciary

* Add placement response option for admin

* Grant U to magistrate

* missing final modifier

* test case for buildDocumentTypeDynamicListForRemoval

* prevent NPE

* more test cases for buildDocumentTypeDynamicListForRemoval

* add test cases to increase code coverage.

* simplified

* More test cases for DocumentType.

* test case for getFieldNameOfRemovedList

* simplified test case

* code tidy up

* Make use of toList()

* making use of toList()

* test case for no document available

* missing assertThat

* add test cases on toJsonFieldName

* revert

* DFPL-1493 CFV - Further application documents (#4642)

* Documents filed on issue and Threshold

* Care plan

* permission settings

* migrate scripts for application documents

* Migration case tests

* migration script for mixed application documents

* rollback script and its test case

* MigrateCaseController for testing

* remove an extra line

* remove 1401 test case

* hide documents from `applicationDocuments`

* fixiing permission issues

* deprecated applicationDocuments

* DEPRECATED applicationDocuments

* remove unused methods

* remove unused test cases

* checkstyle

* Added swetList, socialWorkChronList, genogramList, checklistDocList, birthCertList and otherDocFiledList

* update test cases

* Fixing test cases

* revert migratCaseController

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Missing new fields for documents created on DFPL-1493

* Revert commented codes

* Sara confirmed the placement responses are viewable by everyone.

* Sara confirmed placementResponses are viewable by everyone.

* missing permission for solicitors on some of the documents.

* add test case for removeDocuments

* more test cases

* updated test cases

* test cases for removing caseSummary

* Test case for removing placementResponses

* code smell.

* Clean up - making use of anyMatch

* Code cleanup

* Code smell - making use of anyMatch

* Unit tests for REMOVE_DOCUMENT action.

* Add translation requirement option

* Missing translationRequirements in PlacementResponse

* add back constructors

* Remove unnecessary file.

* Revert "add revokeCaseAccess"

This reverts commit 8aab026f5704bfac369800725330f092fa8b7a1f.

* Consolidated migration scripts.

* checkstyle

* add a checking to prevent the migration being performed twice.

* use remove instead

* Grant superuser with CRUD for the purpose of rollback script

* Remove property if the collection is an empty list.

* Remove property if the collection is an empty list in rollback script.

* Revoke R access from respondentStatements

* Revoke R access from respondentStatements

* Resolving code review conversation.

* Rename the event name

* Check NPE

* Created MigratCFVService

* Add test cases for the MigrateCaseController

* Fix court bundle issue on migration

* Deprecated courtBundleNC

* Checkstyle

* Updated due to deprecate courtBundleNC

* Rename  manage document to (OLD) Manage document

* Fixed test cases

* Squashed commit of the following:

commit e1d682fbdd9b8fb3a62f5a1e3c76bd13df220c8c
Merge: c820d5313 60ab8181d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Sep 4 15:09:17 2023 +0100

    Merge remote-tracking branch 'origin/DFPL-1464' into DFPL-1609

commit c820d5313abb1dd855d60943f2992e65d5394d9a
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 18:34:31 2023 +0100

    update cafcass noti mapping

commit d0cd924d423711799379d7b4b7a7ebcfc7e24f3b
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:28:55 2023 +0100

    fix code style check

commit e6f87390d18ef7ff51eb31302b56afcc8c694074
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:19:33 2023 +0100

    remove temporary skip logic in unit test

commit b1ab719f78e4f4229687481b5bcddb8092fb6c7d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:16:22 2023 +0100

    remove temporary skip logic

commit 0395efc4e9fc209fb8466beb1f9a3ced1dba5d33
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 13:11:57 2023 +0100

    remove extra line

commit 730e552a85b2ebd12dfba0bfd27715d0e689ee6a
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 12:41:35 2023 +0100

    rollback toList

commit 0b45987d6658c4cf0dc31c22e13fdd13f4d8fbcf
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 12:05:54 2023 +0100

    update test

commit 40c4f797ef1fb2306a027e55d4372dc638f66cae
Merge: d5be1372d ab7db77df
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 11:26:04 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit d5be1372ddfeed3366d713e572d46ee16e8370ed
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 11:25:41 2023 +0100

    fix check style

commit 2ff8fdc1efd459f317f7265da1af88c90d922e42
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 10:57:33 2023 +0100

    fix comment

commit 56d4a386acfde6884c2be473c7dd35faa981e951
Merge: 1bca23c5d 97414f1e1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 12:48:09 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit 1bca23c5d1a9f4c6071d19b0dbd7b27ce289638d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 10:31:00 2023 +0100

    fix code check

commit 40d662ab3d87188e0fb9519834b70ee9b6b5154d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 10:09:12 2023 +0100

    update translation

commit 9038f94ea23e733b283e371541c2a9c7748c0eca
Merge: b05520623 fc82de3d4
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Tue Aug 29 09:41:44 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit b05520623308f84ce8620292415943b858adeee5
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 24 17:49:54 2023 +0100

    add log for future debugging

commit 80cbd8a8885a07d8995b2c43f472ba58f597a588
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 24 17:24:16 2023 +0100

    update cafcass mapping

commit f41ba622f5d475ca5a64de293d9541d4694ce14f
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 23:11:12 2023 +0100

    fix cafcass doc description

commit 62da7552a08caeb451fc678bd59831e6f2e399b1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 19:18:35 2023 +0100

    backward compatible cafcass email provider

commit f11bedfcb81d8d64bd438af7fe51d90f92204e37
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 19:13:42 2023 +0100

    update cafcass category list

commit 6c3319c66b94960d5472af824c472cefe22d05d0
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 18:49:51 2023 +0100

    update cafcass noti logic

commit 95ddc4a0cb72a187cfd96cbabd456ddbb37a8dce
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 13:30:23 2023 +0100

    controller unit test

commit 83b0705aee76897d65a0be05bc6780b5b62df8df
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 12:24:04 2023 +0100

    fix bug

commit a4ff5a4c4f014c8b0523e85be5ff886b66900808
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 11:47:44 2023 +0100

    update translation

commit a6f0c48c1e883dc179aeab1c61866ed2f821e4d6
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 18:15:01 2023 +0100

    fix code check and unit test

commit f8ce4f7b5a0eb85cf4bb142a54fb09d793e910ec
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 17:03:50 2023 +0100

    update handler unit test

commit 48c664a2a631eb37a45a5965593f210d27aeb30e
Merge: f715b395e 8158d4b1a
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Tue Aug 22 11:35:56 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit f715b395e5c1ca4bc1a146cd7f16e4c9b0c0a5e7
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 11:24:39 2023 +0100

    fix send by post sending hearing document

commit 17045c05ae0371e6e355b042a7a5a144864b7603
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 21 21:54:16 2023 +0100

    update document uploaded unit test

commit 25b5d470509f6e73fed8300b38c316a59da35eae
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 21 20:12:39 2023 +0100

    update handler unit test

commit 36560f3cf68e30503045e8648174a9c444cf3a90
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:24:16 2023 +0100

    fix after resolving conflict

commit 05334d242a083b3985bd54f51221188d37acc684
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:20:43 2023 +0100

    update notification logic

commit f42299cd328c0fdd7b8b50251717ad242eff79b1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:19:55 2023 +0100

    revert sonarqube

commit a30c93107390d6d84a732a749ec9ceb44b5f8a97
Merge: e32221965 9f35d246f
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Thu Aug 17 17:17:59 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit e32221965cd8df2c2e117457cc7241fac4154d0b
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 17:08:52 2023 +0100

    skip sonarqube for testing

commit f97e8b0240267ad85e36c4659e1bd73325f95282
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 17:02:39 2023 +0100

    fix getting new document uploaded

commit 3a30a19755df83e23cd1e35a6357308a45807b6f
Merge: d5409e8ba d7a04477e
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 12:52:11 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit d5409e8ba285d8ab31766b957670c7bc36a08c16
Merge: 3c83c27f1 a1e4c78f1
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Fri Aug 11 10:27:23 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit 3c83c27f178955d084dd2e69285783a999a374d1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 9 16:38:20 2023 +0100

    ObjectHelperTest

commit 73a426128f9dd38afb298de973e9697582999ab5
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 17:43:06 2023 +0100

    update publish event

commit 2844ccf536f612a660b663317a99745095296b09
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:55:34 2023 +0100

    update interface NotifyDocumentUploaded

commit 518effce5eb7235149f5e2d4e8318a4e2fd44760
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:29:38 2023 +0100

    update comment

commit ce330b7bb408cb1e5213fac691d7573bc6787b20
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:28:18 2023 +0100

    update comment and default config

commit a0258d0a7a76d8efe97def6f9c66b581271f0417
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:12:11 2023 +0100

    update comment

commit e0ffe38fe57e46f17b6b6d1a215f937d6004f784
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:41:17 2023 +0100

    update comment

commit cba1a892993cd44f0f0e20c8104a5d40cff5f63d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:10:03 2023 +0100

    remove unused comment

commit f90167d9f3766361b2d3bdfb6aae2e979c6ab3ce
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:04:33 2023 +0100

    new managedDoc handler for sending document uploaded noti

* Fix Field Not Recognised error

* add missing properties of applicationDocuments

* add missing new fields

* Fix wrong category for  expert reports

* Revoke R access to hearingFurtherEvidenceDocuments

* Migration tests

* Hide documents

* update fpla-docker to master

* Fix court bundle rollback script

* Checkstyle

* Categorise Sealed CMO to Order

* Missing manage document instruction in demo

* remove an extra blank line

* remove logic which is not needed.

* Set lastUploadedOrder to be non-readable since previously it is set to be DO_NOT_SHOW using FieldShowCondition.

* added caseSummaryListBackup

* Categorise documents under `urgentHearingOrder` field to category: "Orders". And hide "unsealedOrder" by setting authorisation setting.

* Categorise supporting documents under CMO to category "Orders"

* Fix applicationDocuments cannot be removed after migration.

* Keep positionStatementRespondentListV2 and positionStatementChildListV2

* backup skeltonArgumentList

* Fix test case

* rollback some line changes

* Revoke read access of "ordersToBeSent" field.

* Fix issues on CAFCASS permission

* Hide document tab and hearing document tab.

* Remove access of old manage documents event.

* Suppress unused graph ql vuln

* DFPL-1775  Upload journey -updated event for Cafcass England & Cyrmu (#4727)

* Enable CAFCASS to upload document

* Enable cafcass user to upload/remove documents

* updated unit tests

* Fix test cases

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Remove done migraitons

* add back removed import

* DFPL 1609 / DFPL-1730 New Upload Document Notification- Cafcass England & Cyrmu (#4774)

* new managedDoc handler for sending document uploaded noti

* remove unused comment

* update comment

* update comment

* update comment and default config

* update comment

* update interface NotifyDocumentUploaded

* update publish event

* ObjectHelperTest

* fix getting new document uploaded

* skip sonarqube for testing

* revert sonarqube

* update notification logic

* fix after resolving conflict

* update handler unit test

* update document uploaded unit test

* fix send by post sending hearing document

* update handler unit test

* fix code check and unit test

* update translation

* fix bug

* controller unit test

* update cafcass noti logic

* update cafcass category list

* backward compatible cafcass email provider

* fix cafcass doc description

* update cafcass mapping

* add log for future debugging

* update translation

* fix code check

* fix comment

* fix check style

* update test

* rollback toList

* remove extra line

* remove temporary skip logic

* remove temporary skip logic in unit test

* fix code style check

* update cafcass noti mapping

* Update dependency @babel/core to v7.23.2 (#4769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency codeceptjs to v3.5.6 (#4771)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.15.3 (#4773)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix not notifying Cafcass welsh

* fix not notifying cafcass welsh

* revert changes after merge

* revert changes after merge

* revert changes after merge

* revert changes after merge

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Adding postgres upgrade work to this branch, so demo can be used for initial config and testing

* fix delimiter when familyman number is null (#4820)

* Revert "fix delimiter when familyman number is null (#4820)"

This reverts commit 52af2c2d36190f7ad0a5fafff2008de78cf37cfd.

* Revert "Adding postgres upgrade work to this branch, so demo can be used for initial config and testing"

This reverts commit c7911b923152c384d86bc6b6a15acce314da2ebd.

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* Remove duplicated entry on shuttered JSON file. (#4893)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Revert "DFPL-CFV FPL-CFV- Feature Branch  (#4678)" (#4894)

This reverts commit e8cacb794bf01f95504fb2b22c789e336f990de8.

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPl-1844: Gatekeeping not sending Order uploaded notification (#4873)

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1854: Clear the latestRoleSent field on event start (#4874)

* DFPL-1854: Clear the latestRoleSent field on event start so it doesn't interfere when closing a message thread

* Checkstyle: remove unused import

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: Rees Pozzi <reespozzi@icloud.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: GauravChawlaMOJ <58194626+GauravChawlaMOJ@users.noreply.github.com>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>
Co-authored-by: FaisalMoJ <100577377+FaisalMoJ@users.noreply.github.com>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>
Co-authored-by: suresh-sharada <88669246+suresh-sharada@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
ptrelease added a commit that referenced this pull request Nov 17, 2023
* DFPL-1565: Update permission for CAA for to fix NoC issues (#4734)

* DFPL-1774 update migration script (#4726)

* DFPL-1774 update migration script

* fix check style

* resolve duplicateed code after merge

* fix check style

* Remove mentions of old MI (#4736)

* DFPL-1739: Update case ID for migration (#4738)

* update migration script (#4721)

* FPL - Remove references to fpla-docker ready for removal of sub module (#4737)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* Fpl remove fpla docker part2 (#4740)

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* remove unused script

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* DFPL-1782 INC5551908 Document removal from Manage Cases - MA23C50115 (#4739)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* fortify release id change (#4742)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1650 Placement order is incorrect and doesn't reflect the standa… (#4670)

* DFPL-1650 Placement order is incorrect and doesn't reflect the standard template order

* Rename the template file to V2.

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-1706 INC5537892 Submitted dates of draft orders changed when new order is uploaded (#4666)

* fix submitted time

* fix date sent

* remove extra blank line

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* fortify fixes (#4744)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Fortify fixes2 (#4745)

* fortify fixes

* fortify fixes

* fortify fixes

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* DFPL-1793 INC5552381 solicitor unable to action NOC function (#4747)

* DFPL-1793 INC5552381 solicitor unable to action NOC function

* removed unused code

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Bump get-func-name from 2.0.0 to 2.0.2 (#4722)

Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases)
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2)

---
updated-dependencies:
- dependency-name: get-func-name
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>

* bump old Java chart to latest (#4750)

* bump old Java chart to latest

* Bumping chart version/ fixing aliases

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Security scan variable renamed (#4748)

* fortify fixes

* fortify fixes

* fortify fixes

* Security rules variable renamed

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* FPL - Remove and clean up unused script (#4749)

* FPL - Remove unused script

This script was once used for local docker development.

We have since moved to the CFTLib and cloud based AAT services
for our dependencies. This script can now be removed.

* Clean up more unused and out of date scripts

* remove wait script instead of commenting

* DFPL-1788 INC5552038 - A Judicial Email needs to be removed due to a data issue - SA23C50178 (#4753)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1804 (#4759)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent (#4760)

* DFPL-1802 INC5536958 Bedford LA added as Applicant and Respondent

* remove method

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPL-1646 gatekeeping listing event is incorrectly sending hearing notifications to unrepresented parties (#4544)

* fix gatekeeping hearing noti

* fix unit test

* fix unit test

* fix unit test

* fix 409 error when sending gatekeeping order

* remove unused import

* DFPL-1810 INC5554170 - Document needs removing from wrong case (#4764)

* DFPL-1810 INC5554170 - Document needs removing from wrong case

* update case id

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Nightly dev (#4765)

* FullfunctionalTestinNightlyBuild

* FullfunctionalTestinNightlyBuild

* BumpNode

* BumpNode

* FPL - Remove references to fpla-docker ready for removal of sub module

* re-add add-roles.sh - to be refactored

* DFPL-1745: Refactored add-roles.sh from /fpla-docker into /bin and refactored the Jenkinsfile_CNP to access it.  Moved dependencies for add-roles.sh into bin/utils and refactored ccd-import-definition.sh to access bin/utils for common scripts.

* nightly dev update

* Remove fpla-docker sub module

* Re-add accidental removal of required files

* undo removal of EOL

* FixAdminOrderTests

* fortify release id change

* fortify release id change

* fortify fixes

* fortify fixes

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* FixAdminOrderTests

* fortify deactivated as it is running unnecessarily with master nightly build

* updating pitest for mutation tests to run in nightly (#4761)

* turn off cross browser

* turn off cross browser

* added security.sh file to fix pipeline

* removing security.sh file to fix pipeline

* turning off mutation tests temp

* removing OWASP as has been replaced with Fortify

* Full functional test results report

* minor fix

* minor fix

---------

Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>

* Update Yarn to v3.6.4 (#4768)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @babel/core to v7.23.2 (#4769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency codeceptjs to v3.5.6 (#4771)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.15.3 (#4773)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1783 : Dependencies update and suppressions removed (#4762)

* Update Helm release ccd-case-document-am-api to v1.7.13 (#4777)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency gradle to v7.6.3 (#4778)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.tomcat.embed:tomcat-embed-core to v9.0.82 (#4779)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1594: Add "on behalf of <Additional App applicant>" (#4729)

* DFPL-1594: Add "on behalf of <Additional App applicant>"

* Add applicant name to tests

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Remove unnecessary annotations for Applicant + secondary LA as they are orgs

* DFPL-1594: Add some tests around the additional apps bundle

* Update dependency org.apache.tomcat.embed:tomcat-embed-websocket to v9.0.82 (#4781)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Quartz fix after depedency update (#4780)

* DFPL-1651 Placement Blank Order (#4732)

* DFPL-1651 Placement Blank Order

* updated

* checkstyle and renaming

* Fixing test cases

* add test case for A81_PLACEMNT_BLANK_ORDER

* fix unit test

* add a unit test

* fix test case

* Remove unused method

* checkstyle

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* suppress CVE-2023-5072 (#4784)

* Update dependency org.pitest:pitest to v1.15.1 (#4782)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1627 Cafcass not receiving notice of hearing (#4543)

* fix sending notice of hearing for gatekeeping hearing

* fix unit test

* rename confusing method sendNoticeOfHearing()

---------

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1561: Release search box flow changes (#4770)

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* Refactor + move duped code into JudicialService

* fix checkstyle

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.842 (#4786)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azuread to v2.44.0 (#4787)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Terraform azurerm to v3.77.0 (#4788)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.google.guava:guava to v32.1.3-jre (#4789)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1735: Fix issue with cached placement data (#4719)

* amended PlacementController and PlacementNoticeController to avoid storing working placement data in CCD.  And changing these controllers so their about-to-start cleared any working placement data they encountered

* DFPL-1735: Fix issue with cached placement data
Placement event caches data in CCD and when placement notice of hearing
or Placement event runs again, this data is populated for that particular
event and copies the notice event data and application from previously
submitted event into the current event. This PR fixes the issue to make sure
that when event runs, there is no data pre populated from previously submitted
placements.

* DFPL-1735: Fix checkstyle

* DFPL-1735: Introduce constant

* DFPL-1735: Fix CVE-2023-34047

* DFPL-1735: Fix CVE-2023-34047

---------

Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>

* Update dependency commons-io:commons-io to v2.14.0 (#4790)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1723 Leftover in case data after updating respondent address (#4667)

* fix respondent address leftover issue

* remove address leftover

---------

Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* Update dependency hashicorp/terraform to v1.6.2 (#4792)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1825: Change to readonly so that the hidden field isn't deleted (#4785)

* Update Terraform azuread to v2.44.1 (#4797)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.849 (#4798)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin org.owasp.dependencycheck to v8.4.2 (#4799)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency node to v18.18.2 (#4800)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest to v1.15.2 (#4801)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.0 (#4802)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1830 (#4804)

* Update dependency org.yaml:snakeyaml to v2.2 (#4803)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* smoke test converted to playwright (#4796)

* smoke test converted to playwright

* add smoke test to nightly

* headless test

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Add smoke test (#4809)

* increase dev memory requests for xui-webapp. (#4795)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* revert update (#4819)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency org.pitest:pitest-junit5-plugin to v1.2.1 (#4811)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.851 (#4821)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright update (#4810)

* DFPL-1796: Filter out internal (WA) related case roles (#4754)

* DFPL-1796: Filter out WA internal user case roles

* revert accidental change leftover from testing

* revert accidental change leftover from testing

* DFPL-1796: Rename variable to be more descriptive

* Update dependency commons-io:commons-io to v2.15.0 (#4822)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1813: INC5552093 - NOC not working (#4814)

* Update dependency webdriverio to v8.20.4 (#4824)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1839 add DirtiesContext annotation to fix flaky unit test (#4823)

* add DirtiesContext annotation

* remove unused import

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.854 (#4827)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* playwright browser install (#4829)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update Terraform azuread to v2.45.0 (#4828)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL-1831: Set the label again after restructuring of page (#4805)

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* Update Terraform azurerm to v3.78.0 (#4830)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.ben-manes.versions to v0.49.0 (#4832)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update spring security to v5.8.8 (#4833)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Playwright browser install (#4831)

* playwright browser install

* yarn.lock update

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* node-gyp install (#4834)

* node-gyp install

* node-gyp install

* changed registry

---------

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* fix smoke test (#4836)

Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>

* Update dependency node-gyp to v9.4.1 (#4838)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.github.hmcts.rse-cft-lib to v0.19.855 (#4839)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency org.apache.commons:commons-text to v1.11.0 (#4840)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Work Allocation feature branch (#4772)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8ba3d7b18417c5de3dad0a4753b625a95c)

* Link to fpla-docker's commit https://github.com/hmcts/fpla-docker/pull/83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4610f8f1941ccaba09bc2cdf3660e6fc10.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Add caseworker-wa-task-configuration to the case states + case type

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* Update suppressions.

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* schedule 'overnight job' for 2pm in demo

* Add specific and challenged access for staff roles (#4475)

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* Fix merge conflict issues

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117b98a5159647c0c73d54ae2f81045f411a.

* Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks

* Remove test for post submit callback if we're removing it

* checkstyle

* Revert "checkstyle"

This reverts commit 542e85a372be120f1f989ec74932d85f3cd5cb1d.

* Revert "Remove test for post submit callback if we're removing it"

This reverts commit abdfb39ca3b5eab69014f571cd959f33a405d0d3.

* Revert "Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks"

This reverts commit b538af604292e003971b543c7eede14944b74df2.

* Revert possible regression

* Code changes + toggle off event ready for release

* Revert "Revert possible regression"

This reverts commit 10ec15a1dcb303d08cce024c524297a56ddc7040.

* checkstyle

* fix test clash

* fix dupe RoleToAccessProfile

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* fix checkstyle

* Refactor + move duped code into JudicialService

* add elinks header

* merge issue

* Revert JRD Header

* DISABLE Outstanding orders overnight job

* DISABLE publishing events/fields

* Add superuser IDAM AccessProfile

* Add WA user + global search access profile for preview

* bump xui-webapp chart

* Bumping chart version/ fixing aliases

* Enable test logging

* Revert "Enable test logging"

This reverts commit a6fffb049a9156d21c2747e9843ae5801541e102.

---------

Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* Update versions.log4j to v2.21.1 (#4841)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DFPL: Hotfix ignore sonarcloud false positive + cftlib roles (#4843)

* Suppress false positive - condition is not always null

* Add two roles for WA in CftlibConfig

* DFPL-1837: Migration to remove file (#4825)

* DFPL-1837: Migration to remove file

* DFPL-1840: Order uploaded callback error (#4844)

* DFPL-1840: Order uploaded callback error

* replace with null as its removed in removeAllocatedJudgeProperties anyway

* checkstyle

* add test for null

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-WA: Toggle on Work Allocation (#4848)

* Remove caseworker-publiclaw-courtadmin IDAM association

* Enable Publishing fields + events

* Toggle ON 'Send order reminder' event

* Enable 'Chase outstanding orders' overnight job to run at 2AM

* Split the RoleToAccessProfiles config so locally+preview still has the old IDAM roles

* Nightly dev (#4858)

* DFPL-1789 Allocated Judge - Full name field for Magistrates (#4751)

* fix DFPL-1789

* fix after merge

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* Update versions.serenity to v2.6.0 (#4849)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Dfpl 1842remove position statement (#4862)

* RemovePositionStatement

* RemovePositionStatement

* DFPL-1828: Fix "Unknown <judgeSurname>" when fetching from JRD (#4793)

* DFPL-1828: Add pattern matching for Judge Titles

* DFPL-1828: Enable elinks API integration header

* DFPL-1828: Case insensitive matching

* DFPL-1828: Test to use title if provided from JRD apis

* Add full name to tests

* Change default to say "Judge" not "Unknown"

* Fix checkstyle

* revert judicial api header

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* state of case not passed as parameter for search (#4863)

* DFPL-1850:NOC Data Migration (#4867)

* DFPL-1850:NOC Data Migration

* DFPL-1850

* DFPL-1799 INC5552796 Notification from C2 Application Incorrect (#4766)

* update wordings for notification

* add unit test

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* fix DFPL-1784 (#4794)

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* Alias the ras secret (#4883)

* update migration script (#4884)

* DFPL-CFV FPL-CFV- Feature Branch  (#4678)

* simplified test cases

* Capture uploaderCaseRoles when uploading new documents

* Fixing JSON to use MultiSelectList instead of Collection

* List<CaseRole> to List<String>

* Revert "List<CaseRole> to List<String>"

This reverts commit f45188ccb622b3850f85d368ce64372a23bc633f.

* Fix test cases.

* Use uploaderCaseRoles to determine the right of removing documents.

* capture uploaderCaseRoles for the placement response case

* Showing placementResponse to the dropdown list

* Logic for removing placementNoticeDocument

* Add revokeCaseAccess to TestingSupportController

* Grant CU permission for judiciary to CaseSummary

* Grant "U" access to judiciary

* Add placement response option for admin

* Grant U to magistrate

* missing final modifier

* test case for buildDocumentTypeDynamicListForRemoval

* prevent NPE

* more test cases for buildDocumentTypeDynamicListForRemoval

* add test cases to increase code coverage.

* simplified

* More test cases for DocumentType.

* test case for getFieldNameOfRemovedList

* simplified test case

* code tidy up

* Make use of toList()

* making use of toList()

* test case for no document available

* missing assertThat

* add test cases on toJsonFieldName

* revert

* DFPL-1493 CFV - Further application documents (#4642)

* Documents filed on issue and Threshold

* Care plan

* permission settings

* migrate scripts for application documents

* Migration case tests

* migration script for mixed application documents

* rollback script and its test case

* MigrateCaseController for testing

* remove an extra line

* remove 1401 test case

* hide documents from `applicationDocuments`

* fixiing permission issues

* deprecated applicationDocuments

* DEPRECATED applicationDocuments

* remove unused methods

* remove unused test cases

* checkstyle

* Added swetList, socialWorkChronList, genogramList, checklistDocList, birthCertList and otherDocFiledList

* update test cases

* Fixing test cases

* revert migratCaseController

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Missing new fields for documents created on DFPL-1493

* Revert commented codes

* Sara confirmed the placement responses are viewable by everyone.

* Sara confirmed placementResponses are viewable by everyone.

* missing permission for solicitors on some of the documents.

* add test case for removeDocuments

* more test cases

* updated test cases

* test cases for removing caseSummary

* Test case for removing placementResponses

* code smell.

* Clean up - making use of anyMatch

* Code cleanup

* Code smell - making use of anyMatch

* Unit tests for REMOVE_DOCUMENT action.

* Add translation requirement option

* Missing translationRequirements in PlacementResponse

* add back constructors

* Remove unnecessary file.

* Revert "add revokeCaseAccess"

This reverts commit 8aab026f5704bfac369800725330f092fa8b7a1f.

* Consolidated migration scripts.

* checkstyle

* add a checking to prevent the migration being performed twice.

* use remove instead

* Grant superuser with CRUD for the purpose of rollback script

* Remove property if the collection is an empty list.

* Remove property if the collection is an empty list in rollback script.

* Revoke R access from respondentStatements

* Revoke R access from respondentStatements

* Resolving code review conversation.

* Rename the event name

* Check NPE

* Created MigratCFVService

* Add test cases for the MigrateCaseController

* Fix court bundle issue on migration

* Deprecated courtBundleNC

* Checkstyle

* Updated due to deprecate courtBundleNC

* Rename  manage document to (OLD) Manage document

* Fixed test cases

* Squashed commit of the following:

commit e1d682fbdd9b8fb3a62f5a1e3c76bd13df220c8c
Merge: c820d5313 60ab8181d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Sep 4 15:09:17 2023 +0100

    Merge remote-tracking branch 'origin/DFPL-1464' into DFPL-1609

commit c820d5313abb1dd855d60943f2992e65d5394d9a
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 18:34:31 2023 +0100

    update cafcass noti mapping

commit d0cd924d423711799379d7b4b7a7ebcfc7e24f3b
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:28:55 2023 +0100

    fix code style check

commit e6f87390d18ef7ff51eb31302b56afcc8c694074
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:19:33 2023 +0100

    remove temporary skip logic in unit test

commit b1ab719f78e4f4229687481b5bcddb8092fb6c7d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 16:16:22 2023 +0100

    remove temporary skip logic

commit 0395efc4e9fc209fb8466beb1f9a3ced1dba5d33
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 13:11:57 2023 +0100

    remove extra line

commit 730e552a85b2ebd12dfba0bfd27715d0e689ee6a
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 12:41:35 2023 +0100

    rollback toList

commit 0b45987d6658c4cf0dc31c22e13fdd13f4d8fbcf
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 12:05:54 2023 +0100

    update test

commit 40c4f797ef1fb2306a027e55d4372dc638f66cae
Merge: d5be1372d ab7db77df
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 11:26:04 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit d5be1372ddfeed3366d713e572d46ee16e8370ed
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 11:25:41 2023 +0100

    fix check style

commit 2ff8fdc1efd459f317f7265da1af88c90d922e42
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 30 10:57:33 2023 +0100

    fix comment

commit 56d4a386acfde6884c2be473c7dd35faa981e951
Merge: 1bca23c5d 97414f1e1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 12:48:09 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit 1bca23c5d1a9f4c6071d19b0dbd7b27ce289638d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 10:31:00 2023 +0100

    fix code check

commit 40d662ab3d87188e0fb9519834b70ee9b6b5154d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 29 10:09:12 2023 +0100

    update translation

commit 9038f94ea23e733b283e371541c2a9c7748c0eca
Merge: b05520623 fc82de3d4
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Tue Aug 29 09:41:44 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit b05520623308f84ce8620292415943b858adeee5
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 24 17:49:54 2023 +0100

    add log for future debugging

commit 80cbd8a8885a07d8995b2c43f472ba58f597a588
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 24 17:24:16 2023 +0100

    update cafcass mapping

commit f41ba622f5d475ca5a64de293d9541d4694ce14f
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 23:11:12 2023 +0100

    fix cafcass doc description

commit 62da7552a08caeb451fc678bd59831e6f2e399b1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 19:18:35 2023 +0100

    backward compatible cafcass email provider

commit f11bedfcb81d8d64bd438af7fe51d90f92204e37
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 19:13:42 2023 +0100

    update cafcass category list

commit 6c3319c66b94960d5472af824c472cefe22d05d0
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 18:49:51 2023 +0100

    update cafcass noti logic

commit 95ddc4a0cb72a187cfd96cbabd456ddbb37a8dce
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 13:30:23 2023 +0100

    controller unit test

commit 83b0705aee76897d65a0be05bc6780b5b62df8df
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 12:24:04 2023 +0100

    fix bug

commit a4ff5a4c4f014c8b0523e85be5ff886b66900808
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 23 11:47:44 2023 +0100

    update translation

commit a6f0c48c1e883dc179aeab1c61866ed2f821e4d6
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 18:15:01 2023 +0100

    fix code check and unit test

commit f8ce4f7b5a0eb85cf4bb142a54fb09d793e910ec
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 17:03:50 2023 +0100

    update handler unit test

commit 48c664a2a631eb37a45a5965593f210d27aeb30e
Merge: f715b395e 8158d4b1a
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Tue Aug 22 11:35:56 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit f715b395e5c1ca4bc1a146cd7f16e4c9b0c0a5e7
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 22 11:24:39 2023 +0100

    fix send by post sending hearing document

commit 17045c05ae0371e6e355b042a7a5a144864b7603
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 21 21:54:16 2023 +0100

    update document uploaded unit test

commit 25b5d470509f6e73fed8300b38c316a59da35eae
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 21 20:12:39 2023 +0100

    update handler unit test

commit 36560f3cf68e30503045e8648174a9c444cf3a90
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:24:16 2023 +0100

    fix after resolving conflict

commit 05334d242a083b3985bd54f51221188d37acc684
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:20:43 2023 +0100

    update notification logic

commit f42299cd328c0fdd7b8b50251717ad242eff79b1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Thu Aug 17 17:19:55 2023 +0100

    revert sonarqube

commit a30c93107390d6d84a732a749ec9ceb44b5f8a97
Merge: e32221965 9f35d246f
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Thu Aug 17 17:17:59 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit e32221965cd8df2c2e117457cc7241fac4154d0b
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 17:08:52 2023 +0100

    skip sonarqube for testing

commit f97e8b0240267ad85e36c4659e1bd73325f95282
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 17:02:39 2023 +0100

    fix getting new document uploaded

commit 3a30a19755df83e23cd1e35a6357308a45807b6f
Merge: d5409e8ba d7a04477e
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Mon Aug 14 12:52:11 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit d5409e8ba285d8ab31766b957670c7bc36a08c16
Merge: 3c83c27f1 a1e4c78f1
Author: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Date:   Fri Aug 11 10:27:23 2023 +0100

    Merge branch 'DFPL-1464' into DFPL-1609

commit 3c83c27f178955d084dd2e69285783a999a374d1
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Wed Aug 9 16:38:20 2023 +0100

    ObjectHelperTest

commit 73a426128f9dd38afb298de973e9697582999ab5
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 17:43:06 2023 +0100

    update publish event

commit 2844ccf536f612a660b663317a99745095296b09
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:55:34 2023 +0100

    update interface NotifyDocumentUploaded

commit 518effce5eb7235149f5e2d4e8318a4e2fd44760
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:29:38 2023 +0100

    update comment

commit ce330b7bb408cb1e5213fac691d7573bc6787b20
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:28:18 2023 +0100

    update comment and default config

commit a0258d0a7a76d8efe97def6f9c66b581271f0417
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 15:12:11 2023 +0100

    update comment

commit e0ffe38fe57e46f17b6b6d1a215f937d6004f784
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:41:17 2023 +0100

    update comment

commit cba1a892993cd44f0f0e20c8104a5d40cff5f63d
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:10:03 2023 +0100

    remove unused comment

commit f90167d9f3766361b2d3bdfb6aae2e979c6ab3ce
Author: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Date:   Tue Aug 8 14:04:33 2023 +0100

    new managedDoc handler for sending document uploaded noti

* Fix Field Not Recognised error

* add missing properties of applicationDocuments

* add missing new fields

* Fix wrong category for  expert reports

* Revoke R access to hearingFurtherEvidenceDocuments

* Migration tests

* Hide documents

* update fpla-docker to master

* Fix court bundle rollback script

* Checkstyle

* Categorise Sealed CMO to Order

* Missing manage document instruction in demo

* remove an extra blank line

* remove logic which is not needed.

* Set lastUploadedOrder to be non-readable since previously it is set to be DO_NOT_SHOW using FieldShowCondition.

* added caseSummaryListBackup

* Categorise documents under `urgentHearingOrder` field to category: "Orders". And hide "unsealedOrder" by setting authorisation setting.

* Categorise supporting documents under CMO to category "Orders"

* Fix applicationDocuments cannot be removed after migration.

* Keep positionStatementRespondentListV2 and positionStatementChildListV2

* backup skeltonArgumentList

* Fix test case

* rollback some line changes

* Revoke read access of "ordersToBeSent" field.

* Fix issues on CAFCASS permission

* Hide document tab and hearing document tab.

* Remove access of old manage documents event.

* Suppress unused graph ql vuln

* DFPL-1775  Upload journey -updated event for Cafcass England & Cyrmu (#4727)

* Enable CAFCASS to upload document

* Enable cafcass user to upload/remove documents

* updated unit tests

* Fix test cases

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Remove done migraitons

* add back removed import

* DFPL 1609 / DFPL-1730 New Upload Document Notification- Cafcass England & Cyrmu (#4774)

* new managedDoc handler for sending document uploaded noti

* remove unused comment

* update comment

* update comment

* update comment and default config

* update comment

* update interface NotifyDocumentUploaded

* update publish event

* ObjectHelperTest

* fix getting new document uploaded

* skip sonarqube for testing

* revert sonarqube

* update notification logic

* fix after resolving conflict

* update handler unit test

* update document uploaded unit test

* fix send by post sending hearing document

* update handler unit test

* fix code check and unit test

* update translation

* fix bug

* controller unit test

* update cafcass noti logic

* update cafcass category list

* backward compatible cafcass email provider

* fix cafcass doc description

* update cafcass mapping

* add log for future debugging

* update translation

* fix code check

* fix comment

* fix check style

* update test

* rollback toList

* remove extra line

* remove temporary skip logic

* remove temporary skip logic in unit test

* fix code style check

* update cafcass noti mapping

* Update dependency @babel/core to v7.23.2 (#4769)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency codeceptjs to v3.5.6 (#4771)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.15.3 (#4773)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix not notifying Cafcass welsh

* fix not notifying cafcass welsh

* revert changes after merge

* revert changes after merge

* revert changes after merge

* revert changes after merge

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Adding postgres upgrade work to this branch, so demo can be used for initial config and testing

* fix delimiter when familyman number is null (#4820)

* Revert "fix delimiter when familyman number is null (#4820)"

This reverts commit 52af2c2d36190f7ad0a5fafff2008de78cf37cfd.

* Revert "Adding postgres upgrade work to this branch, so demo can be used for initial config and testing"

This reverts commit c7911b923152c384d86bc6b6a15acce314da2ebd.

---------

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: Paul Trelease <paul.trelease@justice.gov.uk>

* Remove duplicated entry on shuttered JSON file. (#4893)

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* Revert "DFPL-CFV FPL-CFV- Feature Branch  (#4678)" (#4894)

This reverts commit e8cacb794bf01f95504fb2b22c789e336f990de8.

Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>

* DFPl-1844: Gatekeeping not sending Order uploaded notification (#4873)

Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>

* DFPL-1854: Clear the latestRoleSent field on event start (#4874)

* DFPL-1854: Clear the latestRoleSent field on event start so it doesn't interfere when closing a message thread

* Checkstyle: remove unused import

---------

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* DFPL-1832: Make collection null safe to avoid NPE (#4806)

Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>

* DFPL-1754: Changes to build the Postgres v15 flexi server and required secrets, whilst leaving scheduler connected to existing v11 postgres database

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: Rees Pozzi <reespozzi@icloud.com>
Co-authored-by: Aaron Moriarty <95974886+amoriartyMOJ@users.noreply.github.com>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: GauravChawlaMOJ <58194626+GauravChawlaMOJ@users.noreply.github.com>
Co-authored-by: gauravchawla <gaurav-chawla@hotmail.com>
Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <praba.muthu@justice.gov.uk>
Co-authored-by: amoriartyMOJ <aaron.moriarty@justice.gov.uk>
Co-authored-by: Georgina Hall <georginahall@yahoo.com>
Co-authored-by: Georgina Hall <georginahall@Soliriun139sMBP.cust.communityfibre.co.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Braimah101 <41795070+Braimah101@users.noreply.github.com>
Co-authored-by: prabhamuthu15 <78162288+prabhamuthu15@users.noreply.github.com>
Co-authored-by: FaisalMoJ <100577377+FaisalMoJ@users.noreply.github.com>
Co-authored-by: Alistair Osborne <alistair.osborne@justice.gov.uk>
Co-authored-by: suresh-sharada <88669246+suresh-sharada@users.noreply.github.com>
Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: Chak Shing, Lo <ChakShing.Lo@justice.gov.uk>
Iphiclus pushed a commit that referenced this pull request Nov 30, 2023
* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* Add CMO_REVIEWED work allocation task

* Create work allocation task if CMO not refused

* Update test

* Add work allocation task for manage order for judges

* Implement work allocation tasks into event listeners and undo prev changes

* Add tests

* Fix tests

* checkstyle fix

* DFPL-702 Global Search (0aa11b8)

* Link to fpla-docker's commit hmcts/fpla-docker#83

* DFPL-1214: Changes to Send/Reply to Message CCD Events

* checkstyle

* DFPL-806: Add AuthorisationCaseField for fields accessed by WA

* Dfpl 1047 New event for judges to review additional applications  (#4076)

* add new event - confirmApplicationReviewed

* show review status in Tab

* update unit test

* fix ConfirmApplicationReviewedService

* fix code review

* update 1047

* fix check style

* fix err

* Update judiciary.json

* Update ReviewAdditionalApplicationServiceTest.java

* fix typo

* fix historical case data

* fix default review status not set

* fix code style check

* Update UploadAdditionalApplicationsServiceTest.java

* Update ReviewAdditionalApplicationServiceTest.java

* remove magistrate access from reviewing add app

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>

* DFPL-1092 Create New CCD Event- CTSC when Reviewing Failed Payment (WA-FPL-CCD) (#4069)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* PLEASE REVERT

* sending dummy work allocation event.

* Set variables to payment api url and fees-register api url

* sending dummy work allocation event.

* reverted

* Updating caseData when failed payment event caught

* UI flow

* fix check style

* update test case

* dont need the completion events

* dont need the completion events

* dont need the completion events

* revert secure doc store flag

* update log message

* test case

* remove extra line

* remove logging

* Fix test cases

* fix checkstyle

* fix test case

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>

* DFPL-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD) (#4086)

* DFPL-WA: Add utility function to create the work allocation dummy event

* DFPL-WA: extract var out

* DFPL-WA: Add basic test

* DFLP-1093 Create New Event-CTSC to Review Correspondence (WA-FPL-CCD)

* checkstyle fix

* resolve code review conversation

* fixing test cases

* fix test cases

* missing permission

* check if the uploader is a judge.

* fix test cases

* move featureToogleService.isNewDocumentUploadNotificationEnabled to FurtherEvidenceUploadedEventHandler

* checkstyle

* revert

* fix test cases

* update test cases

* fixing test cases

* add back the checking on uploader

* revert

* tidy up

* revert removing extra lines

* prevent NPE for cafcass flow

* missing userService

* revert

* remove duplicated code

* move the same codes to init()

* code tidy up

* reverting changes

* tidy up

* bug fix

* remove extra blank lines.

* remove extra blank lines

* add logging message

* change to use helper class for the cafcass logic

* Cafcass user also create work allocation task

* remove extra line

---------

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>

* DFPL-1191: Allow AM validation user to access case details

* Add caseworker-wa-task-configuration and caseworker-ras-validation

* Merge Dfpl 1095 into superbranch (#4181)

* DFPL-1095: Add ES index for hearing end date (!!!)

* DFPL-1095: Create initial chasing task creation job

* DFPL-1095: Add basic event for sending a reminder notification

* DFPL-1095: Update event text

* Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559

* DFPL-1095: Update ES query to find hearings now-5d ago

* DFPL-1095: add comment explaining hasCMOAssociation call

* Revert "Update Gradle to 7.5.1 (+ build.gradle changes), update cftlib to 0.19.559"

This reverts commit 96f18b4.

* DFPL-1095: fix checkstyle

* DFPL-1095: Add tests + add missing default event data builders

* DFPL-1095: Add more tests + refactor common functions

* DFPL-1095: checkstyle

* DFPL-1095: checkstyle

* DFPL-1095: Simple content provider test

* DFPL-1095: checkstyle

* DFPL-1095: Remove unnecessary feature toggle

* DFPL-1095: Add extra test + sorting hearings by date

* DFPL-1095: Add hearingIds to draft orders + add checking logic for sealed CMOs

* DFPL-1095: Fix checkstyle + broken test initiation

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Fix unit tests with new id param

* DFPL-1095: Add missing subfield for other type of HearingOrder

---------

Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>

* DFPL-702 Migration script

* fix resolving conflict errors

* Setting fields used in DMN initiation table as publishable. (#4108)

Co-authored-by: Daniel Catchpole <daniel.catchpole@justice.gov.uk>

* DFPL-972: Add role to access profiles for AM roles

* Fix missing curly bracket

* Fix checkstyle

* DFPL-1095: Fix sonar complaint

* DFPL-1095: Add basic EventHandler test

* Removing unused migration controller tests left after resolving merge conflicts

* Removing unused imports

* Grant caseworker-ras-validation permission to read caseManagementLocation

* Fix merge conflict missing commas

* Point at fpla-docker branch

* add IDAM roles: caseworker-caa and casworker-approver to RoleToAccessProfiles.json

* Add caseworker-wa-task-configuration to the case states + case type

* Fix merge accidentally removing a function

* fix checkstyle + missing curly brace in application-local

* update fpla-docker

* DFPL-1431: Add dummy migration for testing migration-tool (#4386)

* Remove 404ing submitted callback from migrateCase event

* Update suppressions.

* Add Publish attributes to all initiating events

* Add Publish attributes hearing field in submitApplication.json

* Add a dummy DateTime whilst we don't have HMC (#4433)

* Add a dummy DateTime whilst we don't have HMC

* Add hearing time in test

* Add time to gatekeeping test

* fix generator test

* DFPL-1483: Align caseData.court with caseData.caseManagementLocation (#4453)

* DFPL-1483: Get court from JSON config rather than onboardings to store in caseData.court

* DFPL-1483: Use a 'real' court ID in tests

* Publish task reconfiguration events (#4464)

* COT-317: Remove idam role mappings + update AM AccessProfiles (#4459)

* Update the jobClass to match the actual java class

* publish changeCaseName-superuser

* add suppression from branch 'master'

* Make sure court name follows 'Family Court sitting at X' pattern on transfer (#4468)

* Fix tests, don't change the High Court's name

* schedule 'overnight job' for 2pm in demo

* Add specific and challenged access for staff roles (#4475)

* Fix failing tests

* remove duplicate reviewAdditionalApplication

* Use DFPL-702 fpla-docker branch

* Fix tests after merge master

* Fix merge conflict issues

* Dfpl 1379 (#4512)

* Upgrading app insights to v3 and upgrading to java 17.

* Update app insights terraform.

* Updating Dockerfile

* Deleting test duplicated in UpdateCMOHearingTest shouldThrowExceptionWhenNoHearingFoundForTheCMOId

* Bumping chart version/ fixing aliases

* Correcting resource group names for app insights and key vault

* Correcting app insights name.

* Disable functional tests in preview to test rest of pipeline.

* Move connection string app insights secret creation to main.tf.

* Reinstate functional tests.

* Disable ithc sync with prod

* Undoing change to remove syncing with ithc branch.

---------

Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>

* DFPL-1629: Keep caseManagementLocation upto date when transferring courts (#4533)

* Update caseManagementLocation on transfer court + add test

* move variable closer for checkstyle

* revert change, has to be recorded before we transfer...

* mark oldCourt as final

* Revert "Dfpl 1379 (#4512)"

This reverts commit 61b5117.

* Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks

* Remove test for post submit callback if we're removing it

* checkstyle

* Revert "checkstyle"

This reverts commit 542e85a.

* Revert "Remove test for post submit callback if we're removing it"

This reverts commit abdfb39.

* Revert "Remove post-submit callback in message judge controllers so it doesn't reconfigure tasks"

This reverts commit b538af6.

* Revert possible regression

* Code changes + toggle off event ready for release

* Revert "Revert possible regression"

This reverts commit 10ec15a.

* checkstyle

* fix test clash

* fix dupe RoleToAccessProfile

* DFPL-1561: Re-add code for changing flows

* DFPL-1561: Re-add code for changing flows

* fix regression

* fix checkstyle

* Refactor + move duped code into JudicialService

* add elinks header

* merge issue

* Revert JRD Header

* DISABLE Outstanding orders overnight job

* DISABLE publishing events/fields

* Add superuser IDAM AccessProfile

* Add WA user + global search access profile for preview

* bump xui-webapp chart

* Bumping chart version/ fixing aliases

* Enable test logging

* Revert "Enable test logging"

This reverts commit a6fffb0.

---------

Co-authored-by: Qasim Nawaz <qasim.nawaz@justice.gov.uk>
Co-authored-by: Qasim Nawaz <96177697+qasimnawaz-moj@users.noreply.github.com>
Co-authored-by: Ashley Wong <ashley.wong@justice.gov.uk>
Co-authored-by: Ashley Wong <50691452+so99y@users.noreply.github.com>
Co-authored-by: Chak Shing Lo <95437003+chak-shing-lo-justice@users.noreply.github.com>
Co-authored-by: randersonMOJ <97732206+randersonMOJ@users.noreply.github.com>
Co-authored-by: JJonesMoJ <101256639+JJonesMoJ@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <94848497+jamesrferguson1@users.noreply.github.com>
Co-authored-by: jamesrferguson1 <james.ferguson1@justice.gov.uk>
Co-authored-by: hmcts-jenkins-d-to-i <62423932+hmcts-jenkins-d-to-i[bot]@users.noreply.github.com>
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.

2 participants