TenantAtlas/specs/048-backup-restore-ui-graph-safety/quickstart.md
Ahmed Darrazi bf183347ac feat(048): enforce graph-safe backup/restore UI
Add fail-hard Graph guard tests for Backup Sets index + Restore wizard create, and refactor restore group mapping to be DB-only with masked fallback labels.
2026-01-11 01:06:51 +01:00

37 lines
1.0 KiB
Markdown

# Quickstart: Backup/Restore UI Graph-Safety (048)
This quickstart is for validating the **UI render Graph-safety** guardrails locally.
## Prerequisites
- Laravel Sail running (recommended)
- Database migrated
## Local setup (Sail)
1) Start Sail
- `./vendor/bin/sail up -d`
2) Run migrations
- `./vendor/bin/sail artisan migrate`
## Run the targeted tests (once implemented)
- `./vendor/bin/sail artisan test tests/Feature/Filament/BackupSetGraphSafetyTest.php`
- `./vendor/bin/sail artisan test tests/Feature/Filament/RestoreWizardGraphSafetyTest.php`
Or run both in one command:
- `./vendor/bin/sail artisan test tests/Feature/Filament/BackupSetGraphSafetyTest.php tests/Feature/Filament/RestoreWizardGraphSafetyTest.php`
## Formatting
- `./vendor/bin/pint --dirty`
## Notes
- These guard tests intentionally fail if any Backup/Restore page render path touches `App\\Services\\Graph\\GraphClientInterface`.
- Graph credentials are not required for this phase; tests should pass with Graph effectively disabled.