TenantAtlas/app/Filament/Resources
ahmido cf5b0027e3 046-inventory-sync-button (#47)
Zusammenfassung: Fügt im „Run Inventory Sync“-Modal einen include_dependencies-Toggle hinzu und persistiert die Auswahl in der InventorySyncRun.selection_payload. Tests, Quickstart und Tasks wurden entsprechend aktualisiert.

Files: InventoryLanding.php, InventorySyncButtonTest.php, quickstart.md, tasks.md
Motivation: Ermöglicht explizites Ein-/Ausschalten der Dependency-Extraktion pro Sync-Run (z. B. Assignments/Scope Tags/Foundations), statt starrer Defaults. Passt zur bestehenden selection_hash-Logik (InventorySelectionHasher) und zur deterministischen Selektionspersistenz.
Verhalten: include_dependencies ist im Modal standardmäßig true. Wird die Option gesetzt, landet der Wert als bool im selection_payload und beeinflusst selection_hash über die Normalisierung.
Tests: Neuer/angepasster Pest-Test stellt sicher, dass include_dependencies in selection_payload persistiert. Lokaler Testlauf:
./vendor/bin/sail artisan test tests/Feature/Inventory/InventorySyncButtonTest.php → alle Tests für diese Datei bestanden.
./vendor/bin/pint --dirty wurde ausgeführt (Formatting ok).
How to test (quick):
Start Sail + Queue:
Im Admin → Inventory: „Run Inventory Sync“ öffnen, Include dependencies umschalten, ausführen.
Prüfen: neu erstellter InventorySyncRun.selection_payload.include_dependencies ist der gesetzten Auswahl entsprechend. Oder laufen lassen:
Notes / Next steps:
Diese Änderung bereitet den Weg, später die Dependency-Extraction (042-inventory-dependencies-graph) optional tiefer zu integrieren.
Working tree ist sauber; es gibt ein nicht eingebundenes Verzeichnis 0800-future-features (unrelated).

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local>
Reviewed-on: #47
2026-01-09 22:15:04 +00:00
..
BackupScheduleResource feat/032-backup-scheduling-mvp (#34) 2026-01-05 04:22:13 +00:00
BackupSetResource feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
InventoryItemResource/Pages feat/041-inventory-ui (#44) 2026-01-07 17:10:57 +00:00
InventorySyncRunResource/Pages feat/041-inventory-ui (#44) 2026-01-07 17:10:57 +00:00
PolicyResource feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
PolicyVersionResource/Pages feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
RestoreRunResource/Pages feat/011-restore-run-wizard (#17) 2025-12-31 19:14:59 +00:00
TenantResource/Pages feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
BackupScheduleResource.php feat/032-backup-scheduling-mvp (#36) 2026-01-07 01:12:12 +00:00
BackupSetResource.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
InventoryItemResource.php feat/041-inventory-ui (#44) 2026-01-07 17:10:57 +00:00
InventorySyncRunResource.php 046-inventory-sync-button (#47) 2026-01-09 22:15:04 +00:00
PolicyResource.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
PolicyVersionResource.php feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
RestoreRunResource.php feat/011-restore-run-wizard (#17) 2025-12-31 19:14:59 +00:00
TenantResource.php feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00