Skip to content

Fix legacy incident component attachment - #414

Merged
jbrooksuk merged 1 commit into
mainfrom
codex/fix-incident-component-attachment
Aug 5, 2026
Merged

Fix legacy incident component attachment#414
jbrooksuk merged 1 commit into
mainfrom
codex/fix-incident-component-attachment

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

  • attach the legacy component_id / component_status payload to the incident's component pivot
  • retain support for the existing multi-component request payload
  • add an API regression test covering the legacy request

Root cause

The create action validated the legacy fields but only synchronized components supplied through the components array, leaving the legacy component unattached.

Closes cachethq/cachet#4611

Validation

  • vendor/bin/pest tests/Feature/Api/IncidentTest.php
  • vendor/bin/pint --dirty
  • vendor/bin/phpstan analyse --memory-limit=1G

@jbrooksuk
jbrooksuk force-pushed the codex/fix-incident-component-attachment branch from f0a768e to dc119b8 Compare August 5, 2026 09:11
@jbrooksuk
jbrooksuk marked this pull request as ready for review August 5, 2026 09:11
@jbrooksuk
jbrooksuk merged commit 17f1bd0 into main Aug 5, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the codex/fix-incident-component-attachment branch August 5, 2026 09:16
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.

Creating incidents with components relationed

1 participant