TenantAtlas/database/migrations
Ahmed Darrazi 86bb4cdbd6 feat: Phase 1+2 - Assignments & Scope Tags foundation
Phase 1: Setup & Database (13 tasks completed)
- Add assignments JSONB column to backup_items table
- Add group_mapping JSONB column to restore_runs table
- Extend BackupItem model with 7 assignment accessor methods
- Extend RestoreRun model with 8 group mapping helper methods
- Add scopeWithAssignments() query scope to BackupItem
- Update graph_contracts.php with assignments endpoints
- Create 5 factories: BackupItem, RestoreRun, Tenant, BackupSet, Policy
- Add 30 unit tests (15 BackupItem, 15 RestoreRun) - all passing

Phase 2: Graph API Integration (16 tasks completed)
- Create AssignmentFetcher service with fallback strategy
- Create GroupResolver service with orphaned ID handling
- Create ScopeTagResolver service with 1-hour caching
- Implement fail-soft error handling for all services
- Add 17 unit tests (5 AssignmentFetcher, 6 GroupResolver, 6 ScopeTagResolver) - all passing
- Total: 71 assertions across all Phase 2 tests

Test Results:
- Phase 1: 30/30 tests passing (45 assertions)
- Phase 2: 17/17 tests passing (71 assertions)
- Total: 47/47 tests passing (116 assertions)
- Code formatted with Pint (PSR-12 compliant)

Next: Phase 3 - US1 Backup with Assignments (12 tasks)
2025-12-22 02:10:35 +01:00
..
0001_01_01_000000_create_users_table.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
0001_01_01_000001_create_cache_table.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
0001_01_01_000002_create_jobs_table.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
2025_12_10_000100_create_tenants_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000110_create_policies_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000120_create_policy_versions_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000130_create_backup_sets_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000140_create_backup_items_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000150_create_restore_runs_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_10_000160_create_audit_logs_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_11_121623_add_app_fields_to_tenants_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_11_122423_create_tenant_permissions_table.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_11_130000_add_soft_deletes_and_status_housekeeping.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_11_192942_add_is_current_to_tenants.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
2025_12_12_150000_add_rbac_fields_to_tenants.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
2025_12_12_151000_add_rbac_status_fields_to_tenants.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
2025_12_12_160000_add_rbac_summary_to_tenants.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
2025_12_12_170500_add_rbac_role_definition_columns_to_tenants.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
2025_12_13_212126_create_settings_catalog_definitions_table.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
2025_12_20_221547_create_settings_catalog_categories_table.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
2025_12_22_004948_add_assignments_to_backup_items.php feat: Phase 1+2 - Assignments & Scope Tags foundation 2025-12-22 02:10:35 +01:00
2025_12_22_004957_add_group_mapping_to_restore_runs.php feat: Phase 1+2 - Assignments & Scope Tags foundation 2025-12-22 02:10:35 +01:00