TenantAtlas/tests/Feature
ahmido 61b0b1bc23 feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13)
Problem: Restore nutzt bisher den Snapshot aus dem BackupSet (BackupItem). Wenn der Snapshot “unvollständig”/nicht der gewünschte Stand ist, landen nach Restore nur wenige Admin-Template-Settings in Intune.
Lösung:
Neue Action “Restore to Intune” direkt an einer konkreten PolicyVersion (inkl. Dry-Run Toggle) → reproduzierbarer Rollback auf exakt diese Version.
Restore-UI zeigt jetzt PolicyVersion-Nummer (version: X) in der Item-Auswahl + BackupSet Items Tabelle hat eine Version-Spalte.
Implementierung:
RestoreService::executeFromPolicyVersion() erzeugt dafür einen kleinen, temporären BackupSet+BackupItem aus der Version und startet einen normalen RestoreRun.
Pest-Test: PolicyVersionRestoreToIntuneTest.php
Specs/TODO:
Offene Follow-ups sind dokumentiert in tasks.md unter “Open TODOs (Follow-up)”.
QA (GUI):
Inventory → Policies → <Policy> → Versions → Restore to Intune (erst Dry-Run, dann Execute)
Backups & Restore → Restore Runs → Create (bei Items steht version: X)
Backups & Restore → Backup Sets → <Set> (Version-Spalte)
Tests: PolicyVersionRestoreToIntuneTest.php

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local>
Reviewed-on: #13
2025-12-30 01:50:05 +00:00
..
Filament feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
Jobs feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
AdminConsentCallbackTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
BackupItemReaddTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BackupWithAssignmentsConsistencyTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BulkDeleteBackupSetsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkDeleteMixedStatusTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkDeletePoliciesAsyncTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkDeletePoliciesTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkDeleteRestoreRunsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkExportFailuresTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkExportToBackupTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkForceDeleteBackupSetsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkForceDeletePolicyVersionsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkForceDeleteRestoreRunsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkProgressNotificationTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPruneSkipReasonsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPruneVersionsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkRestoreBackupSetsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkRestorePolicyVersionsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkRestoreRestoreRunsTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkSyncPoliciesTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkTypeToConfirmTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkUnignorePoliciesTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
ExampleTest.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
FoundationBackupTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
PolicyVersionViewAssignmentsTest.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
RestoreAssignmentApplicationTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
RestoreGroupMappingTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
RestoreRunArchiveGuardTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
RestoreRunRerunTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
RestoreScopeTagMappingTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
SettingsCatalogDefinitionResolverTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
VersionCaptureWithAssignmentsTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00