Skip to content

HDPI-7667: set up ccd-case-disposer in preview environment to run every 10 mins#2194

Draft
arun-hmcts wants to merge 2 commits into
HDPI-3460-delete-unissued-claimfrom
HDPI-7667-preview-case-disposer
Draft

HDPI-7667: set up ccd-case-disposer in preview environment to run every 10 mins#2194
arun-hmcts wants to merge 2 commits into
HDPI-3460-delete-unissued-claimfrom
HDPI-7667-preview-case-disposer

Conversation

@arun-hmcts

@arun-hmcts arun-hmcts commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Jira link

See HDPI-7667

Change description

This PR sets up the ccd-case-disposer service on Preview environment to run every 10 minutes.

This PR depends on PR-2141 which implements the delete case event and sets the ttlIncrement to -1 (yesterday's date) to allow the ccd-case-disposer to pick up expired cases with a date before now.

Testing done

  1. Created a draft case in XUI.
  2. Ran the Delete case event in XUI.
  3. Waited for the next scheduled cron job to run to pick up this case.
  4. Checked in XUI Case List that the case is removed from the list.

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

@github-actions

Copy link
Copy Markdown

CCD diff summary

👉 Full report: https://github.com/hmcts/pcs-api/actions/runs/29490847143?check_suite_focus=true

AuthorisationCaseState.json

UserRoleCaseStateIDCRUD
+[CLAIMANTSOLICITOR]
+AWAITING_SUBMISSION_TO_HMCTS
+CRUD
+[CREATOR]
+AWAITING_SUBMISSION_TO_HMCTS
+CRUD
+[CLAIMANTSOLICITOR]
+DELETED
+CRU
+[CREATOR]
+DELETED
+CRU
+[DEFENDANTSOLICITOR]
+DELETED
+CRUD
+[DEFENDANT]
+DELETED
+CRUD
+[CLAIMANTSOLICITOR]
+PENDING_CASE_ISSUED
+CRUD
+[CREATOR]
+PENDING_CASE_ISSUED
+CRUD

CaseField.json

RegularExpressionMaxSearchableMinFieldTypeParameterHintTextLabelIDFieldType
+
+
+
+
+
+
+Set up TTL
+TTL
+TTL
+
+
+
+
+
+
+---
+deleteThisCase-separator
+Label
+
+
+
+
+
+
+Are you sure you want to permanently delete this case? You will no longer be able to view the details in the future.
+deleteUnsubmittedClaim
+YesOrNo

State.json

TitleDisplayNameIDDescription
+
+Deleted
+DELETED
+Deleted

AuthorisationCaseEvent/AuthorisationCaseEvent.json

UserRoleCaseEventIDCRUD
+[CLAIMANTSOLICITOR]
+deleteThisCase
+CRUD
+[CREATOR]
+deleteThisCase
+CRUD

AuthorisationCaseField/CLAIMANTSOLICITOR.json

UserRoleCaseFieldIDCRUD
+[CLAIMANTSOLICITOR]
+caseTitleMarkdown
+R
+[CLAIMANTSOLICITOR]
+claimantNames
+R
+[CLAIMANTSOLICITOR]
+dashboardData
+R
+[CLAIMANTSOLICITOR]
+dateIssuedString
+R
+[CLAIMANTSOLICITOR]
+defendantNames
+R
+[CLAIMANTSOLICITOR]
+deleteThisCase-separator
+CR
+[CLAIMANTSOLICITOR]
+deleteUnsubmittedClaim
+CRUD
+[CLAIMANTSOLICITOR]
+nextStepsMarkdown
+R
+[CLAIMANTSOLICITOR]
+nextStepsMarkdownLabel
+R
+[CLAIMANTSOLICITOR]
+postCode
+R

AuthorisationCaseField/CREATOR.json

CRUDCaseFieldIDUserRole
+R
+caseTitleMarkdown
+[CREATOR]
+R
+claimantNames
+[CREATOR]
+R
+dashboardData
+[CREATOR]
+R
+dateIssuedString
+[CREATOR]
+R
+defendantNames
+[CREATOR]
+CR
+deleteThisCase-separator
+[CREATOR]
+CRUD
+deleteUnsubmittedClaim
+[CREATOR]
+R
+nextStepsMarkdown
+[CREATOR]
+R
+nextStepsMarkdownLabel
+[CREATOR]
+R
+postCode
+[CREATOR]

CaseEvent/deleteThisCase.json

DescriptionEndButtonLabelEventEnablingConditionIDNamePostConditionStatePreConditionState(s)PublishShowEventNotesShowSummaryTTLIncrement
+Delete this claim
+Save and continue
+[STATE]="AWAITING_SUBMISSION_TO_HMCTS" OR [STATE]="PENDING_CASE_ISSUED"
+deleteThisCase
+Delete this claim
+*
+AWAITING_SUBMISSION_TO_HMCTS;PENDING_CASE_ISSUED
+N
+N
+N
+0

CaseEventToFields/deleteThisCase.json

CallBackURLMidEventCaseEventIDCaseFieldIDDisplayContextPageColumnNumberPageDisplayOrderPageFieldDisplayOrderPageIDPageLabel
+http://localhost:3206/callbacks/mid-event?page=deleteThisCase&eventId=deleteThisCase
+deleteThisCase
+deleteThisCase-separator
+READONLY
+1
+1
+1
+deleteThisCase
+Delete this case
+deleteThisCase
+deleteUnsubmittedClaim
+MANDATORY
+1
+1
+2
+deleteThisCase
+Delete this case
+Y

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.

1 participant