Skip to content

Sync the incident status after editing or deleting updates in the dashboard - #497

Open
jayhemnani9910 wants to merge 1 commit into
cachethq:mainfrom
jayhemnani9910:fix/sync-status-on-dashboard-update-delete
Open

jayhemnani9910 wants to merge 1 commit into
cachethq:mainfrom
jayhemnani9910:fix/sync-status-on-dashboard-update-delete

Conversation

@jayhemnani9910

Copy link
Copy Markdown
Contributor

Fixes #494.

Deleting an update from an incident's "Updates" tab left the incident on the deleted update's status. With "Cause identified" then "All fixed", deleting "All fixed" kept the incident Fixed in the list, the API and on the status page, and a Fixed incident can't take new updates to correct it. The tab uses Filament's stock Edit, Delete and bulk Delete actions, which never call SyncIncidentStatus (the API and MCP paths go through DeleteUpdate / EditUpdate and are fine).

The three actions now run SyncIncidentStatus on the owning incident afterwards. Schedules are left alone.

Tested: three Pest tests in IncidentResourceTest (delete, bulk delete, edit a status from the tab) fail on main and pass with the change. Full suite in a local PHP 8.5 container: the same 71 failures on main and on this branch (500s from tests that render pages, environment), everything else passes. Pint passes.

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.

Deleting an incident update in the dashboard leaves the incident on the deleted update's status

1 participant