TenantAtlas/app
Ahmed Darrazi c3bdcf4d2d feat(004): implement PolicyCaptureOrchestrator for assignment consistency
BREAKING CHANGE: Assignment capture flow completely refactored

Core Changes:
- Created PolicyCaptureOrchestrator service for centralized capture coordination
- Refactored BackupService to use orchestrator (version-first approach)
- Fixed domain model bug: PolicyVersion now stores assignments (source of truth)
- BackupItem references PolicyVersion and copies assignments for restore

Database:
- Added assignments, scope_tags, assignments_hash, scope_tags_hash to policy_versions
- Added policy_version_id foreign key to backup_items
- Migrations: 2025_12_22_171525, 2025_12_22_171545

Services:
- PolicyCaptureOrchestrator: Intelligent version reuse, idempotent backfilling
- VersionService: Enhanced to capture assignments during version creation
- BackupService: Uses orchestrator, version-first capture flow

UI:
- Moved assignments widget from Policy to PolicyVersion view
- Created PolicyVersionAssignmentsWidget Livewire component
- Updated BackupItemsRelationManager columns for new assignment fields

Tests:
- Deleted BackupWithAssignmentsTest (old behavior)
- Created BackupWithAssignmentsConsistencyTest (4 tests, all passing)
- Fixed AssignmentFetcherTest and GroupResolverTest for GraphResponse
- All 162 tests passing

Issue: Assignments/scope tags not displaying in BackupSet items table (UI only)
Status: Database contains correct data, UI column definitions need adjustment
2025-12-22 20:19:10 +01:00
..
Console/Commands dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
Filament/Resources feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
Http/Controllers Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
Jobs feat(004): Phase 3 - US1 Backup with Assignments (96% tests) 2025-12-22 14:40:45 +01:00
Livewire feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
Models feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
Providers dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
Services feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
Support feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00