mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-06 00:42:08 +00:00
#144 branched from the SH-210 decision-actions commit before the SH-207/SH-208 read-contract corrections landed, so it re-implemented workOrderClosed, attachmentCount, decidedByName, and pendingExposureTotal with stale semantics: it projected WorkerOrderNumber (the CRM external id) instead of InternalWONumber (what the board renders) and summed raw RequestedNTE, which double-counts the new NTE total on vendor-portal rows across sequential approvals. Merge origin/feat/ab/sh-210-uplift-decisions (#141, what lands) in and resolve every conflict in #141's favour, so those fields and their granted-amount exposure math now come from #141 rather than being duplicated here. Keep only the two deltas #144 actually adds on top of #141: - attachmentCount counts non-deleted UpliftEvidence documents on the dispatch, not every completion document, so completion photos no longer inflate the chip; - the queue read resolves the effective work order via the primary-plus-linked (DispatchWorkOrders) convention the sibling reads use, so a dispatch linked only through that table surfaces its WO context, closed flag, and exposure. Covered by an in-memory test and a SQLite relational test that proves the fallback translates to SQL. Drop the superseded attachment-count test that asserted completion documents count, and align the relational test to seed InternalWONumber. |
||
|---|---|---|
| .. | ||
| Fixtures | ||
| ConcurrencyExceptionFilterTests.cs | ||
| LifecycleStatusMapperTests.cs | ||
| Phase4SearchIndexesSqlServerTests.cs | ||
| SeaHavenIndustries.Tests.csproj | ||
| SH138SiteContactsSqlServerTests.cs | ||
| SH221LocationAccountScopeSqlServerTests.cs | ||
| SH249TradesVocabularyMigrationTests.cs | ||
| SH303ServicesRegistryMigrationTests.cs | ||
| ShocWebhookVectorTests.cs | ||
| SyncFieldMergePolicyTests.cs | ||
| TestFileStoragePort.cs | ||
| UpliftQueueReadRelationalTests.cs | ||
| WorkOrderAccountScopeTests.cs | ||
| WorkOrderAccountTestHelpers.cs | ||
| WorkOrderAddonCutoffTests.cs | ||
| WorkOrderAuditServiceTests.cs | ||
| WorkOrderBoardCancelServiceTests.cs | ||
| WorkOrderBoardConcurrencyTests.cs | ||
| WorkOrderBoardCreateRelationalTests.cs | ||
| WorkOrderBoardCreateServiceTests.cs | ||
| WorkOrderBoardCreateSyncLockTests.cs | ||
| WorkOrderBoardDispatchAssignmentTests.cs | ||
| WorkOrderBoardFieldMutationsTests.cs | ||
| WorkOrderBoardInactiveVendorTests.cs | ||
| WorkOrderBoardMutationRulesTests.cs | ||
| WorkOrderBoardPatchLifecycleRulesTests.cs | ||
| WorkOrderBoardSearchTests.cs | ||
| WorkOrderBoardServiceTests.cs | ||
| WorkOrderBoardUpdateServiceTests.cs | ||
| WorkOrderCompletedSelectiveLockTests.cs | ||
| WorkOrderCompletionFreezeTests.cs | ||
| WorkOrderDerivedFieldsTests.cs | ||
| WorkOrderFieldLockServiceTests.cs | ||
| WorkOrderMediaConcurrencyRelationalTests.cs | ||
| WorkOrderMigrationDiscoveryTests.cs | ||
| WorkOrderNumberNormalizerTests.cs | ||
| WorkOrderPhase6Tests.cs | ||
| WorkOrderPhase7CoexistenceTests.cs | ||
| WorkOrderReconciliationAuthTests.cs | ||
| WorkOrderReconciliationTests.cs | ||
| WorkOrderTypeMapperTests.cs | ||
| WorkOrderUpliftServiceTests.cs | ||
| WorkOrderWebhookTests.cs | ||
| WorkOrderWeekRolledTests.cs | ||