shoc-backend/SeaHaven.DataServices
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
..
DependencyInjection backend changes 2026-05-14 11:00:12 -05:00
Dto feat(team-members): support pending member creation (SH-325) 2026-09-16 21:41:55 -03:00
Helpers fix(workorders): persist manual POC override with audit and site-follow (SH-379) 2026-09-18 14:30:54 -03:00
Implementation fix(uplifts): resolve work-order uplifts through owned dispatches (SH-393) 2026-09-24 21:22:13 -03:00
Interfaces fix(uplifts): resolve work-order uplifts through owned dispatches (SH-393) 2026-09-24 21:22:13 -03:00
Models feat(notifications): feed assignments, comments, mentions and uplift decisions to the user they concern 2026-09-18 13:15:33 -03:00
Properties feat(vendors): add directory filters and details API (#25) 2026-07-23 15:55:47 +00:00
SeaHaven.DataServices.csproj refactor 2026-04-28 18:55:14 -05:00