Conversation
… retreive an enforcement
…312-confirm-eviction-summary
…viction-summary' into HDPI-4312-confirm-eviction-summary
…o `ConfirmEviction`, reorganise page configuration classes, update the event ID and imports, and adjust `PCSCaseView` to handle optional enforcement orders and bailiff dates with new date formatting helpers. Adjust repository import and update the test suite accordingly.
…312-confirm-eviction-summary
…he old `EvictionDatePage` and `EnforcementOrderRepository` from `PCSCaseView`. Update page configuration tests, helper imports, and add comprehensive tests for the new `EnforcementOrderMediator`. This refactor centralises date formatting, bailiff‑date checks, and UI markup generation.
…nd logger, make PageConfigurerHelper final with a private constructor, remove debug logs from the mediator, and hide the showConfirmEvictionJourney field in CaseType.
CCD diff summary👉 Full report: https://github.com/hmcts/pcs-api/actions/runs/23911136026?check_suite_focus=true CaseField.json
AuthorisationCaseEvent/AuthorisationCaseEvent.json
AuthorisationCaseField/caseworker-pcs-solicitor.json
AuthorisationCaseField/DEFENDANT.json
CaseEvent/confirmEviction.json
ComplexTypes/StatementOfTruthDetails.json
ComplexTypes/2_DefendantResponses.json
CaseEventToFields/confirmEviction.json
CaseTypeTab/2_summary.json
|
src/main/java/uk/gov/hmcts/reform/pcs/ccd/EnforcementOrderMediator.java
Outdated
Show resolved
Hide resolved
src/main/resources/db/migration/V075__add_bailiff_date_enf_case.sql
Outdated
Show resolved
Hide resolved
src/test/java/uk/gov/hmcts/reform/pcs/ccd/EnforcementOrderMediatorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/uk/gov/hmcts/reform/pcs/ccd/EnforcementOrderMediatorTest.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/gov/hmcts/reform/pcs/ccd/EnforcementOrderMediator.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/gov/hmcts/reform/pcs/ccd/entity/enforcetheorder/EnforcementOrderEntity.java
Outdated
Show resolved
Hide resolved
…312-confirm-eviction-summary
…r; migrate to LocalDateTime, update DB migration to plain timestamp, and simplify PageConfigurerHelper. This consolidates date logic directly in the mediator and aligns tests with the new date handling.
…312-confirm-eviction-summary # Conflicts: # src/main/java/uk/gov/hmcts/reform/pcs/ccd/PCSCaseView.java # src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/PCSCase.java # src/test/java/uk/gov/hmcts/reform/pcs/ccd/PCSCaseViewTest.java
…use first element if present.
… is not changed to prepareConfirmEvictionWithDates
| if (claims != null && !claims.isEmpty()) { | ||
| // At this point we do not know which Enforcement Order the Confirm Eviction is placed against. | ||
| // this to be confirmed beyond this ticket scope (HDPI-4312) | ||
| List<EnforcementOrderEntity> byClaimId = enforcementOrderRepository |
There was a problem hiding this comment.
Minor - could it be named to match the returned type ?
| return Optional.empty(); | ||
| } | ||
|
|
||
| private void prepareConfirmEvictionWithDates(PCSCase pcsCase, LocalDateTime localDateTime) { |
There was a problem hiding this comment.
Minor - can the 'Confirm' be removed from names as it's just part of the event name
| getEvictionCancellationDeadline(localDateTime))); | ||
| } | ||
|
|
||
| private static void prepareConfirmEvictionWithNoDates(PCSCase pcsCase) { |
| @@ -0,0 +1,81 @@ | |||
| package uk.gov.hmcts.reform.pcs.ccd; | |||
There was a problem hiding this comment.
Minor - could this be moved to a sub-package ?
…e additional line breaks.
https://tools.hmcts.net/jira/browse/HDPI-4312
This PR introduces the "Confirm Eviction" journey into the Possession Claim Service (PCS), allowing claimants to confirm eviction details once a bailiff date has been assigned.
Introduced to handle logic for displaying eviction requirements.
EnforcementOrderMediatorDynamically generates summary markup and determines if the "Confirm Eviction" journey should be visible based on the presence of a in the enforcement record.
bailiffDateAdded a new
confirmEvictionevent accessible to .PCS_SOLICITORUpdated
CaseTypeto include a new "Summary" tab field () and a hidden field for journey visibility control ().confirmEvictionSummaryMarkup``showConfirmEvictionJourneyImplemented new UI pages: and .
ConfirmEvictionDetailsPage``EvictionDatePageAdded (Timestamp) to ( table) via a new flyway migration (
V070).bailiffDate``EnforcementOrderEntity``enf_caseUpdated domain model with necessary fields for eviction summaries.
PCSCaseAdded to .
findByClaimId``EnforcementOrderRepositoryComprehensive unit tests for ,
PCSCaseViewintegration, and page configuration.EnforcementOrderMediatorUpdated test case generation JSON files to support the new enforcement fields.