Guard directional ticket link writes #82

Merged
Twyco merged 1 commits from koda/ticket-link-counterparts-v2-review-fixes into koda/ticket-link-counterparts-v2 2026-05-24 10:01:19 +00:00
Contributor

Summary

  • lock the two ticket rows before looking up or creating a link
  • keep the directional source/target behavior while serializing competing writes for the same pair
  • add a regression test that reuses the existing row when a reverse-direction link is saved again

Verification

  • APP_KEY=base64:wjZDR2PGCnMQwl5lcYY0c/MUNvn0Qa7z4CpRi4COr8M= php artisan test tests/Feature/Projects/ProjectTicketLinkControllerTest.php tests/Feature/Projects/ProjectTicketControllerTest.php tests/Feature/Models/TicketLinkTest.php
## Summary - lock the two ticket rows before looking up or creating a link - keep the directional source/target behavior while serializing competing writes for the same pair - add a regression test that reuses the existing row when a reverse-direction link is saved again ## Verification - APP_KEY=base64:wjZDR2PGCnMQwl5lcYY0c/MUNvn0Qa7z4CpRi4COr8M= php artisan test tests/Feature/Projects/ProjectTicketLinkControllerTest.php tests/Feature/Projects/ProjectTicketControllerTest.php tests/Feature/Models/TicketLinkTest.php
Koda added 1 commit 2026-05-24 09:53:58 +00:00
Twyco merged commit e67ffd459e into koda/ticket-link-counterparts-v2 2026-05-24 10:01:19 +00:00
Twyco deleted branch koda/ticket-link-counterparts-v2-review-fixes 2026-05-24 10:01:20 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: PetschStudios/KanbanGit#82