shoc-backend/Data.SeaHavenIndustries
Alexandre Brandizzi 89376e99e4 fix(uplifts): resolve work-order uplifts through owned dispatches (SH-393)
Board create left the new primary dispatch with no WorkOrderId, so uplifts
created on those work orders were written to a dispatch the work order's
uplift reads never resolve: not listed, allowance never consumed, queue WO
number blank. The same orphan made ApptDate/vendor patches fail with
"A primary dispatch is required".

- Board create backfills Dispatch.WorkOrderId after the first save.
- Uplift create resolves its dispatch through the read-side scope
  (non-deleted, owned or linked); otherwise the stable
  "no primary dispatch" error.
- Data-only migration assigns existing orphaned primaries to the single
  work order naming them primary; idempotent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 21:22:13 -03:00
..
Auth Merge remote-tracking branch 'origin/dev' into HEAD 2026-09-17 12:50:09 -04:00
Enums feat(permissions): add team member permission policy foundation (SH-327) 2026-09-16 17:48:37 -03:00
Migrations fix(uplifts): resolve work-order uplifts through owned dispatches (SH-393) 2026-09-24 21:22:13 -03:00
Models feat(uplifts): expose dispatcher, technician and schedule on queue read (SH-209) 2026-09-18 12:49:25 -03:00
Data.SeaHavenIndustries.csproj Add calendar/events backend API (#8) 2026-06-22 18:46:46 -04:00