TenantAtlas/tests/Feature/Filament
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
..
AppProtectionPolicySettingsDisplayTest.php feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
BackupCreationTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
ConditionalAccessPreviewOnlyTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
GroupPolicyConfigurationHydrationTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
GroupPolicyConfigurationNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
GroupPolicyConfigurationRestoreTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
HousekeepingTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
MalformedSnapshotWarningTest.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
ODataTypeMismatchTest.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
PolicyCaptureSnapshotOptionsTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
PolicyListingTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
PolicySettingsDisplayTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
PolicyVersionReadableLayoutTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
PolicyVersionRestoreToIntuneTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
PolicyVersionScopeTagsDisplayTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
PolicyVersionSettingsTest.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
PolicyVersionTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
PolicyViewSettingsCatalogReadableTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
RestoreExecutionTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
RestoreItemSelectionTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
RestorePreviewTest.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
SettingsCatalogPolicyHydrationTest.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
SettingsCatalogPolicyNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
SettingsCatalogPolicyNormalizedDisplayTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
SettingsCatalogPolicySyncTest.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
SettingsCatalogRestoreApplySettingsPatchTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
SettingsCatalogRestoreTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
SettingsCatalogSettingsTableRenderTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
TenantMakeCurrentTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
TenantRbacWizardTest.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
TenantSetupTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00