fix(spec-079): allow non-UUID ids in inventory_links #96

Merged
ahmido merged 1 commits from 079-inventory-links-non-uuid-ids into dev 2026-02-07 09:18:01 +00:00
Owner

Why

Some Microsoft Graph / Intune identifiers are not UUIDs (e.g. scope tag id "0"). With inventory_links.source_id / target_id typed as uuid, PostgreSQL fails when inventory dependency extraction tries to persist those edges.

What

  • PostgreSQL migration changes inventory_links.source_id and inventory_links.target_id to text.
  • Regression test ensures a non-UUID id ("0") can be persisted; on pgsql it also asserts the columns are text.

Notes

  • UUID identifiers continue to work (stored as strings).
  • No UI/Filament changes.

Testing

  • vendor/bin/sail artisan test --compact tests/Feature/Inventory/InventoryLinksNonUuidIdsTest.php
## Why Some Microsoft Graph / Intune identifiers are not UUIDs (e.g. scope tag id "0"). With `inventory_links.source_id` / `target_id` typed as `uuid`, PostgreSQL fails when inventory dependency extraction tries to persist those edges. ## What - PostgreSQL migration changes `inventory_links.source_id` and `inventory_links.target_id` to `text`. - Regression test ensures a non-UUID id ("0") can be persisted; on pgsql it also asserts the columns are `text`. ## Notes - UUID identifiers continue to work (stored as strings). - No UI/Filament changes. ## Testing - `vendor/bin/sail artisan test --compact tests/Feature/Inventory/InventoryLinksNonUuidIdsTest.php`
ahmido added 1 commit 2026-02-07 09:17:14 +00:00
ahmido merged commit ff671d8d4a into dev 2026-02-07 09:18:01 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ahmido/TenantAtlas#96
No description provided.