Skip to content

Comments

FOUR-28794: Delete notifications tied to case on delete and add test#8685

Merged
eiresendez merged 1 commit intoepic/FOUR-28600from
observation/FOUR-28794
Jan 16, 2026
Merged

FOUR-28794: Delete notifications tied to case on delete and add test#8685
eiresendez merged 1 commit intoepic/FOUR-28600from
observation/FOUR-28794

Conversation

@eiresendez
Copy link
Contributor

@eiresendez eiresendez commented Jan 16, 2026

Issue & Reproduction Steps

Deleting a case leaves stale notifications (comments, file shares, task created/completed, reassigned) that link to deleted requests, resulting in OOPS/404 when opened.

Solution

  • Delete notifications by data->request_id for the case and by data->type (COMMENT, FILE_SHARED, TASK_CREATED, TASK_COMPLETED, TASK_REASSIGNED) during case deletion.

How to Test

  1. Run phpunit --filter CaseDeleteTest.
  2. Optionally reproduce manually: create a case with comment/file share/task/reassignment notifications, delete the case, verify those notifications are removed.

Related Tickets & Packages

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@eiresendez eiresendez merged commit b5dd0ac into epic/FOUR-28600 Jan 16, 2026
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants