TenantAtlas/app/Filament/Resources
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
..
BackupSetResource feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
PolicyResource feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
PolicyVersionResource/Pages feat(004): implement PolicyCaptureOrchestrator for assignment consistency 2025-12-22 20:19:10 +01:00
RestoreRunResource/Pages feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
TenantResource/Pages Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
BackupSetResource.php feat(004): Phase 3 - US1 Backup with Assignments (96% tests) 2025-12-22 14:40:45 +01:00
PolicyResource.php docs(004): Add Graph API permissions documentation 2025-12-22 16:03:21 +01:00
PolicyVersionResource.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
RestoreRunResource.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
TenantResource.php feat(ui): Add color coding to all status badges 2025-12-22 16:26:10 +01:00