fix/pms-210-fmt-sweep-batch3 #162
Loading…
Reference in a new issue
No description provided.
Delete branch "david/fix/pms-210-fmt-sweep-batch3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
u.tenant()(theTenantScopedtrait), and every public service method plus module-local helper takestenant_id: TenantIdinstead of a bareUuid, so a wrong-tenant id is a compile error rather than a silent cross-tenant read.The transparent newtype encodes/decodes/Displays as its inner
Uuid, so.bind(tenant_id)and%tenant_idtracing are unchanged. The only unwraps are at the not-yet-sweptaudit_writehub in contracts (nine call sites usetenant_id.get()transitionally) - those vanish when the audit hub is swept last.Cross-tenant workers (calendar reminder, sla sweep, contract lifecycle) are untouched: they read tenant ids off DB-projected rows as
Uuidand fan out through the notifications/audit hubs, never calling a migrated method. The calendarReminderCandidate/ReminderRowprojections keep theirUuidfields for the same reason.Direct-construction tests (
tests/contracts.rs,tests/sla.rs) wrap their literal tenant ids withTenantId::from_trusted(...), matching the batch-1tests/rmmprecedent.Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
b77e6718) failed at the cargo fmt --check step: rustfmt flagged import ordering and multi-line argument wrapping in the calendar/contracts/sla services and the contracts/sla tests introduced by the TenantId migration. Running cargo fmt over the workspace resolves every diff with no functional change. just check (cargo check --all-targets, clippy --all-targets, fmt --all --check) is green.#PMS-210
Closing as redundant. This PR's only commit was the narrow
cargo fmtfixup on calendar/sla/contracts (PMS-210). That formatting is already inmain: the PMS-139 TenantId sweep continued through batches 5-8, then PR #173 (chore: cargo fmt --all after the PMS-139 TenantId sweep, commitc441b1c) reformatted the whole workspace including those files, superseding this fixup. Rebasing this PR's head onto currentmaindrops the commit ("patch contents already upstream"), leaving nothing to merge.Pull request closed