feat(auth): migrate assets + projects to TenantId (PMS-139 sweep batch 2) #160
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-139-sweep-assets-projects"
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?
What
Second per-module batch of the PMS-139 sweep: migrates
assetsandprojectstoTenantId.Pattern
RequireAssets { user: u, .. }/RequireProjects { user: u, .. }-> passu.tenant().tenant_id: TenantId.assets'performer: Uuid(a user id, not a tenant) is deliberately left asUuid.Transitional
.get()(4 sites)Both services write to the audit trail via the
audit_writehub, which stays onUuiduntil it is swept last (it's called by many modules). So thetenant_idargument is unwrapped withtenant_id.get()at those four call sites (credential create/delete inassets;update_task/update_projectinprojects), each with a// PMS-139note. They disappear whenaudit_writeis migrated.Tests
--test assets(4),--test projects(4), and the doctest guard all green;clippy --all-targetsclean. Both modules' integration tests go through HTTP, so nofrom_trustedtest changes were needed.Progress
Migrated:
reports,rmm,time_tracking,assets,projects. ~12 modules remain; dev-docs cross-cutting #8 updated.🤖 Generated with Claude Code